diff --git a/.gitignore b/.gitignore index 5e42c8d63c..3683dc2e68 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,6 @@ contents-* *.http *.todo talisman_output.log -snyk_output.log \ No newline at end of file +snyk_output.log +# Snyk Security Extension - AI Rules (auto-generated) +.cursor/rules/snyk_rules.mdc diff --git a/packages/contentstack-auth/README.md b/packages/contentstack-auth/README.md index 5c38944bd8..0ab1057b6c 100644 --- a/packages/contentstack-auth/README.md +++ b/packages/contentstack-auth/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-auth $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-auth/1.6.2 darwin-arm64 node-v22.14.0 +@contentstack/cli-auth/2.0.0-beta.1 darwin-arm64 node-v24.11.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND @@ -141,12 +141,12 @@ USAGE FLAGS -a, --alias= Alias (name) you want to assign to the token - -d, --delivery Set this flag to save delivery token -e, --environment= Environment name for delivery token -k, --stack-api-key= Stack API Key - -m, --management Set this flag to save management token - -t, --token= Add the token name -y, --yes Use this flag to skip confirmation + --delivery Set this flag to save delivery token + --management Set this flag to save management token + --token= Add the token name DESCRIPTION Adds management/delivery tokens to your session to use it with other CLI commands diff --git a/packages/contentstack-auth/package.json b/packages/contentstack-auth/package.json index c4a326cd52..ed2b579b88 100644 --- a/packages/contentstack-auth/package.json +++ b/packages/contentstack-auth/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-auth", "description": "Contentstack CLI plugin for authentication activities", - "version": "1.6.2", + "version": "2.0.0-beta.1", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "scripts": { diff --git a/packages/contentstack-auth/src/commands/auth/logout.ts b/packages/contentstack-auth/src/commands/auth/logout.ts index 3140750a63..6452d730a4 100644 --- a/packages/contentstack-auth/src/commands/auth/logout.ts +++ b/packages/contentstack-auth/src/commands/auth/logout.ts @@ -1,7 +1,6 @@ import { cliux, configHandler, - printFlagDeprecation, flags, authHandler as oauthHandler, managementSDKClient, @@ -25,14 +24,6 @@ export default class LogoutCommand extends BaseCommand { required: false, default: false, }), - force: flags.boolean({ - char: 'f', - description: 'Force log out by skipping the confirmation.', - required: false, - hidden: true, - default: false, - parse: printFlagDeprecation(['-f', '--force'], ['-y', '--yes']), - }), }; static aliases = ['logout']; @@ -41,7 +32,7 @@ export default class LogoutCommand extends BaseCommand { log.debug('LogoutCommand run method started', this.contextDetails); const { flags: logoutFlags } = await this.parse(LogoutCommand); - log.debug('Token add flags parsed', {...this.contextDetails, flags: logoutFlags }); + log.debug('Token add flags parsed', { ...this.contextDetails, flags: logoutFlags }); let confirm = logoutFlags.force === true || logoutFlags.yes === true; log.debug(`Initial confirmation status: ${confirm}`, { diff --git a/packages/contentstack-auth/src/commands/auth/tokens/add.ts b/packages/contentstack-auth/src/commands/auth/tokens/add.ts index 8ca4a46cbb..2e8ed36c92 100644 --- a/packages/contentstack-auth/src/commands/auth/tokens/add.ts +++ b/packages/contentstack-auth/src/commands/auth/tokens/add.ts @@ -1,7 +1,6 @@ import { cliux, configHandler, - printFlagDeprecation, flags, FlagInput, HttpClient, @@ -33,16 +32,12 @@ export default class TokensAddCommand extends BaseCommand Alias (name) you want to assign to the token - -d, --delivery Set this flag to save delivery token -e, --environment= Environment name for delivery token -k, --stack-api-key= Stack API Key - -m, --management Set this flag to save management token - -t, --token= [env: TOKEN] Add the token name -y, --yes Use this flag to skip confirmation + --delivery Set this flag to save delivery token + --management Set this flag to save management token + --token= Add the token name DESCRIPTION Adds management/delivery tokens to your session to use it with other CLI commands @@ -2392,8 +2392,6 @@ FLAGS extensions, marketplace-apps, global-fields, labels, locales, webhooks, workflows, custom-roles, personalize projects, and taxonomies. -y, --yes [optional] Force override all Marketplace prompts. - --branch-alias= Specify the branch alias where you want to import your content. If not - specified, the content is imported into the main branch by default. --branch-alias= Specify the branch alias where you want to import your content. If not specified, the content is imported into the main branch by default. --exclude-global-modules Excludes the branch-independent module from the import operation. @@ -2449,8 +2447,6 @@ FLAGS branches involved, then the path should point till the particular branch. For example, “-d "C:\Users\Name\Desktop\cli\content\branch_name" -k, --stack-api-key= API key of the target stack - --branch-alias= Specify the branch alias where you want to import your content. If not specified, the - content is imported into the main branch by default. --branch-alias= Specify the branch alias where you want to import your content. If not specified, the content is imported into the main branch by default. --module=