Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
d8767d0
Merge pull request #2591 from contentstack/development
harshitha-cstk Jun 1, 2026
b209d69
version bump
harshitha-cstk Jun 1, 2026
fffa752
version bump
harshitha-cstk Jun 1, 2026
c086ccd
Merge pull request #2597 from contentstack/fix/version-bump-v1
harshitha-cstk Jun 1, 2026
3703289
Merge pull request #2598 from contentstack/development
harshitha-cstk Jun 1, 2026
b1cba46
Merge pull request #2599 from contentstack/main
harshitha-cstk Jun 1, 2026
6ced7b2
chore: version update
Jun 15, 2026
4e31c75
Merge pull request #2608 from contentstack/version/update
naman-contentstack Jun 15, 2026
1620233
Merge pull request #2609 from contentstack/main
naman-contentstack Jun 16, 2026
bcdc7cd
issues-jira.yml
Aravind-Kumar-cstk Jun 19, 2026
0bcdcef
Merge branch 'main' into fix/back-merge
harshitha-cstk Jun 19, 2026
3991fdb
Merge pull request #2611 from contentstack/fix/back-merge
harshitha-cstk Jun 19, 2026
9766866
Upgraded Node version to 22 for plugins and Readme Update
cs-raj Jun 25, 2026
0a01bee
Dependency Update
cs-raj Jun 25, 2026
2c59a8f
Merge pull request #2616 from contentstack/fix/DX-9334
harshitha-cstk Jun 26, 2026
08808a2
revert version bump on cli core
harshitha-cstk Jun 26, 2026
5673e24
Merge pull request #2617 from contentstack/fix/pnpm-lock-update
harshitha-cstk Jun 26, 2026
e78fc2b
feat: migrate ESLint configs to flat config format
harshitha-cstk Jun 26, 2026
3cb37b0
Merge pull request #2619 from contentstack/enh/dx-9335-eslint-upgrade
harshitha-cstk Jun 26, 2026
66c35b3
Merge pull request #2618 from contentstack/development
harshitha-cstk Jun 29, 2026
dff213f
version bump
harshitha-cstk Jun 29, 2026
408f0b4
pnpm lock update
harshitha-cstk Jun 29, 2026
0baafaa
Merge branch 'main' into fix/version-bumps-v1
harshitha-cstk Jun 29, 2026
bf2513f
Merge pull request #2622 from contentstack/fix/version-bumps-v1
harshitha-cstk Jun 29, 2026
f2052d1
Merge pull request #2625 from contentstack/v2-beta
harshitha-cstk Jun 30, 2026
cb326a8
Merge branch 'main' into fix/back-merge-development-v2
harshitha-cstk Jun 30, 2026
b84295c
Merge pull request #2626 from contentstack/fix/back-merge-development-v2
harshitha-cstk Jun 30, 2026
8c84220
fix(flags): remove command-specific short flags from auth and config …
cs-raj Jul 1, 2026
100838c
removed ignore flag from auth:token:remove command
cs-raj Jul 1, 2026
5c0b758
Merge branch 'v2-dev' into fix/DX-9363
cs-raj Jul 1, 2026
7d85d3c
added the case when token alias not exist
cs-raj Jul 3, 2026
7bdbb45
Merge pull request #2628 from contentstack/fix/DX-9363
cs-raj Jul 3, 2026
cd2d82d
version bump
cs-raj Jul 3, 2026
1f156e1
Merge branch 'v2-dev' into fix/version-bump
cs-raj Jul 3, 2026
51c8b57
lock file update
cs-raj Jul 3, 2026
d84b6d1
Merge pull request #2631 from contentstack/fix/version-bump
cs-raj Jul 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .talismanrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
fileignoreconfig:
- filename: pnpm-lock.yaml
checksum: 0f2e17618b7c8286c5f76d4e25a98b830d3eb2d29acc6f8099f3501ff150d4f4
checksum: a72a1c8e7109e8eb3a4159b7945e20cdb25a99bff32e45fcbf5a6b4534bdb0da
- filename: packages/contentstack-utilities/src/message-handler.ts
checksum: e7221e8413005b9efe3a230cd91aff130850976addc41c0acb10745a56ec3245
version: '1.0'
2 changes: 1 addition & 1 deletion packages/contentstack-auth/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-auth",
"description": "Contentstack CLI plugin for authentication activities",
"version": "2.0.0-beta.14",
"version": "2.0.0-beta.15",
"author": "Contentstack",
"bugs": "https://github.com/contentstack/cli/issues",
"scripts": {
Expand Down
21 changes: 12 additions & 9 deletions packages/contentstack-auth/src/commands/auth/tokens/remove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export default class TokensRemoveCommand extends BaseCommand<typeof TokensRemove
static examples = ['$ csdx auth:tokens:remove', '$ csdx auth:tokens:remove -a <alias>'];
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.' }),
};

