@contentstack/cli 1.51.1 → 1.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli
18
18
  $ csdx COMMAND
19
19
  running command...
20
20
  $ csdx (--version|-v)
21
- @contentstack/cli/1.51.1 linux-x64 node-v22.20.0
21
+ @contentstack/cli/1.53.0 linux-x64 node-v22.21.1
22
22
  $ csdx --help [COMMAND]
23
23
  USAGE
24
24
  $ csdx COMMAND
@@ -335,7 +335,7 @@ FLAGS
335
335
  -e, --environment=<value> Environment name for delivery token
336
336
  -k, --stack-api-key=<value> Stack API Key
337
337
  -m, --management Set this flag to save management token
338
- -t, --token=<value> Add the token name
338
+ -t, --token=<value> [env: TOKEN] Add the token name
339
339
  -y, --yes Use this flag to skip confirmation
340
340
 
341
341
  DESCRIPTION
@@ -2201,7 +2201,7 @@ FLAGS
2201
2201
  -m, --module=<value> [optional] Specific module name. If not specified, the export command will export all
2202
2202
  the modules to the stack. The available modules are assets, content-types, entries,
2203
2203
  environments, extensions, marketplace-apps, global-fields, labels, locales, webhooks,
2204
- workflows, custom-roles, and taxonomies.
2204
+ workflows, custom-roles, taxonomies, and composable-studio.
2205
2205
  -t, --content-types=<value>... [optional] The UID of the content type(s) whose content you want to export. In case
2206
2206
  of multiple content types, specify the IDs separated by spaces.
2207
2207
  -y, --yes [optional] Force override all Marketplace prompts.
@@ -2238,24 +2238,30 @@ Export entries, taxonomies, terms or organization users to csv using this comman
2238
2238
  USAGE
2239
2239
  $ csdx cm:export-to-csv [--action entries|users|teams|taxonomies] [-a <value>] [--org <value>] [-n <value>] [-k
2240
2240
  <value>] [--org-name <value>] [--locale <value>] [--content-type <value>] [--branch <value>] [--team-uid <value>]
2241
- [--taxonomy-uid <value>] [--delimiter <value>]
2241
+ [--taxonomy-uid <value>] [--include-fallback] [--fallback-locale <value>] [--delimiter <value>]
2242
2242
 
2243
2243
  FLAGS
2244
- -a, --alias=<value> Alias of the management token.
2245
- -k, --stack-api-key=<value> API Key of the source stack.
2246
- -n, --stack-name=<value> Name of the stack that needs to be created as CSV filename.
2247
- --action=<option> Option to export data (entries, users, teams, taxonomies). <options:
2248
- entries|users|teams|taxonomies>
2249
- <options: entries|users|teams|taxonomies>
2250
- --branch=<value> Branch from which entries will be exported.
2251
- --content-type=<value> Content type of entries that will be exported.
2252
- --delimiter=<value> [default: ,] [optional] Provide a delimiter to separate individual data fields within the
2253
- CSV file. For example: cm:export-to-csv --delimiter '|'
2254
- --locale=<value> Locale of entries that will be exported.
2255
- --org=<value> Provide organization UID to clone org users.
2256
- --org-name=<value> Name of the organization that needs to be created as CSV filename.
2257
- --taxonomy-uid=<value> Provide the taxonomy UID of the related terms you want to export.
2258
- --team-uid=<value> Provide the UID of a specific team in an organization.
2244
+ -a, --alias=<value> Alias of the management token.
2245
+ -k, --stack-api-key=<value> API Key of the source stack.
2246
+ -n, --stack-name=<value> Name of the stack that needs to be created as CSV filename.
2247
+ --action=<option> Option to export data (entries, users, teams, taxonomies). <options:
2248
+ entries|users|teams|taxonomies>
2249
+ <options: entries|users|teams|taxonomies>
2250
+ --branch=<value> Branch from which entries will be exported.
2251
+ --content-type=<value> Content type of entries that will be exported.
2252
+ --delimiter=<value> [default: ,] [optional] Provide a delimiter to separate individual data fields within
2253
+ the CSV file. For example: cm:export-to-csv --delimiter '|'
2254
+ --fallback-locale=<value> [Optional] Specify a specific fallback locale for taxonomy export. This locale will be
2255
+ used when a taxonomy term doesn't exist in the primary locale. Takes priority over
2256
+ branch fallback hierarchy when both are specified.
2257
+ --include-fallback [Optional] Include fallback locale data when exporting taxonomies. When enabled, if a
2258
+ taxonomy term doesn't exist in the specified locale, it will fallback to the hierarchy
2259
+ defined in the branch settings.
2260
+ --locale=<value> Locale of entries that will be exported.
2261
+ --org=<value> Provide organization UID to clone org users.
2262
+ --org-name=<value> Name of the organization that needs to be created as CSV filename.
2263
+ --taxonomy-uid=<value> Provide the taxonomy UID of the related terms you want to export.
2264
+ --team-uid=<value> Provide the UID of a specific team in an organization.
2259
2265
 
