@contentstack/cli 1.15.0 → 1.16.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 +29 -25
- package/lib/utils/context-handler.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +9 -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.
|
|
21
|
+
@contentstack/cli/1.16.0 linux-x64 node-v18.19.1
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -123,12 +123,12 @@ Perform audits and find possible errors in the exported Contentstack data
|
|
|
123
123
|
```
|
|
124
124
|
USAGE
|
|
125
125
|
$ csdx audit [-c <value>] [-d <value>] [--report-path <value>] [--modules
|
|
126
|
-
content-types|global-fields|entries] [--columns <value> | ] [--sort <value>] [--filter <value>]
|
|
127
|
-
--no-truncate]
|
|
126
|
+
content-types|global-fields|entries|extensions|workflows] [--columns <value> | ] [--sort <value>] [--filter <value>]
|
|
127
|
+
[--csv | --no-truncate]
|
|
128
128
|
|
|
129
129
|
FLAGS
|
|
130
130
|
--modules=<option>... Provide the list of modules to be audited
|
|
131
|
-
<options: content-types|global-fields|entries>
|
|
131
|
+
<options: content-types|global-fields|entries|extensions|workflows>
|
|
132
132
|
--report-path=<value> Path to store the audit reports
|
|
133
133
|
|
|
134
134
|
COMMON FLAGS
|
|
@@ -168,17 +168,17 @@ Perform audits and fix possible errors in the exported Contentstack data.
|
|
|
168
168
|
```
|
|
169
169
|
USAGE
|
|
170
170
|
$ csdx audit:fix [-c <value>] [-d <value>] [--report-path <value>] [--modules
|
|
171
|
-
content-types|global-fields|entries] [--copy-path <value> --copy-dir] [--fix-only
|
|
172
|
-
reference|global_field|json:rte|json:extension|blocks|group] [--columns <value> | ] [--sort <value>]
|
|
173
|
-
<value>] [--csv | --no-truncate]
|
|
171
|
+
content-types|global-fields|entries|extensions|workflows] [--copy-path <value> --copy-dir] [--fix-only
|
|
172
|
+
reference|global_field|json:rte|json:extension|blocks|group|content_types] [--columns <value> | ] [--sort <value>]
|
|
173
|
+
[--filter <value>] [--csv | --no-truncate]
|
|
174
174
|
|
|
175
175
|
FLAGS
|
|
176
176
|
--copy-dir Create backup from the original data.
|
|
177
177
|
--copy-path=<value> Provide the path to backup the copied data
|
|
178
178
|
--fix-only=<option>... Provide the list of fix options
|
|
179
|
-
<options: reference|global_field|json:rte|json:extension|blocks|group>
|
|
179
|
+
<options: reference|global_field|json:rte|json:extension|blocks|group|content_types>
|
|
180
180
|
--modules=<option>... Provide the list of modules to be audited
|
|
181
|
-
<options: content-types|global-fields|entries>
|
|
181
|
+
<options: content-types|global-fields|entries|extensions|workflows>
|
|
182
182
|
--report-path=<value> Path to store the audit reports
|
|
183
183
|
|
|
184
184
|
COMMON FLAGS
|
|
@@ -2379,12 +2379,12 @@ Perform audits and find possible errors in the exported Contentstack data
|
|
|
2379
2379
|
```
|
|
2380
2380
|
USAGE
|
|
2381
2381
|
$ csdx cm:stacks:audit [-c <value>] [-d <value>] [--report-path <value>] [--modules
|
|
2382
|
-
content-types|global-fields|entries] [--columns <value> | ] [--sort <value>] [--filter <value>]
|
|
2383
|
-
--no-truncate]
|
|
2382
|
+
content-types|global-fields|entries|extensions|workflows] [--columns <value> | ] [--sort <value>] [--filter <value>]
|
|
2383
|
+
[--csv | --no-truncate]
|
|
2384
2384
|
|
|
2385
2385
|
FLAGS
|
|
2386
2386
|
--modules=<option>... Provide the list of modules to be audited
|
|
2387
|
-
<options: content-types|global-fields|entries>
|
|
2387
|
+
<options: content-types|global-fields|entries|extensions|workflows>
|
|
2388
2388
|
--report-path=<value> Path to store the audit reports
|
|
2389
2389
|
|
|
2390
2390
|
COMMON FLAGS
|
|
@@ -2426,17 +2426,17 @@ Perform audits and fix possible errors in the exported Contentstack data.
|
|
|
2426
2426
|
```
|
|
2427
2427
|
USAGE
|
|
2428
2428
|
$ csdx cm:stacks:audit:fix [-c <value>] [-d <value>] [--report-path <value>] [--modules
|
|
2429
|
-
content-types|global-fields|entries] [--copy-path <value> --copy-dir] [--fix-only
|
|
2430
|
-
reference|global_field|json:rte|json:extension|blocks|group] [--columns <value> | ] [--sort <value>]
|
|
2431
|
-
<value>] [--csv | --no-truncate]
|
|
2429
|
+
content-types|global-fields|entries|extensions|workflows] [--copy-path <value> --copy-dir] [--fix-only
|
|
2430
|
+
reference|global_field|json:rte|json:extension|blocks|group|content_types] [--columns <value> | ] [--sort <value>]
|
|
2431
|
+
[--filter <value>] [--csv | --no-truncate]
|
|
2432
2432
|
|
|
2433
2433
|
FLAGS
|
|
2434
2434
|
--copy-dir Create backup from the original data.
|
|
2435
2435
|
--copy-path=<value> Provide the path to backup the copied data
|
|
2436
2436
|
--fix-only=<option>... Provide the list of fix options
|
|
2437
|
-
<options: reference|global_field|json:rte|json:extension|blocks|group>
|
|
2437
|
+
<options: reference|global_field|json:rte|json:extension|blocks|group|content_types>
|
|
2438
2438
|
--modules=<option>... Provide the list of modules to be audited
|
|
2439
|
-
<options: content-types|global-fields|entries>
|
|
2439
|
+
<options: content-types|global-fields|entries|extensions|workflows>
|
|
2440
2440
|
--report-path=<value> Path to store the audit reports
|
|
2441
2441
|
|
|
2442
2442
|
COMMON FLAGS
|
|
@@ -3518,7 +3518,7 @@ EXAMPLES
|
|
|
3518
3518
|
$ csdx plugins
|
|
3519
3519
|
```
|
|
3520
3520
|
|
|
3521
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.
|
|
3521
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/index.ts)_
|
|
3522
3522
|
|
|
3523
3523
|
## `csdx plugins:install PLUGIN...`
|
|
3524
3524
|
|
|
@@ -3587,7 +3587,7 @@ EXAMPLES
|
|
|
3587
3587
|
$ csdx plugins:inspect myplugin
|
|
3588
3588
|
```
|
|
3589
3589
|
|
|
3590
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.
|
|
3590
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/inspect.ts)_
|
|
3591
3591
|
|
|
3592
3592
|
## `csdx plugins:install PLUGIN...`
|
|
3593
3593
|
|
|
@@ -3631,7 +3631,7 @@ EXAMPLES
|
|
|
3631
3631
|
$ csdx plugins:install someuser/someplugin
|
|
3632
3632
|
```
|
|
3633
3633
|
|
|
3634
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.
|
|
3634
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/install.ts)_
|
|
3635
3635
|
|
|
3636
3636
|
## `csdx plugins:link PLUGIN`
|
|
3637
3637
|
|
|
@@ -3661,7 +3661,7 @@ EXAMPLES
|
|
|
3661
3661
|
$ csdx plugins:link myplugin
|
|
3662
3662
|
```
|
|
3663
3663
|
|
|
3664
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.
|
|
3664
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/link.ts)_
|
|
3665
3665
|
|
|
3666
3666
|
## `csdx plugins:uninstall PLUGIN...`
|
|
3667
3667
|
|
|
@@ -3695,10 +3695,14 @@ Remove all user-installed and linked plugins.
|
|
|
3695
3695
|
|
|
3696
3696
|
```
|
|
3697
3697
|
USAGE
|
|
3698
|
-
$ csdx plugins:reset
|
|
3698
|
+
$ csdx plugins:reset [--hard] [--reinstall]
|
|
3699
|
+
|
|
3700
|
+
FLAGS
|
|
3701
|
+
--hard Delete node_modules and package manager related files in addition to uninstalling plugins.
|
|
3702
|
+
--reinstall Reinstall all plugins after uninstalling.
|
|
3699
3703
|
```
|
|
3700
3704
|
|
|
3701
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.
|
|
3705
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/reset.ts)_
|
|
3702
3706
|
|
|
3703
3707
|
## `csdx plugins:uninstall PLUGIN...`
|
|
3704
3708
|
|
|
@@ -3726,7 +3730,7 @@ EXAMPLES
|
|
|
3726
3730
|
$ csdx plugins:uninstall myplugin
|
|
3727
3731
|
```
|
|
3728
3732
|
|
|
3729
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.
|
|
3733
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/uninstall.ts)_
|
|
3730
3734
|
|
|
3731
3735
|
## `csdx plugins:uninstall PLUGIN...`
|
|
3732
3736
|
|
|
@@ -3770,7 +3774,7 @@ DESCRIPTION
|
|
|
3770
3774
|
Update installed plugins.
|
|
3771
3775
|
```
|
|
3772
3776
|
|
|
3773
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.
|
|
3777
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v4.3.2/src/commands/plugins/update.ts)_
|
|
3774
3778
|
|
|
3775
3779
|
## `csdx tokens`
|
|
3776
3780
|
|
|
@@ -37,7 +37,7 @@ class CsdxContext {
|
|
|
37
37
|
this.plugin = (cliConfig.plugins || []).find((p) => p.name === command.pluginName) || {};
|
|
38
38
|
this.plugin.name = command.pluginName;
|
|
39
39
|
this.plugin.config = Object.assign({}, ((this.plugin.pjson && this.plugin.pjson.csdxConfig) || {}));
|
|
40
|
-
this.messageFilePath = path.resolve(this.plugin.root, this.plugin.config.messageFilePath || './messages/index.json');
|
|
40
|
+
this.messageFilePath = (0, cli_utilities_1.pathValidator)(path.resolve(this.plugin.root, this.plugin.config.messageFilePath || './messages/index.json'));
|
|
41
41
|
this.info.shortCommandName = (_c = (_b = (_a = this.plugin) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.shortCommandName) === null || _c === void 0 ? void 0 : _c[cliOpts.id];
|
|
42
42
|
analyticsInfo.push(this.info.shortCommandName || cliOpts.id);
|
|
43
43
|
}
|
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.
|
|
4
|
+
"version": "1.16.0",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bin": {
|
|
7
7
|
"csdx": "./bin/run"
|
|
@@ -22,22 +22,22 @@
|
|
|
22
22
|
"prepack": "pnpm compile && oclif manifest && oclif readme"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@contentstack/cli-audit": "~1.
|
|
25
|
+
"@contentstack/cli-audit": "~1.5.0",
|
|
26
26
|
"@contentstack/cli-auth": "~1.3.17",
|
|
27
27
|
"@contentstack/cli-cm-bootstrap": "~1.9.0",
|
|
28
|
-
"@contentstack/cli-cm-branches": "~1.0.
|
|
29
|
-
"@contentstack/cli-cm-bulk-publish": "~1.4.
|
|
30
|
-
"@contentstack/cli-cm-export": "~1.11.
|
|
28
|
+
"@contentstack/cli-cm-branches": "~1.0.23",
|
|
29
|
+
"@contentstack/cli-cm-bulk-publish": "~1.4.3",
|
|
30
|
+
"@contentstack/cli-cm-export": "~1.11.1",
|
|
31
31
|
"@contentstack/cli-cm-clone": "~1.10.1",
|
|
32
32
|
"@contentstack/cli-cm-export-to-csv": "~1.7.0",
|
|
33
|
-
"@contentstack/cli-cm-import": "~1.14.
|
|
33
|
+
"@contentstack/cli-cm-import": "~1.14.2",
|
|
34
34
|
"@contentstack/cli-cm-migrate-rte": "~1.4.15",
|
|
35
|
-
"@contentstack/cli-cm-seed": "~1.7.
|
|
35
|
+
"@contentstack/cli-cm-seed": "~1.7.2",
|
|
36
36
|
"@contentstack/cli-command": "~1.2.17",
|
|
37
|
-
"@contentstack/cli-config": "~1.6.
|
|
37
|
+
"@contentstack/cli-config": "~1.6.3",
|
|
38
38
|
"@contentstack/cli-launch": "~1.0.16",
|
|
39
39
|
"@contentstack/cli-migration": "~1.5.0",
|
|
40
|
-
"@contentstack/cli-utilities": "~1.
|
|
40
|
+
"@contentstack/cli-utilities": "~1.6.0",
|
|
41
41
|
"@contentstack/management": "~1.15.3",
|
|
42
42
|
"@oclif/core": "^2.9.3",
|
|
43
43
|
"@oclif/plugin-help": "^5",
|