@contentstack/cli 1.18.2 → 1.19.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 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.18.2 linux-x64 node-v18.20.3
21
+ @contentstack/cli/1.19.1 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 content-types|global-fields|entries|extensions|workflows]
126
- [--columns <value> | ] [--sort <value>] [--filter <value>] [--csv | --no-truncate]
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 content-types|global-fields|entries|extensions|workflows]
166
- [--copy-path <value> --copy-dir] [--fix-only
167
- reference|global_field|json:rte|json:extension|blocks|group|content_types] [--columns <value> | ] [--sort <value>]
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 content-types|global-fields|entries|extensions|workflows]
2378
- [--columns <value> | ] [--sort <value>] [--filter <value>] [--csv | --no-truncate]
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 content-types|global-fields|entries|extensions|workflows]
2420
- [--copy-path <value> --copy-dir] [--fix-only
2421
- reference|global_field|json:rte|json:extension|blocks|group|content_types] [--columns <value> | ] [--sort <value>]
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 [-a <value>] [-e <value>] [-c <value>] [-y] [--locale <value>] [--branch <value>]
2843
- [--retry-failed <value>] [--bulk-unpublish <value>] [--content-type <value>] [--delivery-token <value>]
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.1.2/src/commands/plugins/index.ts)_
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 bundled npm executable to install plugins into /home/runner/.local/share/@contentstack/cli
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.1.2/src/commands/plugins/inspect.ts)_
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 bundled npm executable to install plugins into /home/runner/.local/share/@contentstack/cli
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.1.2/src/commands/plugins/install.ts)_
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.1.2/src/commands/plugins/link.ts)_
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.1.2/src/commands/plugins/reset.ts)_
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.1.2/src/commands/plugins/uninstall.ts)_
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.1.2/src/commands/plugins/update.ts)_
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
- const oclif = await import('@oclif/core');
5
- await oclif.execute({ development: false, dir: __dirname });
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
  })();
@@ -1,4 +1,4 @@
1
1
  {
2
- "version": "1.18.2",
2
+ "version": "1.19.1",
3
3
  "commands": {}
4
4
  }
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.18.2",
4
+ "version": "1.19.1",
5
5
  "author": "Contentstack",
6
6
  "bin": {
7
7
  "csdx": "./bin/run.js"
@@ -25,12 +25,12 @@
25
25
  "@contentstack/cli-audit": "~1.6.2",
26
26
  "@contentstack/cli-auth": "~1.3.18",
27
27
  "@contentstack/cli-cm-bootstrap": "~1.9.3",
28
- "@contentstack/cli-cm-branches": "~1.0.26",
28
+ "@contentstack/cli-cm-branches": "~1.1.0",
29
29
  "@contentstack/cli-cm-bulk-publish": "~1.4.7",
30
30
  "@contentstack/cli-cm-export": "~1.11.4",
31
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.6",
33
+ "@contentstack/cli-cm-import": "~1.15.8",
34
34
  "@contentstack/cli-cm-migrate-rte": "~1.4.17",
35
35
  "@contentstack/cli-cm-seed": "~1.7.5",
36
36
  "@contentstack/cli-command": "~1.2.18",
@@ -160,4 +160,4 @@
160
160
  }
161
161
  },
162
162
  "repository": "https://github.com/contentstack/cli"
163
- }
163
+ }