2260
2266
  DESCRIPTION
2261
2267
  Export entries, taxonomies, terms or organization users to csv using this command
@@ -2334,6 +2340,24 @@ EXAMPLES
2334
2340
  Exporting taxonomies and respective terms to a .CSV file with a delimiter
2335
2341
 
2336
2342
  $ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias> --delimiter <delimiter>
2343
+
2344
+
2345
+
2346
+ Exporting taxonomies with specific locale
2347
+
2348
+ $ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias> --locale <locale>
2349
+
2350
+
2351
+
2352
+ Exporting taxonomies with fallback locale support
2353
+
2354
+ $ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias> --locale <locale> --include-fallback
2355
+
2356
+
2357
+
2358
+ Exporting taxonomies with custom fallback locale
2359
+
2360
+ $ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias> --locale <locale> --include-fallback --fallback-locale <fallback-locale>
2337
2361
  ```
2338
2362
 
2339
2363
  _See code: [@contentstack/cli-cm-export-to-csv](https://github.com/contentstack/cli/blob/main/packages/contentstack-export-to-csv/src/commands/cm/export-to-csv.js)_
@@ -2348,39 +2372,68 @@ USAGE
2348
2372
  [--backup-dir <value>] [--branch <value>] [--import-webhook-status disable|current]
2349
2373
 
2350
2374
  FLAGS
2351
- -B, --branch=<value> The name of the branch where you want to import your content. If you don't
2352
- mention the branch name, then by default the content will be imported to the
2353
- main branch.
2354
- -a, --alias=<value> The management token of the destination stack where you will import the
2355
- content.
2356
- -b, --backup-dir=<value> [optional] Backup directory name when using specific module.
2357
- -c, --config=<value> [optional] The path of the configuration JSON file containing all the options
2358
- for a single run.
2359
- -d, --data-dir=<value> The path or the location in your file system where the content, you intend to
2360
- import, is stored. For example, -d "C:\Users\Name\Desktop\cli\content". If the
2361
- export folder has branches involved, then the path should point till the
2362
- particular branch. For example, “-d
2363
- "C:\Users\Name\Desktop\cli\content\branch_name"
2364
- -k, --stack-api-key=<value> API Key of the target stack
2365
- -m, --module=<value> [optional] Specify the module to import into the target stack. If not
2366
- specified, the import command will import all the modules into the stack. The
2367
- available modules are assets, content-types, entries, environments,
2368
- extensions, marketplace-apps, global-fields, labels, locales, webhooks,
2369
- workflows, custom-roles, personalize projects, and taxonomies.
2370
- -y, --yes [optional] Force override all Marketplace prompts.
2371
- --branch-alias=<value> Specify the branch alias where you want to import your content. If not
2372
- specified, the content is imported into the main branch by default.
2373
- --exclude-global-modules Excludes the branch-independent module from the import operation.
2374
- --import-webhook-status=<option> [default: disable] [default: disable] (optional) This webhook state keeps the
2375
- same state of webhooks as the source stack. <options: disable|current>
2376
- <options: disable|current>
2377
- --personalize-project-name=<value> (optional) Provide a unique name for the Personalize project.
2378
- --replace-existing Replaces the existing module in the target stack.
2379
- --skip-app-recreation (optional) Skips the recreation of private apps if they already exist.
2380
- --skip-assets-publish Skips asset publishing during the import process.
2381
- --skip-audit Skips the audit fix that occurs during an import operation.
2382
- --skip-entries-publish Skips entry publishing during the import process
2383
- --skip-existing Skips the module exists warning messages.
2375
+ -B, --branch=<value>
2376
+ The name of the branch where you want to import your content. If you don't mention the branch name, then by default
2377
+ the content will be imported to the main branch.
2378
+
2379
+ -a, --alias=<value>
2380
+ The management token of the destination stack where you will import the content.
2381
+
2382
+ -b, --backup-dir=<value>
2383
+ [optional] Backup directory name when using specific module.
2384
+
2385
+ -c, --config=<value>
2386
+ [optional] The path of the configuration JSON file containing all the options for a single run.
2387
+
2388
+ -d, --data-dir=<value>
2389
+ The path or the location in your file system where the content, you intend to import, is stored. For example, -d
2390
+ "C:\Users\Name\Desktop\cli\content". If the export folder has branches involved, then the path should point till the
2391
+ particular branch. For example, “-d "C:\Users\Name\Desktop\cli\content\branch_name"
2392
+
2393
+ -k, --stack-api-key=<value>
2394
+ API Key of the target stack
2395
+
2396
+ -m, --module=<value>
2397
+ [optional] Specify the module to import into the target stack. If not specified, the import command will import all
2398
+ the modules into the stack. The available modules are assets, content-types, entries, environments, extensions,
2399
+ marketplace-apps, global-fields, labels, locales, webhooks, workflows, custom-roles, personalize projects,
2400
+ taxonomies, and composable-studio.
2401
+
2402
+ -y, --yes
2403
+ [optional] Force override all Marketplace prompts.
2404
+
2405
+ --branch-alias=<value>
2406
+ Specify the branch alias where you want to import your content. If not specified, the content is imported into the
2407
+ main branch by default.
2408
+
2409
+ --exclude-global-modules
2410
+ Excludes the branch-independent module from the import operation.
2411
+
2412
+ --import-webhook-status=<option>
2413
+ [default: disable] [default: disable] (optional) This webhook state keeps the same state of webhooks as the source
2414
+ stack. <options: disable|current>
2415
+ <options: disable|current>
2416
+
2417
+ --personalize-project-name=<value>
2418
+ (optional) Provide a unique name for the Personalize project.
2419
+
2420
+ --replace-existing
2421
+ Replaces the existing module in the target stack.
2422
+
2423
+ --skip-app-recreation
2424
+ (optional) Skips the recreation of private apps if they already exist.
2425
+
2426
+ --skip-assets-publish
2427
+ Skips asset publishing during the import process.
2428
+
2429
+ --skip-audit
2430
+ Skips the audit fix that occurs during an import operation.
2431
+
2432
+ --skip-entries-publish
2433
+ Skips entry publishing during the import process
2434
+
2435
+ --skip-existing
2436
+ Skips the module exists warning messages.
2384
2437
 
2385
2438
  DESCRIPTION
2386
2439
  Import content from a stack
@@ -2827,7 +2880,7 @@ FLAGS
2827
2880
  -m, --module=<value> [optional] Specific module name. If not specified, the export command will export all
2828
2881
  the modules to the stack. The available modules are assets, content-types, entries,
2829
2882
  environments, extensions, marketplace-apps, global-fields, labels, locales, webhooks,
2830
- workflows, custom-roles, and taxonomies.
2883
+ workflows, custom-roles, taxonomies, and composable-studio.
2831
2884
  -t, --content-types=<value>... [optional] The UID of the content type(s) whose content you want to export. In case
2832
2885
  of multiple content types, specify the IDs separated by spaces.
2833
2886
  -y, --yes [optional] Force override all Marketplace prompts.
@@ -2868,39 +2921,68 @@ USAGE
2868
2921
  <value>] [--branch <value>] [--import-webhook-status disable|current]
2869
2922
 
2870
2923
  FLAGS
2871
- -B, --branch=<value> The name of the branch where you want to import your content. If you don't
2872
- mention the branch name, then by default the content will be imported to the
2873
- main branch.
2874
- -a, --alias=<value> The management token of the destination stack where you will import the
2875
- content.
2876
- -b, --backup-dir=<value> [optional] Backup directory name when using specific module.
2877
- -c, --config=<value> [optional] The path of the configuration JSON file containing all the options
2878
- for a single run.
2879
- -d, --data-dir=<value> The path or the location in your file system where the content, you intend to
2880
- import, is stored. For example, -d "C:\Users\Name\Desktop\cli\content". If the
2881
- export folder has branches involved, then the path should point till the
2882
- particular branch. For example, “-d
2883
- "C:\Users\Name\Desktop\cli\content\branch_name"
2884
- -k, --stack-api-key=<value> API Key of the target stack
2885
- -m, --module=<value> [optional] Specify the module to import into the target stack. If not
2886
- specified, the import command will import all the modules into the stack. The
2887
- available modules are assets, content-types, entries, environments,
2888
- extensions, marketplace-apps, global-fields, labels, locales, webhooks,
2889
- workflows, custom-roles, personalize projects, and taxonomies.
2890
- -y, --yes [optional] Force override all Marketplace prompts.
2891
- --branch-alias=<value> Specify the branch alias where you want to import your content. If not
2892
- specified, the content is imported into the main branch by default.
2893
- --exclude-global-modules Excludes the branch-independent module from the import operation.
2894
- --import-webhook-status=<option> [default: disable] [default: disable] (optional) This webhook state keeps the
2895
- same state of webhooks as the source stack. <options: disable|current>
2896
- <options: disable|current>
2897
- --personalize-project-name=<value> (optional) Provide a unique name for the Personalize project.
2898
- --replace-existing Replaces the existing module in the target stack.
2899
- --skip-app-recreation (optional) Skips the recreation of private apps if they already exist.
2900
- --skip-assets-publish Skips asset publishing during the import process.
2901
- --skip-audit Skips the audit fix that occurs during an import operation.
2902
- --skip-entries-publish Skips entry publishing during the import process
2903
- --skip-existing Skips the module exists warning messages.
2924
+ -B, --branch=<value>
2925
+ The name of the branch where you want to import your content. If you don't mention the branch name, then by default
2926
+ the content will be imported to the main branch.
2927
+
2928
+ -a, --alias=<value>
2929
+ The management token of the destination stack where you will import the content.
2930
+
2931
+ -b, --backup-dir=<value>
2932
+ [optional] Backup directory name when using specific module.
2933
+
2934
+ -c, --config=<value>
2935
+ [optional] The path of the configuration JSON file containing all the options for a single run.
2936
+
2937
+ -d, --data-dir=<value>
2938
+ The path or the location in your file system where the content, you intend to import, is stored. For example, -d
2939
+ "C:\Users\Name\Desktop\cli\content". If the export folder has branches involved, then the path should point till the
2940
+ particular branch. For example, “-d "C:\Users\Name\Desktop\cli\content\branch_name"
2941
+
2942
+ -k, --stack-api-key=<value>
2943
+ API Key of the target stack
2944
+
2945
+ -m, --module=<value>
2946
+ [optional] Specify the module to import into the target stack. If not specified, the import command will import all
2947
+ the modules into the stack. The available modules are assets, content-types, entries, environments, extensions,
2948
+ marketplace-apps, global-fields, labels, locales, webhooks, workflows, custom-roles, personalize projects,
2949
+ taxonomies, and composable-studio.
2950
+
2951
+ -y, --yes
2952
+ [optional] Force override all Marketplace prompts.
2953
+
2954
+ --branch-alias=<value>
2955
+ Specify the branch alias where you want to import your content. If not specified, the content is imported into the
2956
+ main branch by default.
2957
+
2958
+ --exclude-global-modules
2959
+ Excludes the branch-independent module from the import operation.
2960
+
2961
+ --import-webhook-status=<option>
2962
+ [default: disable] [default: disable] (optional) This webhook state keeps the same state of webhooks as the source
2963
+ stack. <options: disable|current>
2964
+ <options: disable|current>
2965
+
2966
+ --personalize-project-name=<value>
2967
+ (optional) Provide a unique name for the Personalize project.
2968
+
2969
+ --replace-existing
2970
+ Replaces the existing module in the target stack.
2971
+
2972
+ --skip-app-recreation
2973
+ (optional) Skips the recreation of private apps if they already exist.
2974
+
2975
+ --skip-assets-publish
2976
+ Skips asset publishing during the import process.
2977
+
2978
+ --skip-audit
2979
+ Skips the audit fix that occurs during an import operation.
2980
+
2981
+ --skip-entries-publish
2982
+ Skips entry publishing during the import process
2983
+
2984
+ --skip-existing
2985
+ Skips the module exists warning messages.
2904
2986
 
2905
2987
  DESCRIPTION
2906
2988
  Import content from a stack
@@ -3646,22 +3728,24 @@ Set region for CLI
3646
3728
  ```
