@contentstack/cli 1.32.0 → 1.32.1
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 +109 -55
- package/lib/hooks/prerun/latest-version-warning.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +11 -9
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.32.
|
|
21
|
+
@contentstack/cli/1.32.1 linux-x64 node-v18.20.5
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -67,6 +67,7 @@ USAGE
|
|
|
67
67
|
* [`csdx cm:stacks:export [-c <value>] [-k <value>] [-d <value>] [-a <value>] [--module <value>] [--content-types <value>] [--branch <value>] [--secured-assets]`](#csdx-cmstacksexport--c-value--k-value--d-value--a-value---module-value---content-types-value---branch-value---secured-assets)
|
|
68
68
|
* [`csdx cm:export-to-csv`](#csdx-cmexport-to-csv)
|
|
69
69
|
* [`csdx cm:stacks:import [-c <value>] [-k <value>] [-d <value>] [-a <value>] [--module <value>] [--backup-dir <value>] [--branch <value>] [--import-webhook-status disable|current]`](#csdx-cmstacksimport--c-value--k-value--d-value--a-value---module-value---backup-dir-value---branch-value---import-webhook-status-disablecurrent)
|
|
70
|
+
* [`csdx cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]`](#csdx-cmstacksimport-setup--k-value--d-value--a-value---modules-valuevalue)
|
|
70
71
|
* [`csdx cm:migrate-rte`](#csdx-cmmigrate-rte)
|
|
71
72
|
* [`csdx cm:stacks:migration [-k <value>] [-a <value>] [--file-path <value>] [--branch <value>] [--config-file <value>] [--config <value>] [--multiple]`](#csdx-cmstacksmigration--k-value--a-value---file-path-value---branch-value---config-file-value---config-value---multiple)
|
|
72
73
|
* [`csdx cm:stacks:seed [--repo <value>] [--org <value>] [-k <value>] [-n <value>] [-y <value>] [-s <value>] [--locale <value>]`](#csdx-cmstacksseed---repo-value---org-value--k-value--n-value--y-value--s-value---locale-value)
|
|
@@ -76,6 +77,7 @@ USAGE
|
|
|
76
77
|
* [`csdx cm:stacks:clone [--source-branch <value>] [--target-branch <value>] [--source-management-token-alias <value>] [--destination-management-token-alias <value>] [-n <value>] [--type a|b] [--source-stack-api-key <value>] [--destination-stack-api-key <value>] [--import-webhook-status disable|current]`](#csdx-cmstacksclone---source-branch-value---target-branch-value---source-management-token-alias-value---destination-management-token-alias-value--n-value---type-ab---source-stack-api-key-value---destination-stack-api-key-value---import-webhook-status-disablecurrent-1)
|
|
77
78
|
* [`csdx cm:stacks:export [-c <value>] [-k <value>] [-d <value>] [-a <value>] [--module <value>] [--content-types <value>] [--branch <value>] [--secured-assets]`](#csdx-cmstacksexport--c-value--k-value--d-value--a-value---module-value---content-types-value---branch-value---secured-assets-1)
|
|
78
79
|
* [`csdx cm:stacks:import [-c <value>] [-k <value>] [-d <value>] [-a <value>] [--module <value>] [--backup-dir <value>] [--branch <value>] [--import-webhook-status disable|current]`](#csdx-cmstacksimport--c-value--k-value--d-value--a-value---module-value---backup-dir-value---branch-value---import-webhook-status-disablecurrent-1)
|
|
80
|
+
* [`csdx cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]`](#csdx-cmstacksimport-setup--k-value--d-value--a-value---modules-valuevalue-1)
|
|
79
81
|
* [`csdx cm:stacks:migration [-k <value>] [-a <value>] [--file-path <value>] [--branch <value>] [--config-file <value>] [--config <value>] [--multiple]`](#csdx-cmstacksmigration--k-value--a-value---file-path-value---branch-value---config-file-value---config-value---multiple-1)
|
|
80
82
|
* [`csdx cm:stacks:publish`](#csdx-cmstackspublish)
|
|
81
83
|
* [`csdx cm:stacks:publish-clear-logs`](#csdx-cmstackspublish-clear-logs)
|
|
@@ -217,9 +219,9 @@ USAGE
|
|
|
217
219
|
$ csdx auth:login [-u <value> | --oauth] [-p <value> | ]
|
|
218
220
|
|
|
219
221
|
FLAGS
|
|
220
|
-
-p, --password=<value> Password of your Contentstack app
|
|
222
|
+
-p, --password=<value> Password of your Contentstack app.
|
|
221
223
|
-u, --username=<value> Email address of your Contentstack account.
|
|
222
|
-
--oauth Enables single sign-on (SSO) in Contentstack CLI
|
|
224
|
+
--oauth Enables single sign-on (SSO) in Contentstack CLI.
|
|
223
225
|
|
|
224
226
|
DESCRIPTION
|
|
225
227
|
User sessions login
|
|
@@ -250,7 +252,7 @@ USAGE
|
|
|
250
252
|
$ csdx auth:logout [-y]
|
|
251
253
|
|
|
252
254
|
FLAGS
|
|
253
|
-
-y, --yes Force log out by skipping the confirmation
|
|
255
|
+
-y, --yes Force log out by skipping the confirmation.
|
|
254
256
|
|
|
255
257
|
DESCRIPTION
|
|
256
258
|
User session logout
|
|
@@ -562,7 +564,7 @@ USAGE
|
|
|
562
564
|
FLAGS
|
|
563
565
|
-a, --alias=<value> Alias of the management token
|
|
564
566
|
-k, --stack-api-key=<value> Provide stack API key to seed content
|
|
565
|
-
-n, --stack-name=<value> Name of
|
|
567
|
+
-n, --stack-name=<value> Name of the new stack that will be created.
|
|
566
568
|
-y, --yes=<value> [Optional] Skip stack confirmation
|
|
567
569
|
--app-name=<value> App name, reactjs-starter, nextjs-starter, gatsby-starter, angular-starter, nuxt-starter,
|
|
568
570
|
vue-starter, stencil-starter
|
|
@@ -678,7 +680,7 @@ USAGE
|
|
|
678
680
|
$ csdx cm:branches:diff [--base-branch <value>] [--compare-branch <value>] [-k <value>][--module <value>]
|
|
679
681
|
|
|
680
682
|
FLAGS
|
|
681
|
-
-k, --stack-api-key=<value> [optional] Provide the
|
|
683
|
+
-k, --stack-api-key=<value> [optional] Provide the stack API key to show the difference between branches.
|
|
682
684
|
--base-branch=<value> [optional] Base branch (Target branch).
|
|
683
685
|
--compare-branch=<value> [optional] Compare branch (Source branch).
|
|
684
686
|
--format=<option> [default: compact-text] [default: compact-text] [optional] Type of flags to show the
|
|
@@ -1012,7 +1014,7 @@ FLAGS
|
|
|
1012
1014
|
selected)
|
|
1013
1015
|
-a, --alias=<value> Alias(name) for the management token
|
|
1014
1016
|
-c, --config=<value> Path to the config file
|
|
1015
|
-
-k, --stack-api-key=<value> Stack
|
|
1017
|
+
-k, --stack-api-key=<value> Stack API key to be used
|
|
1016
1018
|
-y, --yes Agree to process the command with the current configuration
|
|
1017
1019
|
--api-version=<value> API version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].
|
|
1018
1020
|
--bulk-publish=<value> [default: true] Set this flag to use Contentstack’s Bulk Publish APIs. It is true, by
|
|
@@ -1401,7 +1403,7 @@ FLAGS
|
|
|
1401
1403
|
-a, --alias=<value> Alias(name) for the management token
|
|
1402
1404
|
-c, --config=<value> Path to the config file
|
|
1403
1405
|
-e, --environment=<value> Source Environment
|
|
1404
|
-
-k, --stack-api-key=<value> Stack
|
|
1406
|
+
-k, --stack-api-key=<value> Stack API key to be used
|
|
1405
1407
|
-l, --locale=<value> Locale filter
|
|
1406
1408
|
-y, --yes Agree to process the command with the current configuration
|
|
1407
1409
|
--api-version=<value> API version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].
|
|
@@ -2212,13 +2214,13 @@ FLAGS
|
|
|
2212
2214
|
-a, --alias=<value> Alias of the management token.
|
|
2213
2215
|
-k, --stack-api-key=<value> API Key of the source stack.
|
|
2214
2216
|
-n, --stack-name=<value> Name of the stack that needs to be created as CSV filename.
|
|
2215
|
-
--action=<option> Option to export data (entries, users, teams, taxonomies).
|
|
2216
|
-
entries|users|teams|taxonomies
|
|
2217
|
+
--action=<option> Option to export data (entries, users, teams, taxonomies). <options:
|
|
2218
|
+
entries|users|teams|taxonomies>
|
|
2217
2219
|
<options: entries|users|teams|taxonomies>
|
|
2218
2220
|
--branch=<value> Branch from which entries will be exported.
|
|
2219
2221
|
--content-type=<value> Content type of entries that will be exported.
|
|
2220
|
-
--delimiter=<value> [default: ,] [
|
|
2221
|
-
|
|
2222
|
+
--delimiter=<value> [default: ,] [optional] Provide a delimiter to separate individual data fields within the
|
|
2223
|
+
CSV file. For example: cm:export-to-csv --delimiter '|'
|
|
2222
2224
|
--locale=<value> Locale of entries that will be exported.
|
|
2223
2225
|
--org=<value> Provide organization UID to clone org users.
|
|
2224
2226
|
--org-name=<value> Name of the organization that needs to be created as CSV filename.
|
|
@@ -2322,13 +2324,14 @@ FLAGS
|
|
|
2322
2324
|
-a, --alias=<value> The management token of the destination stack where you will import the
|
|
2323
2325
|
content.
|
|
2324
2326
|
-b, --backup-dir=<value> [optional] Backup directory name when using specific module.
|
|
2325
|
-
-c, --config=<value> [optional]
|
|
2327
|
+
-c, --config=<value> [optional] The path of the configuration JSON file containing all the options
|
|
2328
|
+
for a single run.
|
|
2326
2329
|
-d, --data-dir=<value> The path or the location in your file system where the content, you intend to
|
|
2327
2330
|
import, is stored. For example, -d "C:\Users\Name\Desktop\cli\content". If the
|
|
2328
2331
|
export folder has branches involved, then the path should point till the
|
|
2329
2332
|
particular branch. For example, “-d
|
|
2330
2333
|
"C:\Users\Name\Desktop\cli\content\branch_name"
|
|
2331
|
-
-k, --stack-api-key=<value> API
|
|
2334
|
+
-k, --stack-api-key=<value> API Key of the target stack
|
|
2332
2335
|
-m, --module=<value> [optional] Specify the module to import into the target stack. If not
|
|
2333
2336
|
specified, the import command will import all the modules into the stack. The
|
|
2334
2337
|
available modules are assets, content-types, entries, environments,
|
|
@@ -2336,12 +2339,12 @@ FLAGS
|
|
|
2336
2339
|
workflows, custom-roles, and taxonomies.
|
|
2337
2340
|
-y, --yes [optional] Force override all Marketplace prompts.
|
|
2338
2341
|
--exclude-global-modules Excludes the branch-independent module from the import operation.
|
|
2339
|
-
--import-webhook-status=<option> [default: disable] [
|
|
2340
|
-
webhooks as the source stack.
|
|
2342
|
+
--import-webhook-status=<option> [default: disable] [default: disable] (optional) This webhook state keeps the
|
|
2343
|
+
same state of webhooks as the source stack. <options: disable|current>
|
|
2341
2344
|
<options: disable|current>
|
|
2342
|
-
--personalize-project-name=<value> Personalize project
|
|
2345
|
+
--personalize-project-name=<value> (optional) Provide a unique name for the Personalize project.
|
|
2343
2346
|
--replace-existing Replaces the existing module in the target stack.
|
|
2344
|
-
--skip-app-recreation
|
|
2347
|
+
--skip-app-recreation (optional) Skips the recreation of private apps if they already exist.
|
|
2345
2348
|
--skip-audit Skips the audit fix that occurs during an import operation.
|
|
2346
2349
|
--skip-existing Skips the module exists warning messages.
|
|
2347
2350
|
|
|
@@ -2369,6 +2372,31 @@ EXAMPLES
|
|
|
2369
2372
|
$ csdx cm:stacks:import --branch <branch name> --yes --skip-audit
|
|
2370
2373
|
```
|
|
2371
2374
|
|
|
2375
|
+
## `csdx cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]`
|
|
2376
|
+
|
|
2377
|
+
Import content from a stack
|
|
2378
|
+
|
|
2379
|
+
```
|
|
2380
|
+
USAGE
|
|
2381
|
+
$ csdx cm:import-setup cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]
|
|
2382
|
+
|
|
2383
|
+
FLAGS
|
|
2384
|
+
-a, --alias=<value> alias of the management token
|
|
2385
|
+
-d, --data-dir=<value> path and location where data is stored
|
|
2386
|
+
-k, --stack-api-key=<value> API key of the target stack
|
|
2387
|
+
--modules=<option> [optional] specific module name
|
|
2388
|
+
<options: content-types|entries|both>
|
|
2389
|
+
|
|
2390
|
+
DESCRIPTION
|
|
2391
|
+
Import content from a stack
|
|
2392
|
+
|
|
2393
|
+
ALIASES
|
|
2394
|
+
$ csdx cm:import-setup
|
|
2395
|
+
|
|
2396
|
+
EXAMPLES
|
|
2397
|
+
$ csdx cm:stacks:import-setup --stack-api-key <stack_api_key> --data-dir <path/of/export/destination/dir> --modules <module_name, module_name>
|
|
2398
|
+
```
|
|
2399
|
+
|
|
2372
2400
|
## `csdx cm:migrate-rte`
|
|
2373
2401
|
|
|
2374
2402
|
Migration script to migrate content from HTML RTE to JSON RTE
|
|
@@ -2484,12 +2512,12 @@ USAGE
|
|
|
2484
2512
|
|
|
2485
2513
|
FLAGS
|
|
2486
2514
|
-a, --alias=<value> Alias of the management token
|
|
2487
|
-
-k, --stack-api-key=<value> Provide stack
|
|
2515
|
+
-k, --stack-api-key=<value> Provide stack API key to seed content to
|
|
2488
2516
|
-n, --stack-name=<value> Name of a new stack that needs to be created.
|
|
2489
2517
|
-o, --org=<value> Provide Organization UID to create a new stack
|
|
2490
|
-
-r, --repo=<value> GitHub
|
|
2491
|
-
-s, --stack=<value> Provide stack UID to seed content
|
|
2492
|
-
-y, --yes=<value> [Optional] Skip stack confirmation
|
|
2518
|
+
-r, --repo=<value> GitHub organization name or GitHub user name/repository name.
|
|
2519
|
+
-s, --stack=<value> Provide the stack UID to seed content.
|
|
2520
|
+
-y, --yes=<value> [Optional] Skip the stack confirmation.
|
|
2493
2521
|
|
|
2494
2522
|
DESCRIPTION
|
|
2495
2523
|
Create a stack from existing content types, entries, assets, etc
|
|
@@ -2524,15 +2552,15 @@ FLAGS
|
|
|
2524
2552
|
-n, --stack-name=<value> Provide a name for the new stack to store the cloned content.
|
|
2525
2553
|
-y, --yes Force override all Marketplace prompts.
|
|
2526
2554
|
--destination-management-token-alias=<value> Destination management token alias.
|
|
2527
|
-
--destination-stack-api-key=<value> Destination stack API
|
|
2528
|
-
--import-webhook-status=<option> [default: disable] [
|
|
2529
|
-
<options: disable
|
|
2555
|
+
--destination-stack-api-key=<value> Destination stack API key
|
|
2556
|
+
--import-webhook-status=<option> [default: disable] [default: disable] (optional) The status of the
|
|
2557
|
+
import webhook. <options: disable|current>
|
|
2530
2558
|
<options: disable|current>
|
|
2531
2559
|
--skip-audit (optional) Skips the audit fix that occurs during an import
|
|
2532
2560
|
operation.
|
|
2533
2561
|
--source-branch=<value> Branch of the source stack.
|
|
2534
2562
|
--source-management-token-alias=<value> Source management token alias.
|
|
2535
|
-
--source-stack-api-key=<value> Source stack API
|
|
2563
|
+
--source-stack-api-key=<value> Source stack API key
|
|
2536
2564
|
--target-branch=<value> Branch of the target stack.
|
|
2537
2565
|
--type=<option> Type of data to clone. You can select option a or b.
|
|
2538
2566
|
a) Structure (all modules except entries & assets).
|
|
@@ -2670,15 +2698,15 @@ FLAGS
|
|
|
2670
2698
|
-n, --stack-name=<value> Provide a name for the new stack to store the cloned content.
|
|
2671
2699
|
-y, --yes Force override all Marketplace prompts.
|
|
2672
2700
|
--destination-management-token-alias=<value> Destination management token alias.
|
|
2673
|
-
--destination-stack-api-key=<value> Destination stack API
|
|
2674
|
-
--import-webhook-status=<option> [default: disable] [
|
|
2675
|
-
<options: disable
|
|
2701
|
+
--destination-stack-api-key=<value> Destination stack API key
|
|
2702
|
+
--import-webhook-status=<option> [default: disable] [default: disable] (optional) The status of the
|
|
2703
|
+
import webhook. <options: disable|current>
|
|
2676
2704
|
<options: disable|current>
|
|
2677
2705
|
--skip-audit (optional) Skips the audit fix that occurs during an import
|
|
2678
2706
|
operation.
|
|
2679
2707
|
--source-branch=<value> Branch of the source stack.
|
|
2680
2708
|
--source-management-token-alias=<value> Source management token alias.
|
|
2681
|
-
--source-stack-api-key=<value> Source stack API
|
|
2709
|
+
--source-stack-api-key=<value> Source stack API key
|
|
2682
2710
|
--target-branch=<value> Branch of the target stack.
|
|
2683
2711
|
--type=<option> Type of data to clone. You can select option a or b.
|
|
2684
2712
|
a) Structure (all modules except entries & assets).
|
|
@@ -2777,13 +2805,14 @@ FLAGS
|
|
|
2777
2805
|
-a, --alias=<value> The management token of the destination stack where you will import the
|
|
2778
2806
|
content.
|
|
2779
2807
|
-b, --backup-dir=<value> [optional] Backup directory name when using specific module.
|
|
2780
|
-
-c, --config=<value> [optional]
|
|
2808
|
+
-c, --config=<value> [optional] The path of the configuration JSON file containing all the options
|
|
2809
|
+
for a single run.
|
|
2781
2810
|
-d, --data-dir=<value> The path or the location in your file system where the content, you intend to
|
|
2782
2811
|
import, is stored. For example, -d "C:\Users\Name\Desktop\cli\content". If the
|
|
2783
2812
|
export folder has branches involved, then the path should point till the
|
|
2784
2813
|
particular branch. For example, “-d
|
|
2785
2814
|
"C:\Users\Name\Desktop\cli\content\branch_name"
|
|
2786
|
-
-k, --stack-api-key=<value> API
|
|
2815
|
+
-k, --stack-api-key=<value> API Key of the target stack
|
|
2787
2816
|
-m, --module=<value> [optional] Specify the module to import into the target stack. If not
|
|
2788
2817
|
specified, the import command will import all the modules into the stack. The
|
|
2789
2818
|
available modules are assets, content-types, entries, environments,
|
|
@@ -2791,12 +2820,12 @@ FLAGS
|
|
|
2791
2820
|
workflows, custom-roles, and taxonomies.
|
|
2792
2821
|
-y, --yes [optional] Force override all Marketplace prompts.
|
|
2793
2822
|
--exclude-global-modules Excludes the branch-independent module from the import operation.
|
|
2794
|
-
--import-webhook-status=<option> [default: disable] [
|
|
2795
|
-
webhooks as the source stack.
|
|
2823
|
+
--import-webhook-status=<option> [default: disable] [default: disable] (optional) This webhook state keeps the
|
|
2824
|
+
same state of webhooks as the source stack. <options: disable|current>
|
|
2796
2825
|
<options: disable|current>
|
|
2797
|
-
--personalize-project-name=<value> Personalize project
|
|
2826
|
+
--personalize-project-name=<value> (optional) Provide a unique name for the Personalize project.
|
|
2798
2827
|
--replace-existing Replaces the existing module in the target stack.
|
|
2799
|
-
--skip-app-recreation
|
|
2828
|
+
--skip-app-recreation (optional) Skips the recreation of private apps if they already exist.
|
|
2800
2829
|
--skip-audit Skips the audit fix that occurs during an import operation.
|
|
2801
2830
|
--skip-existing Skips the module exists warning messages.
|
|
2802
2831
|
|
|
@@ -2826,6 +2855,33 @@ EXAMPLES
|
|
|
2826
2855
|
|
|
2827
2856
|
_See code: [@contentstack/cli-cm-import](https://github.com/contentstack/cli/blob/main/packages/contentstack-import/src/commands/cm/stacks/import.ts)_
|
|
2828
2857
|
|
|
2858
|
+
## `csdx cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]`
|
|
2859
|
+
|
|
2860
|
+
Import content from a stack
|
|
2861
|
+
|
|
2862
|
+
```
|
|
2863
|
+
USAGE
|
|
2864
|
+
$ csdx cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]
|
|
2865
|
+
|
|
2866
|
+
FLAGS
|
|
2867
|
+
-a, --alias=<value> alias of the management token
|
|
2868
|
+
-d, --data-dir=<value> path and location where data is stored
|
|
2869
|
+
-k, --stack-api-key=<value> API key of the target stack
|
|
2870
|
+
--modules=<option> [optional] specific module name
|
|
2871
|
+
<options: content-types|entries|both>
|
|
2872
|
+
|
|
2873
|
+
DESCRIPTION
|
|
2874
|
+
Import content from a stack
|
|
2875
|
+
|
|
2876
|
+
ALIASES
|
|
2877
|
+
$ csdx cm:import-setup
|
|
2878
|
+
|
|
2879
|
+
EXAMPLES
|
|
2880
|
+
$ csdx cm:stacks:import-setup --stack-api-key <stack_api_key> --data-dir <path/of/export/destination/dir> --modules <module_name, module_name>
|
|
2881
|
+
```
|
|
2882
|
+
|
|
2883
|
+
_See code: [@contentstack/cli-cm-import-setup](https://github.com/contentstack/cli/blob/main/packages/contentstack-import-setup/src/commands/cm/stacks/import-setup.ts)_
|
|
2884
|
+
|
|
2829
2885
|
## `csdx cm:stacks:migration [-k <value>] [-a <value>] [--file-path <value>] [--branch <value>] [--config-file <value>] [--config <value>] [--multiple]`
|
|
2830
2886
|
|
|
2831
2887
|
Contentstack migration script.
|
|
@@ -3033,12 +3089,12 @@ USAGE
|
|
|
3033
3089
|
|
|
3034
3090
|
FLAGS
|
|
3035
3091
|
-a, --alias=<value> Alias of the management token
|
|
3036
|
-
-k, --stack-api-key=<value> Provide stack
|
|
3092
|
+
-k, --stack-api-key=<value> Provide stack API key to seed content to
|
|
3037
3093
|
-n, --stack-name=<value> Name of a new stack that needs to be created.
|
|
3038
3094
|
-o, --org=<value> Provide Organization UID to create a new stack
|
|
3039
|
-
-r, --repo=<value> GitHub
|
|
3040
|
-
-s, --stack=<value> Provide stack UID to seed content
|
|
3041
|
-
-y, --yes=<value> [Optional] Skip stack confirmation
|
|
3095
|
+
-r, --repo=<value> GitHub organization name or GitHub user name/repository name.
|
|
3096
|
+
-s, --stack=<value> Provide the stack UID to seed content.
|
|
3097
|
+
-y, --yes=<value> [Optional] Skip the stack confirmation.
|
|
3042
3098
|
|
|
3043
3099
|
DESCRIPTION
|
|
3044
3100
|
Create a stack from existing content types, entries, assets, etc
|
|
@@ -3075,7 +3131,7 @@ FLAGS
|
|
|
3075
3131
|
-a, --alias=<value> Alias(name) for the management token
|
|
3076
3132
|
-c, --config=<value> Path to the config file
|
|
3077
3133
|
-e, --environment=<value> Source Environment
|
|
3078
|
-
-k, --stack-api-key=<value> Stack
|
|
3134
|
+
-k, --stack-api-key=<value> Stack API key to be used
|
|
3079
3135
|
-l, --locale=<value> Locale filter
|
|
3080
3136
|
-y, --yes Agree to process the command with the current configuration
|
|
3081
3137
|
--api-version=<value> API version to be used. Values [Default: 3, Nested Reference Publishing: 3.2].
|
|
@@ -3670,10 +3726,8 @@ FLAGS
|
|
|
3670
3726
|
--deployment=<value> Deployment number or UID
|
|
3671
3727
|
--org=<value> [Optional] Provide the organization UID
|
|
3672
3728
|
--project=<value> [Optional] Provide the project UID
|
|
3673
|
-
--type=<option> [default: s]
|
|
3674
|
-
|
|
3675
|
-
s) Server logs
|
|
3676
|
-
|
|
3729
|
+
--type=<option> [default: s] Type of flags to show logs. By default, these are server logs. Options [d -
|
|
3730
|
+
deployment logs, s - server logs]
|
|
3677
3731
|
<options: d|s>
|
|
3678
3732
|
|
|
3679
3733
|
DESCRIPTION
|
|
@@ -3744,9 +3798,9 @@ USAGE
|
|
|
3744
3798
|
$ csdx login [-u <value> | --oauth] [-p <value> | ]
|
|
3745
3799
|
|
|
3746
3800
|
FLAGS
|
|
3747
|
-
-p, --password=<value> Password of your Contentstack app
|
|
3801
|
+
-p, --password=<value> Password of your Contentstack app.
|
|
3748
3802
|
-u, --username=<value> Email address of your Contentstack account.
|
|
3749
|
-
--oauth Enables single sign-on (SSO) in Contentstack CLI
|
|
3803
|
+
--oauth Enables single sign-on (SSO) in Contentstack CLI.
|
|
3750
3804
|
|
|
3751
3805
|
DESCRIPTION
|
|
3752
3806
|
User sessions login
|
|
@@ -3775,7 +3829,7 @@ USAGE
|
|
|
3775
3829
|
$ csdx logout [-y]
|
|
3776
3830
|
|
|
3777
3831
|
FLAGS
|
|
3778
|
-
-y, --yes Force log out by skipping the confirmation
|
|
3832
|
+
-y, --yes Force log out by skipping the confirmation.
|
|
3779
3833
|
|
|
3780
3834
|
DESCRIPTION
|
|
3781
3835
|
User session logout
|
|
@@ -3812,7 +3866,7 @@ EXAMPLES
|
|
|
3812
3866
|
$ csdx plugins
|
|
3813
3867
|
```
|
|
3814
3868
|
|
|
3815
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
3869
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/index.ts)_
|
|
3816
3870
|
|
|
3817
3871
|
## `csdx plugins:add PLUGIN`
|
|
3818
3872
|
|
|
@@ -3886,7 +3940,7 @@ EXAMPLES
|
|
|
3886
3940
|
$ csdx plugins:inspect myplugin
|
|
3887
3941
|
```
|
|
3888
3942
|
|
|
3889
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
3943
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/inspect.ts)_
|
|
3890
3944
|
|
|
3891
3945
|
## `csdx plugins:install PLUGIN`
|
|
3892
3946
|
|
|
@@ -3935,7 +3989,7 @@ EXAMPLES
|
|
|
3935
3989
|
$ csdx plugins:install someuser/someplugin
|
|
3936
3990
|
```
|
|
3937
3991
|
|
|
3938
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
3992
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/install.ts)_
|
|
3939
3993
|
|
|
3940
3994
|
## `csdx plugins:link PATH`
|
|
3941
3995
|
|
|
@@ -3966,7 +4020,7 @@ EXAMPLES
|
|
|
3966
4020
|
$ csdx plugins:link myplugin
|
|
3967
4021
|
```
|
|
3968
4022
|
|
|
3969
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
4023
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/link.ts)_
|
|
3970
4024
|
|
|
3971
4025
|
## `csdx plugins:remove [PLUGIN]`
|
|
3972
4026
|
|
|
@@ -4007,7 +4061,7 @@ FLAGS
|
|
|
4007
4061
|
--reinstall Reinstall all plugins after uninstalling.
|
|
4008
4062
|
```
|
|
4009
4063
|
|
|
4010
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
4064
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/reset.ts)_
|
|
4011
4065
|
|
|
4012
4066
|
## `csdx plugins:uninstall [PLUGIN]`
|
|
4013
4067
|
|
|
@@ -4035,7 +4089,7 @@ EXAMPLES
|
|
|
4035
4089
|
$ csdx plugins:uninstall myplugin
|
|
4036
4090
|
```
|
|
4037
4091
|
|
|
4038
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
4092
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/uninstall.ts)_
|
|
4039
4093
|
|
|
4040
4094
|
## `csdx plugins:unlink [PLUGIN]`
|
|
4041
4095
|
|
|
@@ -4079,7 +4133,7 @@ DESCRIPTION
|
|
|
4079
4133
|
Update installed plugins.
|
|
4080
4134
|
```
|
|
4081
4135
|
|
|
4082
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
4136
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.22/src/commands/plugins/update.ts)_
|
|
4083
4137
|
|
|
4084
4138
|
## `csdx tokens`
|
|
4085
4139
|
|
|
@@ -41,7 +41,7 @@ async function default_1(_opts) {
|
|
|
41
41
|
}
|
|
42
42
|
// Show warning if an update is available and last warning was yesterday
|
|
43
43
|
if (semver.gt(cache.latestVersion, this.config.version) && cache.lastWarnedDate !== today) {
|
|
44
|
-
cli_utilities_1.cliux.print(`You are using
|
|
44
|
+
cli_utilities_1.cliux.print(`You are not using the most recent CLI release. Please update to the latest version for an improved experience.`, { color: 'yellow' });
|
|
45
45
|
// Update the last warned timestamp
|
|
46
46
|
cache.lastWarnedDate = today;
|
|
47
47
|
cli_utilities_1.configHandler.set('versionUpgradeWarningCache', cache);
|
package/oclif.manifest.json
CHANGED
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.32.
|
|
4
|
+
"version": "1.32.1",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bin": {
|
|
7
7
|
"csdx": "./bin/run.js"
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@contentstack/cli-auth": "~1.3.22",
|
|
27
27
|
"@contentstack/cli-cm-bootstrap": "~1.13.0",
|
|
28
28
|
"@contentstack/cli-cm-branches": "~1.2.0",
|
|
29
|
-
"@contentstack/cli-cm-bulk-publish": "~1.7.
|
|
29
|
+
"@contentstack/cli-cm-bulk-publish": "~1.7.1",
|
|
30
30
|
"@contentstack/cli-cm-export": "~1.14.1",
|
|
31
31
|
"@contentstack/cli-cm-clone": "~1.13.0",
|
|
32
32
|
"@contentstack/cli-cm-export-to-csv": "~1.7.3",
|
|
@@ -38,14 +38,15 @@
|
|
|
38
38
|
"@contentstack/cli-launch": "~1.3.0",
|
|
39
39
|
"@contentstack/cli-migration": "~1.6.4",
|
|
40
40
|
"@contentstack/cli-utilities": "~1.8.0",
|
|
41
|
-
"@contentstack/management": "~1.18.
|
|
42
|
-
"@contentstack/cli-variants": "~1.1.
|
|
41
|
+
"@contentstack/management": "~1.18.4",
|
|
42
|
+
"@contentstack/cli-variants": "~1.1.4",
|
|
43
|
+
"@contentstack/cli-cm-import-setup": "1.0.0-beta.1",
|
|
43
44
|
"@oclif/core": "^3.27.0",
|
|
44
45
|
"@oclif/plugin-help": "^5",
|
|
45
46
|
"@oclif/plugin-not-found": "^2.4.3",
|
|
46
|
-
"@oclif/plugin-plugins": "^5.4.
|
|
47
|
+
"@oclif/plugin-plugins": "^5.4.22",
|
|
47
48
|
"chalk": "^4.1.2",
|
|
48
|
-
"debug": "^4.
|
|
49
|
+
"debug": "^4.4.0",
|
|
49
50
|
"figlet": "^1.8.0",
|
|
50
51
|
"inquirer": "8.2.6",
|
|
51
52
|
"node-machine-id": "^1.1.12",
|
|
@@ -56,7 +57,7 @@
|
|
|
56
57
|
"winston": "^3.17.0"
|
|
57
58
|
},
|
|
58
59
|
"devDependencies": {
|
|
59
|
-
"@oclif/test": "^4.1.
|
|
60
|
+
"@oclif/test": "^4.1.3",
|
|
60
61
|
"@types/chai": "^4.3.20",
|
|
61
62
|
"@types/inquirer": "^9.0.7",
|
|
62
63
|
"@types/mkdirp": "^1.0.2",
|
|
@@ -67,7 +68,7 @@
|
|
|
67
68
|
"chai": "^4.5.0",
|
|
68
69
|
"eslint": "^8.57.1",
|
|
69
70
|
"eslint-config-oclif": "^4.0.0",
|
|
70
|
-
"eslint-config-oclif-typescript": "^3.1.
|
|
71
|
+
"eslint-config-oclif-typescript": "^3.1.13",
|
|
71
72
|
"globby": "^10.0.2",
|
|
72
73
|
"mocha": "10.8.2",
|
|
73
74
|
"nock": "^13.5.6",
|
|
@@ -150,7 +151,8 @@
|
|
|
150
151
|
"@contentstack/cli-cm-bulk-publish",
|
|
151
152
|
"@contentstack/cli-cm-branches",
|
|
152
153
|
"@contentstack/cli-launch",
|
|
153
|
-
"@contentstack/cli-audit"
|
|
154
|
+
"@contentstack/cli-audit",
|
|
155
|
+
"@contentstack/cli-cm-import-setup"
|
|
154
156
|
],
|
|
155
157
|
"hooks": {
|
|
156
158
|
"prerun": [
|