Skip to content

Commit 99b3685

Browse files
Merge pull request #1739 from contentstack/development
DX | 06-02-2025 | Release
2 parents e2994c5 + 97a911a commit 99b3685

File tree

31 files changed

+219
-114
lines changed

31 files changed

+219
-114
lines changed

package-lock.json

Lines changed: 23 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/contentstack-audit/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ $ npm install -g @contentstack/cli-audit
1919
$ csdx COMMAND
2020
running command...
2121
$ csdx (--version|-v)
22-
@contentstack/cli-audit/1.7.4 darwin-arm64 node-v22.8.0
22+
@contentstack/cli-audit/1.7.4 darwin-arm64 node-v22.2.0
2323
$ csdx --help [COMMAND]
2424
USAGE
2525
$ csdx COMMAND
@@ -269,7 +269,7 @@ EXAMPLES
269269
$ csdx plugins
270270
```
271271

272-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/index.ts)_
272+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.26/src/commands/plugins/index.ts)_
273273

274274
## `csdx plugins:add PLUGIN`
275275

@@ -343,7 +343,7 @@ EXAMPLES
343343
$ csdx plugins:inspect myplugin
344344
```
345345

346-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/inspect.ts)_
346+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.26/src/commands/plugins/inspect.ts)_
347347

348348
## `csdx plugins:install PLUGIN`
349349

@@ -392,7 +392,7 @@ EXAMPLES
392392
$ csdx plugins:install someuser/someplugin
393393
```
394394

395-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/install.ts)_
395+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.26/src/commands/plugins/install.ts)_
396396

397397
## `csdx plugins:link PATH`
398398

@@ -423,7 +423,7 @@ EXAMPLES
423423
$ csdx plugins:link myplugin
424424
```
425425

426-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/link.ts)_
426+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.26/src/commands/plugins/link.ts)_
427427

428428
## `csdx plugins:remove [PLUGIN]`
429429

@@ -464,7 +464,7 @@ FLAGS
464464
--reinstall Reinstall all plugins after uninstalling.
465465
```
466466

467-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/reset.ts)_
467+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.26/src/commands/plugins/reset.ts)_
468468

469469
## `csdx plugins:uninstall [PLUGIN]`
470470

@@ -492,7 +492,7 @@ EXAMPLES
492492
$ csdx plugins:uninstall myplugin
493493
```
494494

495-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/uninstall.ts)_
495+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.26/src/commands/plugins/uninstall.ts)_
496496

497497
## `csdx plugins:unlink [PLUGIN]`
498498

