From 8c84220fd967e486827aa9d5c2e3adc56b440b27 Mon Sep 17 00:00:00 2001 From: raj pandey Date: Wed, 1 Jul 2026 12:30:09 +0530 Subject: [PATCH 1/2] fix(flags): remove command-specific short flags from auth and config commands --- packages/contentstack-auth/src/commands/auth/tokens/remove.ts | 2 +- packages/contentstack-config/src/commands/config/set/region.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/contentstack-auth/src/commands/auth/tokens/remove.ts b/packages/contentstack-auth/src/commands/auth/tokens/remove.ts index e76dec41e5..09ee2d7a54 100644 --- a/packages/contentstack-auth/src/commands/auth/tokens/remove.ts +++ b/packages/contentstack-auth/src/commands/auth/tokens/remove.ts @@ -6,7 +6,7 @@ export default class TokensRemoveCommand extends BaseCommand']; static flags: FlagInput = { alias: flags.string({ char: 'a', description: 'Alias (name) of the token to delete.' }), - ignore: flags.boolean({ char: 'i', description: 'Ignores if the token is not present.' }), + ignore: flags.boolean({ description: 'Ignores if the token is not present.' }), }; async run(): Promise { diff --git a/packages/contentstack-config/src/commands/config/set/region.ts b/packages/contentstack-config/src/commands/config/set/region.ts index 5671515955..fa8818d614 100644 --- a/packages/contentstack-config/src/commands/config/set/region.ts +++ b/packages/contentstack-config/src/commands/config/set/region.ts @@ -30,7 +30,6 @@ export default class RegionSetCommand extends BaseCommand Date: Wed, 1 Jul 2026 16:44:09 +0530 Subject: [PATCH 2/2] removed ignore flag from auth:token:remove command --- .../src/commands/auth/tokens/remove.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/packages/contentstack-auth/src/commands/auth/tokens/remove.ts b/packages/contentstack-auth/src/commands/auth/tokens/remove.ts index 09ee2d7a54..209bc32410 100644 --- a/packages/contentstack-auth/src/commands/auth/tokens/remove.ts +++ b/packages/contentstack-auth/src/commands/auth/tokens/remove.ts @@ -6,7 +6,6 @@ export default class TokensRemoveCommand extends BaseCommand']; static flags: FlagInput = { alias: flags.string({ char: 'a', description: 'Alias (name) of the token to delete.' }), - ignore: flags.boolean({ description: 'Ignores if the token is not present.' }), }; async run(): Promise { @@ -17,21 +16,20 @@ export default class TokensRemoveCommand extends BaseCommand = []; - - if (token || ignore) { - log.debug('Token found, or ignore flag set.', {...this.contextDetails, hasToken: !!token, ignore }); + + if (token) { + log.debug('Token found.', {...this.contextDetails, hasToken: !!token }); configHandler.delete(`tokens.${alias}`); log.debug('Token removed from configuration.', {...this.contextDetails, alias }); return cliux.success(`CLI_AUTH_TOKENS_REMOVE_SUCCESS`);