Skip to content

Commit 7f90dff

Browse files
Merge pull request #284 from contentstack/development
DX | 13-07-2026 | Release
2 parents e72ae97 + 3402c4d commit 7f90dff

73 files changed

Lines changed: 1877 additions & 1441 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.talismanrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
fileignoreconfig:
22
- filename: pnpm-lock.yaml
3-
checksum: 07642e8dd04d580185a459e5b088d8a1bb4e91be4e04f4842bf4fe4775205bf6
3+
checksum: 4be4721031793b5ec6957b17778969b715ded2d15a6b6231b6c066735abd7233
44
version: '1.0'

packages/contentstack-apps-cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/apps-cli",
3-
"version": "1.7.1",
3+
"version": "1.7.2",
44
"description": "App ClI",
55
"author": "Contentstack CLI",
66
"homepage": "https://github.com/contentstack/cli-plugins/tree/main/packages/contentstack-apps-cli",

packages/contentstack-apps-cli/src/commands/app/install.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default class Install extends AppCLIBaseCommand {
2626
description: commonMsg.APP_UID,
2727
}),
2828
"stack-api-key": flags.string({
29-
description: commonMsg.STACK_API_KEY,
29+
description: commonMsg.STACK_API_KEY_placeholder,
3030
}),
3131
...AppCLIBaseCommand.baseFlags,
3232
};
@@ -88,7 +88,7 @@ export default class Install extends AppCLIBaseCommand {
8888
// in case a stack app is selected and no stack-api-key is provided
8989
if (appType === "stack" && !this.flags["stack-api-key"]) {
9090
this.log(
91-
$t(installAppMsg.MISSING_STACK_API_KEY, {
91+
$t(installAppMsg.MISSING_STACK_API_KEY_placeholder, {
9292
app: app?.name || app?.uid,
9393
}),
9494
"warn"

packages/contentstack-apps-cli/src/commands/app/reinstall.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default class Reinstall extends AppCLIBaseCommand {
2525
description: commonMsg.APP_UID,
2626
}),
2727
"stack-api-key": flags.string({
28-
description: commonMsg.STACK_API_KEY,
28+
description: commonMsg.STACK_API_KEY_placeholder,
2929
}),
3030
...AppCLIBaseCommand.baseFlags,
3131
};
@@ -84,7 +84,7 @@ export default class Reinstall extends AppCLIBaseCommand {
8484
appType = "stack";
8585

8686
this.log(
87-
$t(reinstallAppMsg.MISSING_STACK_API_KEY, {
87+
$t(reinstallAppMsg.MISSING_STACK_API_KEY_placeholder, {
8888
app: app?.name || app?.uid,
8989
}),
9090
"warn"

packages/contentstack-apps-cli/src/messages/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const commonMsg = {
3838
APP_UID: "Provide the app UID of an existing app.",
3939
APP_TYPE_DESCRIPTION: "Type of app",
4040
CONTACT_SUPPORT: "Contact the support team for help.",
41-
STACK_API_KEY: "API key of the stack where the app operation is to be performed.",
41+
STACK_API_KEY_placeholder: "API key of the stack where the app operation is to be performed.",
4242
USER_TERMINATION: "Process terminated by the user.",
4343
CLI_APP_CLI_LOGIN_FAILED: "You're not logged in. Run $ csdx auth:login to continue."
4444
};
@@ -97,7 +97,7 @@ const installAppMsg = {
9797
CHOOSE_A_STACK: "Please select a stack",
9898
APP_INSTALLED_SUCCESSFULLY: "{app} installed successfully in {target}.",
9999
INSTALL_ORG_APP_TO_STACK: "{app} is an organization app. It cannot be installed to a stack. Do you want to proceed?",
100-
MISSING_STACK_API_KEY: "As {app} is a stack app, it can only be installed in a stack. Please select a stack.",
100+
MISSING_STACK_API_KEY_placeholder: "As {app} is a stack app, it can only be installed in a stack. Please select a stack.",
101101
INSTALLING_APP_NOTICE: "Installing {app} on {type} {target}.",
102102
APP_ALREADY_INSTALLED: "Please use $ csdx app:reinstall to reinstall the app.",
103103
}
@@ -115,7 +115,7 @@ const reinstallAppMsg = {
115115
CHOOSE_A_STACK: "Please select a stack",
116116
APP_REINSTALLED_SUCCESSFULLY: "{app} reinstalled successfully in {target}.",
117117
REINSTALL_ORG_APP_TO_STACK: "{app} is an organization app. It cannot be reinstalled to a stack. Do you want to proceed?",
118-
MISSING_STACK_API_KEY: "As {app} is a stack app, it can only be reinstalled in a stack. Please select a stack.",
118+
MISSING_STACK_API_KEY_placeholder: "As {app} is a stack app, it can only be reinstalled in a stack. Please select a stack.",
119119
REINSTALLING_APP_NOTICE: "Reinstalling {app} on {type} {target}.",
120120
APP_UID: "Provide the app UID of an existing app to be reinstalled.",
121121
APP_ALREADY_LATEST_VERSION: "The application is already up to date; no new version is available.",

packages/contentstack-bulk-operations/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/cli-bulk-operations",
3-
"version": "1.2.1",
3+
"version": "1.2.2",
44
"description": "Contentstack CLI plugin for bulk operations",
55
"author": "Contentstack CLI",
66
"homepage": "https://github.com/contentstack/cli-plugins/tree/main/packages/contentstack-bulk-operations",

packages/contentstack-bulk-operations/src/base-bulk-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export abstract class BaseBulkCommand extends Command {
6161
}),
6262
'stack-api-key': flags.string({
6363
char: 'k',
64-
description: messages.STACK_API_KEY,
64+
description: messages.STACK_API_KEY_placeholder,
6565
}),
6666
operation: flags.string({
6767
description: messages.OPERATION,

packages/contentstack-bulk-operations/src/messages/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ const interactiveMsg = {
291291
ENTER_ENVIRONMENTS: 'Enter target environments (comma-separated):',
292292
ENTER_LOCALES: 'Enter locales (comma-separated):',
293293
SELECT_ALIAS: 'Select alias:',
294-
ENTER_API_KEY: 'Enter stack API key:',
294+
ENTER_API_KEY_placeholder: 'Enter stack API key:',
295295
ENTER_SOURCE_ENV: 'Enter source environment name:',
296296
SELECT_SOURCE_ALIAS: 'Select delivery token alias for source environment:',
297297

@@ -322,7 +322,8 @@ const flagDescriptions = {
322322
// Common flags
323323
ALIAS:
324324
'Uses the name of a saved Management Token to authenticate the command. The command can only access the branches allowed for that token. This option can be used as an alternative to` --stack-api-key.`',
325-
STACK_API_KEY: 'API key of the source stack. You must use either the --stack-api-key flag or the --alias flag.',
325+
STACK_API_KEY_placeholder:
326+
'API key of the source stack. You must use either the --stack-api-key flag or the --alias flag.',
326327
OPERATION: 'Specifies whether to `publish` or `unpublish` content.',
327328
ENVIRONMENTS:
328329
'Specifies one or more environments where the entries or assets should be published. Separate multiple environments with spaces.',

packages/contentstack-bulk-operations/src/utils/interactive.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ async function promptForStackCredentials(): Promise<{ alias?: string; apiKey?: s
6262
const apiKey = await cliux.inquire<string>({
6363
type: 'input',
6464
name: 'apiKey',
65-
message: messages.ENTER_API_KEY,
65+
message: messages.ENTER_API_KEY_placeholder,
6666
validate: (value) => {
6767
if (!value || value.trim().length === 0) {
6868
return messages.API_KEY_REQUIRED;
@@ -97,7 +97,7 @@ async function promptForStackCredentials(): Promise<{ alias?: string; apiKey?: s
9797
const apiKey = await cliux.inquire<string>({
9898
type: 'input',
9999
name: 'apiKey',
100-
message: messages.ENTER_API_KEY,
100+
message: messages.ENTER_API_KEY_placeholder,
101101
validate: (value) => {
102102
if (!value || value.trim().length === 0) {
103103
return messages.API_KEY_REQUIRED;

packages/contentstack-bulk-operations/test/unit/base-bulk-command.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,7 @@ describe('BaseBulkCommand', () => {
590590
(command as any).bulkOperationConfig = {
591591
publishMode: 'bulk',
592592
apiKey: undefined,
593+
// deepcode ignore HardcodedNonCryptoSecret: test fixture value, not a real secret
593594
stackApiKey: 'fallback-key',
594595
branch: 'main',
595596
bulkOperationFolder: './bulk-operation',

0 commit comments

Comments
 (0)