@@ -536,5 +536,5 @@ DESCRIPTION
536536
Update installed plugins.
537537
```
538538

539-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.25/src/commands/plugins/update.ts)_
539+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.26/src/commands/plugins/update.ts)_
540540
<!-- commandsstop -->

packages/contentstack-auth/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-auth
1818
$ csdx COMMAND
1919
running command...
2020
$ csdx (--version)
21-
@contentstack/cli-auth/1.3.22 darwin-arm64 node-v22.8.0
21+
@contentstack/cli-auth/1.3.22 darwin-arm64 node-v22.2.0
2222
$ csdx --help [COMMAND]
2323
USAGE
2424
$ csdx COMMAND

packages/contentstack-bootstrap/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ $ npm install -g @contentstack/cli-cm-bootstrap
1515
$ csdx COMMAND
1616
running command...
1717
$ csdx (--version)
18-
@contentstack/cli-cm-bootstrap/1.13.0 darwin-arm64 node-v22.8.0
18+
@contentstack/cli-cm-bootstrap/1.13.0 darwin-arm64 node-v22.2.0
1919
$ csdx --help [COMMAND]
2020
USAGE
2121
$ csdx COMMAND

packages/contentstack-branches/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ $ npm install -g @contentstack/cli-cm-branches
3737
$ csdx COMMAND
3838
running command...
3939
$ csdx (--version)
40-
@contentstack/cli-cm-branches/1.2.0 darwin-arm64 node-v22.8.0
40+
@contentstack/cli-cm-branches/1.2.0 darwin-arm64 node-v22.2.0
4141
$ csdx --help [COMMAND]
4242
USAGE
4343
$ csdx COMMAND

packages/contentstack-bulk-publish/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-cm-bulk-publish
1818
$ csdx COMMAND
1919
running command...
2020
$ csdx (--version)
21-
@contentstack/cli-cm-bulk-publish/1.7.1 darwin-arm64 node-v22.8.0
21+
@contentstack/cli-cm-bulk-publish/1.7.1 darwin-arm64 node-v22.2.0
2222
$ csdx --help [COMMAND]
2323
USAGE
2424
$ csdx COMMAND

packages/contentstack-clone/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ $ npm install -g @contentstack/cli-cm-clone
1616
$ csdx COMMAND
1717
running command...
1818
$ csdx (--version)
19-
@contentstack/cli-cm-clone/1.13.0 darwin-arm64 node-v22.8.0
19+
@contentstack/cli-cm-clone/1.13.0 darwin-arm64 node-v22.2.0
2020
$ csdx --help [COMMAND]
2121
USAGE
2222
$ csdx COMMAND

packages/contentstack-config/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-config
1818
$ csdx COMMAND
1919
running command...
2020
$ csdx (--version)
21-
@contentstack/cli-config/1.9.0 darwin-arm64 node-v22.8.0
21+
@contentstack/cli-config/1.9.0 darwin-arm64 node-v22.2.0
2222
$ csdx --help [COMMAND]
2323
USAGE
2424
$ csdx COMMAND

packages/contentstack-export/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ $ npm install -g @contentstack/cli-cm-export
4848
$ csdx COMMAND
4949
running command...
5050
$ csdx (--version)
51-
@contentstack/cli-cm-export/1.14.1 darwin-arm64 node-v22.8.0
51+
@contentstack/cli-cm-export/1.14.1 darwin-arm64 node-v22.2.0
5252
$ csdx --help [COMMAND]
5353
USAGE
5454
$ csdx COMMAND

packages/contentstack-import-setup/README.md

Lines changed: 35 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ $ npm install -g @contentstack/cli-cm-import-setup
4747
$ csdx COMMAND
4848
running command...
4949
$ csdx (--version)
50-
@contentstack/cli-cm-import-setup/1.0.0-beta.1 darwin-arm64 node-v22.8.0
50+
@contentstack/cli-cm-import-setup/1.0.0 darwin-arm64 node-v22.2.0
5151
$ csdx --help [COMMAND]
5252
USAGE
5353
$ csdx COMMAND
@@ -63,52 +63,72 @@ USAGE
6363

6464
## `csdx cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]`
6565

66-
Import content from a stack
66+
Helps to generate mappers and backup folder for importing (overwriting) specific modules
6767

6868
```
6969
USAGE
7070
$ csdx cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]
7171
7272
FLAGS
73-
-a, --alias=<value> alias of the management token
74-
-d, --data-dir=<value> path and location where data is stored
73+
-B, --branch=<value> The name of the branch where you want to import your content. If you don't mention the
74+
branch name, then by default the content will be imported to the main branch.
75+
-a, --alias=<value> The management token of the destination stack where you will import the content.
76+
-d, --data-dir=<value> The path or the location in your file system where the content, you intend to import, is
77+
stored. For example, -d "C:\Users\Name\Desktop\cli\content". If the export folder has
78+
branches involved, then the path should point till the particular branch. For example,
79+
“-d "C:\Users\Name\Desktop\cli\content\branch_name"
7580
-k, --stack-api-key=<value> API key of the target stack
76-
--modules=<option> [optional] specific module name
77-
<options: content-types|entries|both>
81+
--module=<option>... [optional] Specify the modules/module to import into the target stack. currently options
82+
are global-fields, content-types, entries
83+
<options: global-fields|content-types|entries>
7884
7985
DESCRIPTION
80-
Import content from a stack
86+
Helps to generate mappers and backup folder for importing (overwriting) specific modules
8187
8288
ALIASES
8389
$ csdx cm:import-setup
8490
8591
EXAMPLES
86-
$ csdx cm:stacks:import-setup --stack-api-key <stack_api_key> --data-dir <path/of/export/destination/dir> --modules <module_name, module_name>
92+
$ csdx cm:stacks:import-setup --stack-api-key <target_stack_api_key> --data-dir <path/of/export/destination/dir> --modules <module_name, module_name>
93+
94+
$ csdx cm:stacks:import-setup -k <target_stack_api_key> -d <path/of/export/destination/dir> --modules <module_name, module_name>
95+
96+
$ csdx cm:stacks:import-setup -k <target_stack_api_key> -d <path/of/export/destination/dir> --modules <module_name, module_name> -b <branch_name>
8797
```
8898

8999
## `csdx cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]`
90100

91-
Import content from a stack
101+
Helps to generate mappers and backup folder for importing (overwriting) specific modules
92102

93103
```
94104
USAGE
95105
$ csdx cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]
96106
97107
FLAGS
98-
-a, --alias=<value> alias of the management token
99-
-d, --data-dir=<value> path and location where data is stored
108+
-B, --branch=<value> The name of the branch where you want to import your content. If you don't mention the
109+
branch name, then by default the content will be imported to the main branch.
110+
-a, --alias=<value> The management token of the destination stack where you will import the content.
111+
-d, --data-dir=<value> The path or the location in your file system where the content, you intend to import, is
112+
stored. For example, -d "C:\Users\Name\Desktop\cli\content". If the export folder has
113+
branches involved, then the path should point till the particular branch. For example,
114+
“-d "C:\Users\Name\Desktop\cli\content\branch_name"
100115
-k, --stack-api-key=<value> API key of the target stack
101-
--modules=<option> [optional] specific module name
102-
<options: content-types|entries|both>
116+
--module=<option>... [optional] Specify the modules/module to import into the target stack. currently options
117+
are global-fields, content-types, entries
118+
<options: global-fields|content-types|entries>
103119
104120
DESCRIPTION
105-
Import content from a stack
121+
Helps to generate mappers and backup folder for importing (overwriting) specific modules
106122
107123
ALIASES
108124
$ csdx cm:import-setup
109125
110126
EXAMPLES
111-
$ csdx cm:stacks:import-setup --stack-api-key <stack_api_key> --data-dir <path/of/export/destination/dir> --modules <module_name, module_name>
127+
$ csdx cm:stacks:import-setup --stack-api-key <target_stack_api_key> --data-dir <path/of/export/destination/dir> --modules <module_name, module_name>
128+
129+
$ csdx cm:stacks:import-setup -k <target_stack_api_key> -d <path/of/export/destination/dir> --modules <module_name, module_name>
130+
131+
$ csdx cm:stacks:import-setup -k <target_stack_api_key> -d <path/of/export/destination/dir> --modules <module_name, module_name> -b <branch_name>
112132
```
113133

114134
_See code: [src/commands/cm/stacks/import-setup.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-import-setup/src/commands/cm/stacks/import-setup.ts)_

0 commit comments

Comments
 (0)