3647
3729
  USAGE
3648
3730
  $ csdx config:set:region [REGION] [-d <value> -m <value> --ui-host <value> -n <value>] [--developer-hub <value>]
3649
- [--personalize <value>] [--launch <value>]
3731
+ [--personalize <value>] [--launch <value>] [--composable-studio <value>]
3650
3732
 
3651
3733
  ARGUMENTS
3652
3734
  [REGION] Name for the region
3653
3735
 
3654
3736
  FLAGS
3655
- -d, --cda=<value> Custom host to set for content delivery API, if this flag is added then cma, ui-host and
3656
- name flags are required
3657
- -m, --cma=<value> Custom host to set for content management API, , if this flag is added then cda, ui-host
3658
- and name flags are required
3659
- -n, --name=<value> Name for the region, if this flag is added then cda, cma and ui-host flags are required
3660
- --developer-hub=<value> Custom host to set for Developer hub API
3661
- --launch=<value> Custom host to set for Launch API
3662
- --personalize=<value> Custom host to set for Personalize API
3663
- --ui-host=<value> Custom UI host to set for CLI, if this flag is added then cda, cma and name flags are
3664
- required
3737
+ -d, --cda=<value> Custom host to set for content delivery API, if this flag is added then cma, ui-host
3738
+ and name flags are required
3739
+ -m, --cma=<value> Custom host to set for content management API, , if this flag is added then cda,
3740
+ ui-host and name flags are required
3741
+ -n, --name=<value> Name for the region, if this flag is added then cda, cma and ui-host flags are
3742
+ required
3743
+ --composable-studio=<value> Custom host to set for Composable Studio API
3744
+ --developer-hub=<value> Custom host to set for Developer hub API
3745
+ --launch=<value> Custom host to set for Launch API
3746
+ --personalize=<value> Custom host to set for Personalize API
3747
+ --ui-host=<value> Custom UI host to set for CLI, if this flag is added then cda, cma and name flags are
3748
+ required
3665
3749
 
