@contentstack/cli 1.18.1 → 1.19.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 +27 -25
- package/bin/run.js +19 -2
- package/lib/utils/context-handler.js +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +12 -12
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.19.0 linux-x64 node-v18.20.3
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -122,8 +122,9 @@ Perform audits and find possible errors in the exported Contentstack data
|
|
|
122
122
|
|
|
123
123
|
```
|
|
124
124
|
USAGE
|
|
125
|
-
$ csdx audit [--report-path <value>] [--modules
|
|
126
|
-
[--columns <value> | ] [--sort <value>] [--filter
|
|
125
|
+
$ csdx audit [--report-path <value>] [--modules
|
|
126
|
+
content-types|global-fields|entries|extensions|workflows...] [--columns <value> | ] [--sort <value>] [--filter
|
|
127
|
+
<value>] [--csv | --no-truncate]
|
|
127
128
|
|
|
128
129
|
FLAGS
|
|
129
130
|
--modules=<option>... Provide the list of modules to be audited
|
|
@@ -162,10 +163,10 @@ Perform audits and fix possible errors in the exported Contentstack data.
|
|
|
162
163
|
|
|
163
164
|
```
|
|
164
165
|
USAGE
|
|
165
|
-
$ csdx audit:fix [--report-path <value>] [--modules
|
|
166
|
-
[--copy-path <value> --copy-dir] [--fix-only
|
|
167
|
-
reference|global_field|json:rte|json:extension|blocks|group|content_types] [--columns <value> | ] [--sort
|
|
168
|
-
[--filter <value>] [--csv | --no-truncate]
|
|
166
|
+
$ csdx audit:fix [--report-path <value>] [--modules
|
|
167
|
+
content-types|global-fields|entries|extensions|workflows...] [--copy-path <value> --copy-dir] [--fix-only
|
|
168
|
+
reference|global_field|json:rte|json:extension|blocks|group|content_types...] [--columns <value> | ] [--sort
|
|
169
|
+
<value>] [--filter <value>] [--csv | --no-truncate]
|
|
169
170
|
|
|
170
171
|
FLAGS
|
|
171
172
|
--copy-dir Create backup from the original data.
|
|
@@ -2374,8 +2375,9 @@ Perform audits and find possible errors in the exported Contentstack data
|
|
|
2374
2375
|
|
|
2375
2376
|
```
|
|
2376
2377
|
USAGE
|
|
2377
|
-
$ csdx cm:stacks:audit [--report-path <value>] [--modules
|
|
2378
|
-
[--columns <value> | ] [--sort <value>] [--filter
|
|
2378
|
+
$ csdx cm:stacks:audit [--report-path <value>] [--modules
|
|
2379
|
+
content-types|global-fields|entries|extensions|workflows...] [--columns <value> | ] [--sort <value>] [--filter
|
|
2380
|
+
<value>] [--csv | --no-truncate]
|
|
2379
2381
|
|
|
2380
2382
|
FLAGS
|
|
2381
2383
|
--modules=<option>... Provide the list of modules to be audited
|
|
@@ -2416,10 +2418,10 @@ Perform audits and fix possible errors in the exported Contentstack data.
|
|
|
2416
2418
|
|
|
2417
2419
|
```
|
|
2418
2420
|
USAGE
|
|
2419
|
-
$ csdx cm:stacks:audit:fix [--report-path <value>] [--modules
|
|
2420
|
-
[--copy-path <value> --copy-dir] [--fix-only
|
|
2421
|
-
reference|global_field|json:rte|json:extension|blocks|group|content_types] [--columns <value> | ] [--sort
|
|
2422
|
-
[--filter <value>] [--csv | --no-truncate]
|
|
2421
|
+
$ csdx cm:stacks:audit:fix [--report-path <value>] [--modules
|
|
2422
|
+
content-types|global-fields|entries|extensions|workflows...] [--copy-path <value> --copy-dir] [--fix-only
|
|
2423
|
+
reference|global_field|json:rte|json:extension|blocks|group|content_types...] [--columns <value> | ] [--sort
|
|
2424
|
+
<value>] [--filter <value>] [--csv | --no-truncate]
|
|
2423
2425
|
|
|
2424
2426
|
FLAGS
|
|
2425
2427
|
--copy-dir Create backup from the original data.
|
|
@@ -2839,9 +2841,9 @@ Unpublish entries or assets of given content types from the specified environmen
|
|
|
2839
2841
|
|
|
2840
2842
|
```
|
|
2841
2843
|
USAGE
|
|
2842
|
-
$ csdx cm:stacks:unpublish csdx
|
|
2843
|
-
[--retry-failed <value>] [--bulk-unpublish <value>] [--content-type <value>] [--delivery-token
|
|
2844
|
-
[--only-assets] [--only-entries]
|
|
2844
|
+
$ csdx cm:stacks:unpublish csdx cm:stacks:unpublish [-a <value>] [-e <value>] [-c <value>] [-y] [--locale <value>]
|
|
2845
|
+
[--branch <value>] [--retry-failed <value>] [--bulk-unpublish <value>] [--content-type <value>] [--delivery-token
|
|
2846
|
+
<value>] [--only-assets] [--only-entries]
|
|
2845
2847
|
|
|
2846
2848
|
FLAGS
|
|
2847
2849
|
-B, --branch=<value> [default: main] Specify the branch to fetch the content from (default is main branch)
|
|
@@ -3492,7 +3494,7 @@ EXAMPLES
|
|
|
3492
3494
|
$ csdx plugins
|
|
3493
3495
|
```
|
|
3494
3496
|
|
|
3495
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.
|
|
3497
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.3/src/commands/plugins/index.ts)_
|
|
3496
3498
|
|
|
3497
3499
|
## `csdx plugins:add PLUGIN`
|
|
3498
3500
|
|
|
@@ -3517,7 +3519,7 @@ GLOBAL FLAGS
|
|
|
3517
3519
|
DESCRIPTION
|
|
3518
3520
|
Installs a plugin into csdx.
|
|
3519
3521
|
|
|
3520
|
-
Uses
|
|
3522
|
+
Uses npm to install plugins.
|
|
3521
3523
|
|
|
3522
3524
|
Installation of a user-installed plugin will override a core plugin.
|
|
3523
3525
|
|
|
@@ -3566,7 +3568,7 @@ EXAMPLES
|
|
|
3566
3568
|
$ csdx plugins:inspect myplugin
|
|
3567
3569
|
```
|
|
3568
3570
|
|
|
3569
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.
|
|
3571
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.3/src/commands/plugins/inspect.ts)_
|
|
3570
3572
|
|
|
3571
3573
|
## `csdx plugins:install PLUGIN`
|
|
3572
3574
|
|
|
@@ -3591,7 +3593,7 @@ GLOBAL FLAGS
|
|
|
3591
3593
|
DESCRIPTION
|
|
3592
3594
|
Installs a plugin into csdx.
|
|
3593
3595
|
|
|
3594
|
-
Uses
|
|
3596
|
+
Uses npm to install plugins.
|
|
3595
3597
|
|
|
3596
3598
|
Installation of a user-installed plugin will override a core plugin.
|
|
3597
3599
|
|
|
@@ -3615,7 +3617,7 @@ EXAMPLES
|
|
|
3615
3617
|
$ csdx plugins:install someuser/someplugin
|
|
3616
3618
|
```
|
|
3617
3619
|
|
|
3618
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.
|
|
3620
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.3/src/commands/plugins/install.ts)_
|
|
3619
3621
|
|
|
3620
3622
|
## `csdx plugins:link PATH`
|
|
3621
3623
|
|
|
@@ -3645,7 +3647,7 @@ EXAMPLES
|
|
|
3645
3647
|
$ csdx plugins:link myplugin
|
|
3646
3648
|
```
|
|
3647
3649
|
|
|
3648
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.
|
|
3650
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.3/src/commands/plugins/link.ts)_
|
|
3649
3651
|
|
|
3650
3652
|
## `csdx plugins:remove [PLUGIN]`
|
|
3651
3653
|
|
|
@@ -3686,7 +3688,7 @@ FLAGS
|
|
|
3686
3688
|
--reinstall Reinstall all plugins after uninstalling.
|
|
3687
3689
|
```
|
|
3688
3690
|
|
|
3689
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.
|
|
3691
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.3/src/commands/plugins/reset.ts)_
|
|
3690
3692
|
|
|
3691
3693
|
## `csdx plugins:uninstall [PLUGIN]`
|
|
3692
3694
|
|
|
@@ -3714,7 +3716,7 @@ EXAMPLES
|
|
|
3714
3716
|
$ csdx plugins:uninstall myplugin
|
|
3715
3717
|
```
|
|
3716
3718
|
|
|
3717
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.
|
|
3719
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.3/src/commands/plugins/uninstall.ts)_
|
|
3718
3720
|
|
|
3719
3721
|
## `csdx plugins:unlink [PLUGIN]`
|
|
3720
3722
|
|
|
@@ -3758,7 +3760,7 @@ DESCRIPTION
|
|
|
3758
3760
|
Update installed plugins.
|
|
3759
3761
|
```
|
|
3760
3762
|
|
|
3761
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.
|
|
3763
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.2.3/src/commands/plugins/update.ts)_
|
|
3762
3764
|
|
|
3763
3765
|
## `csdx tokens`
|
|
3764
3766
|
|
package/bin/run.js
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// eslint-disable-next-line unicorn/prefer-top-level-await
|
|
3
3
|
(async () => {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
try {
|
|
5
|
+
// Store the original process.emitWarning function
|
|
6
|
+
const originalEmitWarning = process.emitWarning;
|
|
7
|
+
|
|
8
|
+
// Override process.emitWarning to filter out the punycode deprecation warning
|
|
9
|
+
process.emitWarning = (warning, type, code, ...args) => {
|
|
10
|
+
if (type === 'DeprecationWarning' && typeof warning === 'string' && warning.includes('punycode')) {
|
|
11
|
+
// Ignore punycode deprecation warning
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
// Call the original emitWarning function for other warnings
|
|
15
|
+
originalEmitWarning.call(process, warning, type, code, ...args);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const oclif = await import('@oclif/core');
|
|
19
|
+
await oclif.execute({ development: false, dir: __dirname });
|
|
20
|
+
} catch (error) {
|
|
21
|
+
console.error('An error occurred while executing oclif:', error);
|
|
22
|
+
}
|
|
6
23
|
})();
|
|
@@ -37,7 +37,7 @@ class CsdxContext {
|
|
|
37
37
|
this.plugin = (cliConfig.plugins || new Map()).get(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 = (0, cli_utilities_1.pathValidator)(path.resolve(this.plugin.root, this.plugin.config.messageFilePath || './messages/index.json'));
|
|
40
|
+
this.messageFilePath = (0, cli_utilities_1.pathValidator)(path.resolve((0, cli_utilities_1.sanitizePath)(this.plugin.root), (0, cli_utilities_1.sanitizePath)(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.19.0",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bin": {
|
|
7
7
|
"csdx": "./bin/run.js"
|
|
@@ -22,22 +22,22 @@
|
|
|
22
22
|
"prepack": "pnpm compile && oclif manifest && oclif readme"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@contentstack/cli-audit": "~1.6.
|
|
25
|
+
"@contentstack/cli-audit": "~1.6.2",
|
|
26
26
|
"@contentstack/cli-auth": "~1.3.18",
|
|
27
|
-
"@contentstack/cli-cm-bootstrap": "~1.9.
|
|
28
|
-
"@contentstack/cli-cm-branches": "~1.0
|
|
29
|
-
"@contentstack/cli-cm-bulk-publish": "~1.4.
|
|
30
|
-
"@contentstack/cli-cm-export": "~1.11.
|
|
31
|
-
"@contentstack/cli-cm-clone": "~1.10.
|
|
27
|
+
"@contentstack/cli-cm-bootstrap": "~1.9.3",
|
|
28
|
+
"@contentstack/cli-cm-branches": "~1.1.0",
|
|
29
|
+
"@contentstack/cli-cm-bulk-publish": "~1.4.7",
|
|
30
|
+
"@contentstack/cli-cm-export": "~1.11.4",
|
|
31
|
+
"@contentstack/cli-cm-clone": "~1.10.5",
|
|
32
32
|
"@contentstack/cli-cm-export-to-csv": "~1.7.1",
|
|
33
|
-
"@contentstack/cli-cm-import": "~1.15.
|
|
33
|
+
"@contentstack/cli-cm-import": "~1.15.7",
|
|
34
34
|
"@contentstack/cli-cm-migrate-rte": "~1.4.17",
|
|
35
|
-
"@contentstack/cli-cm-seed": "~1.7.
|
|
35
|
+
"@contentstack/cli-cm-seed": "~1.7.5",
|
|
36
36
|
"@contentstack/cli-command": "~1.2.18",
|
|
37
37
|
"@contentstack/cli-config": "~1.6.4",
|
|
38
38
|
"@contentstack/cli-launch": "~1.0.18",
|
|
39
|
-
"@contentstack/cli-migration": "~1.5.
|
|
40
|
-
"@contentstack/cli-utilities": "~1.6.
|
|
39
|
+
"@contentstack/cli-migration": "~1.5.6",
|
|
40
|
+
"@contentstack/cli-utilities": "~1.6.2",
|
|
41
41
|
"@contentstack/management": "~1.15.3",
|
|
42
42
|
"@oclif/core": "^3.26.5",
|
|
43
43
|
"@oclif/plugin-help": "^5",
|
|
@@ -160,4 +160,4 @@
|
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
162
|
"repository": "https://github.com/contentstack/cli"
|
|
163
|
-
}
|
|
163
|
+
}
|