async run(): Promise<any> {
Expand All @@ -17,21 +16,25 @@ export default class TokensRemoveCommand extends BaseCommand<typeof TokensRemove
log.debug('Token removal flags parsed.', {...this.contextDetails, flags: removeTokenFlags });

const alias = removeTokenFlags.alias;
const ignore = removeTokenFlags.ignore;
log.debug('Token removal parameters set.', {...this.contextDetails, alias, ignore });

log.debug('Token removal parameters set.', {...this.contextDetails, alias });

try {
log.debug('Retrieving token from configuration.', {...this.contextDetails, alias });
const token = configHandler.get(`tokens.${alias}`);
log.debug('Token retrieved from configuration.', {...this.contextDetails, hasToken: !!token, tokenType: token?.type });


if (alias && !token) {
log.debug('Alias provided but token not found.', {...this.contextDetails, alias });
return cliux.print(`No token found with alias '${alias}'.`, { color: 'yellow' });
}

const tokens = configHandler.get('tokens');
log.debug('All tokens retrieved from configuration.', {...this.contextDetails, tokenCount: tokens ? Object.keys(tokens).length : 0 });

const tokenOptions: Array<string> = [];
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`);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,18 @@ describe('Tokens Remove Command', () => {
expect(Boolean(config.get(`${configKeyTokens}.${token1Alias}`))).to.be.false;
});

it('Remove the token with invalid alias, should list the table', async function () {
it('Remove the token with invalid alias, should print error and not show interactive picker', async function () {
// Skip this test in PREPACK_MODE - config handler uses in-memory store that doesn't persist properly
if (isPrepackMode) {
this.skip();
return;
}
const inquireStub = sinon.stub(cliux, 'inquire').resolves([]);
const printStub = sinon.stub(cliux, 'print');
await TokensRemoveCommand.run(['-a', 'invalid-test-tokens-remove']);
expect(inquireStub.calledOnce).to.be.true;
expect(printStub.calledOnce).to.be.true;
expect(printStub.firstCall.args[0]).to.include('invalid-test-tokens-remove');
expect(inquireStub.called).to.be.false;
});

it('Selectes multiple token, remove all the selected tokens', async function () {
Expand Down
2 changes: 1 addition & 1 deletion packages/contentstack-config/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@contentstack/cli-config",
"description": "Contentstack CLI plugin for configuration",
"version": "2.0.0-beta.12",
"version": "2.0.0-beta.13",
"author": "Contentstack",
"scripts": {
"build": "pnpm compile && oclif manifest && oclif readme",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default class RegionSetCommand extends BaseCommand<typeof RegionSetComman
dependsOn: ['cda', 'cma', 'name'],
}),
name: _flags.string({
char: 'n',
description: 'Name for the region, if this flag is added then cda, cma and ui-host flags are required',
dependsOn: ['cda', 'cma', 'ui-host'],
}),
Expand Down
Loading
Loading