3666
3750
  DESCRIPTION
3667
3751
  Set region for CLI
@@ -3691,7 +3775,9 @@ EXAMPLES
3691
3775
 
3692
3776
  $ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name "India" --launch <custom_launch_url>
3693
3777
 
3694
- $ csdx config:set:region --cda <custom_cda_host_url> --cma <custom_cma_host_url> --ui-host <custom_ui_host_url> --name "India" --developer-hub <custom_developer_hub_url> --launch <custom_launch_url> --personalize <custom_personalize_url>
3778
+ $ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name "India" --composable-studio <custom_composable_studio_url>
3779
+
3780
+ $ csdx config:set:region --cda <custom_cda_host_url> --cma <custom_cma_host_url> --ui-host <custom_ui_host_url> --name "India" --developer-hub <custom_developer_hub_url> --launch <custom_launch_url> --personalize <custom_personalize_url> --composable-studio <custom_composable_studio_url>
3695
3781
  ```
3696
3782
 
3697
3783
  _See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/set/region.ts)_
@@ -3714,7 +3800,7 @@ DESCRIPTION
3714
3800
  Display help for csdx.
3715
3801
  ```
3716
3802
 
3717
- _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.34/src/commands/help.ts)_
3803
+ _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.36/src/commands/help.ts)_
3718
3804
 
