@contentstack/cli 2.0.0-beta.1 → 2.0.0-beta.2
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 +55 -31
- package/oclif.manifest.json +1 -1
- package/package.json +11 -11
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/2.0.0-beta.
|
|
21
|
+
@contentstack/cli/2.0.0-beta.2 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
|
|
@@ -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>
|
|
2245
|
-
-k, --stack-api-key=<value>
|
|
2246
|
-
-n, --stack-name=<value>
|
|
2247
|
-
--action=<option>
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
--branch=<value>
|
|
2251
|
-
--content-type=<value>
|
|
2252
|
-
--delimiter=<value>
|
|
2253
|
-
|
|
2254
|
-
--locale=<value>
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
--
|
|
2258
|
-
|
|
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)_
|
|
@@ -3649,7 +3673,7 @@ USAGE
|
|
|
3649
3673
|
[--personalize <value>] [--launch <value>]
|
|
3650
3674
|
|
|
3651
3675
|
ARGUMENTS
|
|
3652
|
-
REGION Name for the region
|
|
3676
|
+
[REGION] Name for the region
|
|
3653
3677
|
|
|
3654
3678
|
FLAGS
|
|
3655
3679
|
-d, --cda=<value> Custom host to set for content delivery API, if this flag is added then cma, ui-host and
|
|
@@ -3705,7 +3729,7 @@ USAGE
|
|
|
3705
3729
|
$ csdx help [COMMAND...] [-n]
|
|
3706
3730
|
|
|
3707
3731
|
ARGUMENTS
|
|
3708
|
-
COMMAND... Command to show help for.
|
|
3732
|
+
[COMMAND...] Command to show help for.
|
|
3709
3733
|
|
|
3710
3734
|
FLAGS
|
|
3711
3735
|
-n, --nested-commands Include all nested commands in the output.
|
|
@@ -3714,7 +3738,7 @@ DESCRIPTION
|
|
|
3714
3738
|
Display help for csdx.
|
|
3715
3739
|
```
|
|
3716
3740
|
|
|
3717
|
-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.
|
|
3741
|
+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.35/src/commands/help.ts)_
|
|
3718
3742
|
|
|
3719
3743
|
## `csdx launch`
|
|
3720
3744
|
|
|
@@ -4031,7 +4055,7 @@ EXAMPLES
|
|
|
4031
4055
|
$ csdx plugins
|
|
4032
4056
|
```
|
|
4033
4057
|
|
|
4034
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
4058
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.53/src/commands/plugins/index.ts)_
|
|
4035
4059
|
|
|
4036
4060
|
## `csdx plugins:add PLUGIN`
|
|
4037
4061
|
|
|
@@ -4105,7 +4129,7 @@ EXAMPLES
|
|
|
4105
4129
|
$ csdx plugins:inspect myplugin
|
|
4106
4130
|
```
|
|
4107
4131
|
|
|
4108
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
4132
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.53/src/commands/plugins/inspect.ts)_
|
|
4109
4133
|
|
|
4110
4134
|
## `csdx plugins:install PLUGIN`
|
|
4111
4135
|
|
|
@@ -4154,7 +4178,7 @@ EXAMPLES
|
|
|
4154
4178
|
$ csdx plugins:install someuser/someplugin
|
|
4155
4179
|
```
|
|
4156
4180
|
|
|
4157
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
4181
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.53/src/commands/plugins/install.ts)_
|
|
4158
4182
|
|
|
4159
4183
|
## `csdx plugins:link PATH`
|
|
4160
4184
|
|
|
@@ -4185,7 +4209,7 @@ EXAMPLES
|
|
|
4185
4209
|
$ csdx plugins:link myplugin
|
|
4186
4210
|
```
|
|
4187
4211
|
|
|
4188
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
4212
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.53/src/commands/plugins/link.ts)_
|
|
4189
4213
|
|
|
4190
4214
|
## `csdx plugins:remove [PLUGIN]`
|
|
4191
4215
|
|
|
@@ -4196,7 +4220,7 @@ USAGE
|
|
|
4196
4220
|
$ csdx plugins:remove [PLUGIN...] [-h] [-v]
|
|
4197
4221
|
|
|
4198
4222
|
ARGUMENTS
|
|
4199
|
-
PLUGIN... plugin to uninstall
|
|
4223
|
+
[PLUGIN...] plugin to uninstall
|
|
4200
4224
|
|
|
4201
4225
|
FLAGS
|
|
4202
4226
|
-h, --help Show CLI help.
|
|
@@ -4226,7 +4250,7 @@ FLAGS
|
|
|
4226
4250
|
--reinstall Reinstall all plugins after uninstalling.
|
|
4227
4251
|
```
|
|
4228
4252
|
|
|
4229
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
4253
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.53/src/commands/plugins/reset.ts)_
|
|
4230
4254
|
|
|
4231
4255
|
## `csdx plugins:uninstall [PLUGIN]`
|
|
4232
4256
|
|
|
@@ -4237,7 +4261,7 @@ USAGE
|
|
|
4237
4261
|
$ csdx plugins:uninstall [PLUGIN...] [-h] [-v]
|
|
4238
4262
|
|
|
4239
4263
|
ARGUMENTS
|
|
4240
|
-
PLUGIN... plugin to uninstall
|
|
4264
|
+
[PLUGIN...] plugin to uninstall
|
|
4241
4265
|
|
|
4242
4266
|
FLAGS
|
|
4243
4267
|
-h, --help Show CLI help.
|
|
@@ -4254,7 +4278,7 @@ EXAMPLES
|
|
|
4254
4278
|
$ csdx plugins:uninstall myplugin
|
|
4255
4279
|
```
|
|
4256
4280
|
|
|
4257
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
4281
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.53/src/commands/plugins/uninstall.ts)_
|
|
4258
4282
|
|
|
4259
4283
|
## `csdx plugins:unlink [PLUGIN]`
|
|
4260
4284
|
|
|
@@ -4265,7 +4289,7 @@ USAGE
|
|
|
4265
4289
|
$ csdx plugins:unlink [PLUGIN...] [-h] [-v]
|
|
4266
4290
|
|
|
4267
4291
|
ARGUMENTS
|
|
4268
|
-
PLUGIN... plugin to uninstall
|
|
4292
|
+
[PLUGIN...] plugin to uninstall
|
|
4269
4293
|
|
|
4270
4294
|
FLAGS
|
|
4271
4295
|
-h, --help Show CLI help.
|
|
@@ -4298,7 +4322,7 @@ DESCRIPTION
|
|
|
4298
4322
|
Update installed plugins.
|
|
4299
4323
|
```
|
|
4300
4324
|
|
|
4301
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.
|
|
4325
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.53/src/commands/plugins/update.ts)_
|
|
4302
4326
|
|
|
4303
4327
|
## `csdx tokens`
|
|
4304
4328
|
|
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": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.2",
|
|
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.
|
|
25
|
+
"@contentstack/cli-audit": "~1.16.0",
|
|
26
26
|
"@contentstack/cli-auth": "~1.6.2",
|
|
27
|
-
"@contentstack/cli-cm-bootstrap": "~2.0.0-beta.
|
|
27
|
+
"@contentstack/cli-cm-bootstrap": "~2.0.0-beta.2",
|
|
28
28
|
"@contentstack/cli-cm-branches": "~1.6.1",
|
|
29
29
|
"@contentstack/cli-cm-bulk-publish": "~1.10.1",
|
|
30
|
-
"@contentstack/cli-cm-clone": "~2.0.0-beta.
|
|
31
|
-
"@contentstack/cli-cm-export": "~2.0.0-beta.
|
|
32
|
-
"@contentstack/cli-cm-export-to-csv": "~1.
|
|
33
|
-
"@contentstack/cli-cm-import": "~2.0.0-beta.
|
|
34
|
-
"@contentstack/cli-cm-import-setup": "1.
|
|
30
|
+
"@contentstack/cli-cm-clone": "~2.0.0-beta.2",
|
|
31
|
+
"@contentstack/cli-cm-export": "~2.0.0-beta.2",
|
|
32
|
+
"@contentstack/cli-cm-export-to-csv": "~1.10.0",
|
|
33
|
+
"@contentstack/cli-cm-import": "~2.0.0-beta.2",
|
|
34
|
+
"@contentstack/cli-cm-import-setup": "1.7.0",
|
|
35
35
|
"@contentstack/cli-cm-migrate-rte": "~1.6.2",
|
|
36
|
-
"@contentstack/cli-cm-seed": "~2.0.0-beta.
|
|
36
|
+
"@contentstack/cli-cm-seed": "~2.0.0-beta.2",
|
|
37
37
|
"@contentstack/cli-command": "~1.6.2",
|
|
38
38
|
"@contentstack/cli-config": "~1.15.3",
|
|
39
39
|
"@contentstack/cli-launch": "^1.9.2",
|
|
40
40
|
"@contentstack/cli-migration": "~1.8.2",
|
|
41
41
|
"@contentstack/cli-utilities": "~1.15.0",
|
|
42
|
-
"@contentstack/cli-variants": "~2.0.0-beta.
|
|
42
|
+
"@contentstack/cli-variants": "~2.0.0-beta.2",
|
|
43
43
|
"@contentstack/management": "~1.22.0",
|
|
44
44
|
"@oclif/core": "^4.3.0",
|
|
45
45
|
"@oclif/plugin-help": "^6.2.28",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"cli-progress": "^3.12.0",
|
|
50
50
|
"debug": "^4.4.1",
|
|
51
51
|
"figlet": "1.8.1",
|
|
52
|
-
"inquirer": "8.2.
|
|
52
|
+
"inquirer": "8.2.7",
|
|
53
53
|
"node-machine-id": "^1.1.12",
|
|
54
54
|
"open": "^8.4.2",
|
|
55
55
|
"ora": "^8.2.0",
|