diff --git a/packages/contentstack-export/src/commands/cm/stacks/export.ts b/packages/contentstack-export/src/commands/cm/stacks/export.ts index 6bbcb87bb..8a2fc359a 100644 --- a/packages/contentstack-export/src/commands/cm/stacks/export.ts +++ b/packages/contentstack-export/src/commands/cm/stacks/export.ts @@ -56,7 +56,7 @@ export default class ExportCommand extends Command { }), module: flags.string({ description: - '[optional] Specific module name. If not specified, the export command will export all the modules from the stack. The available modules are stack, assets, locales, environments, extensions, webhooks, global-fields, entries, content-types, custom-roles, workflows, labels, marketplace-apps, taxonomies, personalize, and composable-studio.', + '[optional] Specific module name. If not specified, the export command will export all the modules from the stack. The available modules are stack, assets, locales, environments, extensions, webhooks, global-fields, entries, content-types, custom-roles, workflows, publishing-rules, labels, marketplace-apps, taxonomies, personalize, and composable-studio.', options: [ 'stack', 'assets', @@ -69,6 +69,7 @@ export default class ExportCommand extends Command { 'content-types', 'custom-roles', 'workflows', + 'publishing-rules', 'labels', 'marketplace-apps', 'taxonomies', diff --git a/packages/contentstack-export/test/unit/commands/cm/stacks/export.test.ts b/packages/contentstack-export/test/unit/commands/cm/stacks/export.test.ts index f19aa10e8..f384a5b61 100644 --- a/packages/contentstack-export/test/unit/commands/cm/stacks/export.test.ts +++ b/packages/contentstack-export/test/unit/commands/cm/stacks/export.test.ts @@ -52,6 +52,7 @@ describe('ExportCommand', () => { 'content-types', 'custom-roles', 'workflows', + 'publishing-rules', 'labels', 'marketplace-apps', 'taxonomies', @@ -76,7 +77,7 @@ describe('ExportCommand', () => { it('should have the correct number of valid modules', () => { const moduleOptions = (ExportCommand.flags['module'] as any).options as string[]; - expect(moduleOptions).to.have.lengthOf(16); + expect(moduleOptions).to.have.lengthOf(17); }); }); }); diff --git a/packages/contentstack-import/src/commands/cm/stacks/import.ts b/packages/contentstack-import/src/commands/cm/stacks/import.ts index de1aaf835..6a2448450 100644 --- a/packages/contentstack-import/src/commands/cm/stacks/import.ts +++ b/packages/contentstack-import/src/commands/cm/stacks/import.ts @@ -53,7 +53,7 @@ export default class ImportCommand extends Command { module: flags.string({ required: false, description: - '[optional] Specify the module to import into the target stack. If not specified, the import command will import all the modules into the stack. The available modules are stack, assets, locales, environments, extensions, webhooks, global-fields, entries, content-types, custom-roles, workflows, labels, marketplace-apps, taxonomies, personalize, and composable-studio.', + '[optional] Specify the module to import into the target stack. If not specified, the import command will import all the modules into the stack. The available modules are stack, assets, locales, environments, extensions, webhooks, global-fields, entries, content-types, custom-roles, workflows, publishing-rules, labels, marketplace-apps, taxonomies, personalize, variant-entries, and composable-studio.', options: [ 'stack', 'assets', @@ -66,10 +66,12 @@ export default class ImportCommand extends Command { 'content-types', 'custom-roles', 'workflows', + 'publishing-rules', 'labels', 'marketplace-apps', 'taxonomies', 'personalize', + 'variant-entries', 'composable-studio', ], }), diff --git a/packages/contentstack-import/test/unit/commands/cm/stacks/import.test.ts b/packages/contentstack-import/test/unit/commands/cm/stacks/import.test.ts index e2bdd48ee..99cae5dfd 100644 --- a/packages/contentstack-import/test/unit/commands/cm/stacks/import.test.ts +++ b/packages/contentstack-import/test/unit/commands/cm/stacks/import.test.ts @@ -216,10 +216,12 @@ describe('ImportCommand', () => { 'content-types', 'custom-roles', 'workflows', + 'publishing-rules', 'labels', 'marketplace-apps', 'taxonomies', 'personalize', + 'variant-entries', 'composable-studio', ]; const moduleOptions = (ImportCommand.flags['module'] as any).options as string[];