3719
3805
  ## `csdx launch`
3720
3806
 
@@ -4031,7 +4117,7 @@ EXAMPLES
4031
4117
  $ csdx plugins
4032
4118
  ```
4033
4119
 
4034
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.51/src/commands/plugins/index.ts)_
4120
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/index.ts)_
4035
4121
 
4036
4122
  ## `csdx plugins:add PLUGIN`
4037
4123
 
@@ -4105,7 +4191,7 @@ EXAMPLES
4105
4191
  $ csdx plugins:inspect myplugin
4106
4192
  ```
4107
4193
 
4108
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.51/src/commands/plugins/inspect.ts)_
4194
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/inspect.ts)_
4109
4195
 
4110
4196
  ## `csdx plugins:install PLUGIN`
4111
4197
 
@@ -4154,7 +4240,7 @@ EXAMPLES
4154
4240
  $ csdx plugins:install someuser/someplugin
4155
4241
  ```
4156
4242
 
4157
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.51/src/commands/plugins/install.ts)_
4243
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/install.ts)_
4158
4244
 
4159
4245
  ## `csdx plugins:link PATH`
4160
4246
 
@@ -4185,7 +4271,7 @@ EXAMPLES
4185
4271
  $ csdx plugins:link myplugin
4186
4272
  ```
4187
4273
 
4188
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.51/src/commands/plugins/link.ts)_
4274
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/link.ts)_
4189
4275
 
4190
4276
  ## `csdx plugins:remove [PLUGIN]`
4191
4277
 
@@ -4226,7 +4312,7 @@ FLAGS
4226
4312
  --reinstall Reinstall all plugins after uninstalling.
4227
4313
  ```
4228
4314
 
4229
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.51/src/commands/plugins/reset.ts)_
4315
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/reset.ts)_
4230
4316
 
4231
4317
  ## `csdx plugins:uninstall [PLUGIN]`
4232
4318
 
@@ -4254,7 +4340,7 @@ EXAMPLES
4254
4340
  $ csdx plugins:uninstall myplugin
4255
4341
  ```
4256
4342
 
4257
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.51/src/commands/plugins/uninstall.ts)_
4343
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/uninstall.ts)_
4258
4344
 
4259
4345
  ## `csdx plugins:unlink [PLUGIN]`
4260
4346
 
@@ -4298,7 +4384,7 @@ DESCRIPTION
4298
4384
  Update installed plugins.
4299
4385
  ```
4300
4386
 
4301
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.51/src/commands/plugins/update.ts)_
4387
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/update.ts)_
4302
4388
 
4303
4389
  ## `csdx tokens`
4304
4390
 
@@ -1,10 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const utils_1 = require("../../utils");
4
+ const cli_utilities_1 = require("@contentstack/cli-utilities");
4
5
  /**
5
6
  * Set the cli context
6
7
  */
7
8
  function default_1(opts) {
9
+ // Store command ID for session-based log organization
10
+ if (opts.id) {
11
+ cli_utilities_1.configHandler.set('currentCommandId', opts.id);
12
+ }
8
13
  this.config.context = new utils_1.CsdxContext(opts, this.config);
9
14
  }
10
15
  exports.default = default_1;
@@ -12,28 +12,28 @@ async function default_1(opts) {
12
12
  this.exit();
13
13
  return;
14
14
  }
15
- cli_utilities_1.cliux.print(`\n Currently using ${region.name} region \n`, { color: 'grey' });
15
+ cli_utilities_1.cliux.print(`Currently using region: ${region.name}`, { color: 'grey' });
16
16
  }
17
17
  // Auth guard
18
18
  if (protectedCommands[opts.Command.id]) {
19
19
  if (!(0, cli_utilities_1.isAuthenticated)()) {
20
- newLogger.error('No auth token found for command', opts.Command.id);
21
- cli_utilities_1.cliux.error('Please login to execute the command');
20
+ newLogger.error('No auth token found for command.', opts.Command.id);
21
+ cli_utilities_1.cliux.error('Please log in to execute the command');
22
22
  this.exit();
23
23
  }
24
24
  const client = await (0, cli_utilities_1.managementSDKClient)({ host: region.cma });
25
25
  try {
26
26
  const result = await client.getUser();
27
27
  if (!result) {
28
- newLogger.error('error in auth validation');
29
- cli_utilities_1.cliux.error('Please login to execute the command');
28
+ newLogger.error('Error in auth validation');
29
+ cli_utilities_1.cliux.error('Please log in to execute the command');
30
30
  this.exit();
31
31
  }
32
- newLogger.debug('logged in user', result.data);
32
+ newLogger.debug('Logged-in user', result.data);
33
33
  }
34
34
  catch (error) {
35
- newLogger.error('error in auth validation', error);
36
- cli_utilities_1.cliux.error('Please login to execute the command');
35
+ newLogger.error('Error in auth validation', error);
36
+ cli_utilities_1.cliux.error('Please log in to execute the command');
37
37
  process.exit();
38
38
  }
39
39
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "commands": {},
3
- "version": "1.51.1"
3
+ "version": "1.53.0"
4
4
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contentstack/cli",
3
3
  "description": "Command-line tool (CLI) to interact with Contentstack",
4
- "version": "1.51.1",
4
+ "version": "1.53.0",
5
5
  "author": "Contentstack",
6
6
  "bin": {
7
7
  "csdx": "./bin/run.js"
@@ -22,24 +22,24 @@
22
22
  "prepack": "pnpm compile && oclif manifest && oclif readme"
23
23
  },
24
24
  "dependencies": {
25
- "@contentstack/cli-audit": "~1.15.0",
26
- "@contentstack/cli-auth": "~1.6.1",
27
- "@contentstack/cli-cm-bootstrap": "~1.16.1",
28
- "@contentstack/cli-cm-branches": "~1.6.0",
29
- "@contentstack/cli-cm-bulk-publish": "~1.10.2",
30
- "@contentstack/cli-cm-clone": "~1.16.1",
31
- "@contentstack/cli-cm-export": "~1.20.1",
32
- "@contentstack/cli-cm-export-to-csv": "~1.9.1",
33
- "@contentstack/cli-cm-import": "~1.28.3",
34
- "@contentstack/cli-cm-import-setup": "1.6.0",
35
- "@contentstack/cli-cm-migrate-rte": "~1.6.1",
36
- "@contentstack/cli-cm-seed": "~1.12.2",
37
- "@contentstack/cli-command": "~1.6.1",
38
- "@contentstack/cli-config": "~1.15.2",
25
+ "@contentstack/cli-audit": "~1.16.1",
26
+ "@contentstack/cli-cm-export": "~1.22.0",
27
+ "@contentstack/cli-cm-import": "~1.30.0",
28
+ "@contentstack/cli-auth": "~1.6.2",
29
+ "@contentstack/cli-cm-bootstrap": "~1.17.1",
30
+ "@contentstack/cli-cm-branches": "~1.6.1",
31
+ "@contentstack/cli-cm-bulk-publish": "~1.10.3",
32
+ "@contentstack/cli-cm-clone": "~1.18.0",
33
+ "@contentstack/cli-cm-export-to-csv": "~1.10.1",
34
+ "@contentstack/cli-cm-import-setup": "~1.7.1",
35
+ "@contentstack/cli-cm-migrate-rte": "~1.6.2",
36
+ "@contentstack/cli-cm-seed": "~1.13.1",
37
+ "@contentstack/cli-command": "~1.7.0",
38
+ "@contentstack/cli-config": "~1.16.0",
39
39
  "@contentstack/cli-launch": "^1.9.2",
40
- "@contentstack/cli-migration": "~1.9.0",
41
- "@contentstack/cli-utilities": "~1.14.4",
42
- "@contentstack/cli-variants": "~1.3.4",
40
+ "@contentstack/cli-migration": "~1.10.1",
41
+ "@contentstack/cli-utilities": "~1.15.0",
42
+ "@contentstack/cli-variants": "~1.3.5",
43
43
  "@contentstack/management": "~1.22.0",
44
44
  "@oclif/core": "^4.3.0",
45
45
  "@oclif/plugin-help": "^6.2.28",
@@ -48,7 +48,7 @@
48
48
  "chalk": "^4.1.2",
49
49
  "debug": "^4.4.1",
50
50
  "figlet": "1.8.1",
51
- "inquirer": "8.2.6",
51
+ "inquirer": "8.2.7",
52
52
  "node-machine-id": "^1.1.12",
53
53
  "open": "^8.4.2",
54
54
  "semver": "^7.7.2",