Skip to content

Commit c616ffd

Browse files
authored
Merge pull request #1784 from contentstack/feature/oclif-v4-migration
Feature/oclif v4 migration
2 parents eacd253 + a2d1f1c commit c616ffd

File tree

61 files changed

+23326
-24699
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+23326
-24699
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,6 @@ jobs:
186186
token: ${{ secrets.NPM_TOKEN }}
187187
package: ./packages/contentstack-import-setup/package.json
188188
access: public
189-
tag: beta
190189
- name: Installing dependencies of export to csv
191190
id: export-to-csv-installation
192191
if: ${{env.release_releaseAll == 'true' || env.release_plugins_export-to-csv == 'true'}}

package-lock.json

Lines changed: 17619 additions & 19556 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: 48 additions & 64 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.5 darwin-arm64 node-v22.14.0
22+
@contentstack/cli-audit/1.7.5 darwin-arm64 node-v22.13.1
2323
$ csdx --help [COMMAND]
2424
USAGE
2525
$ csdx COMMAND
@@ -34,7 +34,7 @@ USAGE
3434
* [`csdx audit:fix`](#csdx-auditfix)
3535
* [`csdx cm:stacks:audit`](#csdx-cmstacksaudit)
3636
* [`csdx cm:stacks:audit:fix`](#csdx-cmstacksauditfix)
37-
* [`csdx help [COMMANDS]`](#csdx-help-commands)
37+
* [`csdx help [COMMAND]`](#csdx-help-command)
3838
* [`csdx plugins`](#csdx-plugins)
3939
* [`csdx plugins:add PLUGIN`](#csdx-pluginsadd-plugin)
4040
* [`csdx plugins:inspect PLUGIN...`](#csdx-pluginsinspect-plugin)
@@ -52,21 +52,17 @@ Perform audits and find possible errors in the exported Contentstack data
5252

5353
```
5454
USAGE
55-
$ csdx audit [--report-path <value>] [--modules
56-
content-types|global-fields|entries|extensions|workflows|custom-roles] [--columns <value> | ] [--sort <value>]
57-
[--filter <value>] [--csv | --no-truncate]
55+
$ csdx audit [-c <value>] [-d <value>] [--report-path <value>] [--modules
56+
content-types|global-fields|entries|extensions|workflows|custom-roles...]
5857
5958
FLAGS
6059
--modules=<option>... Provide the list of modules to be audited
6160
<options: content-types|global-fields|entries|extensions|workflows|custom-roles>
6261
--report-path=<value> Path to store the audit reports
6362
64-
TABLE FLAGS
65-
--columns=<value> Show only the specified columns (comma-separated)
66-
--csv The output is in the CSV format [alias: --output=csv]
67-
--filter=<value> Filter property by partial string matching. For example: name=foo
68-
--no-truncate The output is not truncated to fit the screen
69-
--sort=<value> Property to sort by (prepend '-' for descending)
63+
COMMON FLAGS
64+
-c, --config=<value> Path of the external config
65+
-d, --data-dir=<value> Path where the data is stored
7066
7167
DESCRIPTION
7268
Perform audits and find possible errors in the exported Contentstack data
@@ -93,10 +89,9 @@ Perform audits and fix possible errors in the exported Contentstack data.
9389

9490
```
9591
USAGE
96-
$ csdx audit:fix [--report-path <value>] [--modules
97-
content-types|global-fields|entries|extensions|workflows|custom-roles] [--copy-path <value> --copy-dir] [--fix-only
98-
reference|global_field|json:rte|json:extension|blocks|group|content_types] [--columns <value> | ] [--sort <value>]
99-
[--filter <value>] [--csv | --no-truncate]
92+
$ csdx audit:fix [-c <value>] [-d <value>] [--report-path <value>] [--modules
93+
content-types|global-fields|entries|extensions|workflows|custom-roles...] [--copy-path <value> --copy-dir]
94+
[--fix-only reference|global_field|json:rte|json:extension|blocks|group|content_types...]
10095
10196
FLAGS
10297
--copy-dir Create backup from the original data.
@@ -107,12 +102,9 @@ FLAGS
107102
<options: content-types|global-fields|entries|extensions|workflows|custom-roles>
108103
--report-path=<value> Path to store the audit reports
109104
110-
TABLE FLAGS
111-
--columns=<value> Show only the specified columns (comma-separated)
112-
--csv The output is in the CSV format [alias: --output=csv]
113-
--filter=<value> Filter property by partial string matching. For example: name=foo
114-
--no-truncate The output is not truncated to fit the screen
115-
--sort=<value> Property to sort by (prepend '-' for descending)
105+
COMMON FLAGS
106+
-c, --config=<value> Path of the external config
107+
-d, --data-dir=<value> Path where the data is stored
116108
117109
DESCRIPTION
118110
Perform audits and fix possible errors in the exported Contentstack data.
@@ -141,21 +133,17 @@ Perform audits and find possible errors in the exported Contentstack data
141133

142134
```
143135
USAGE
144-
$ csdx cm:stacks:audit [--report-path <value>] [--modules
145-
content-types|global-fields|entries|extensions|workflows|custom-roles] [--columns <value> | ] [--sort <value>]
146-
[--filter <value>] [--csv | --no-truncate]
136+
$ csdx cm:stacks:audit [-c <value>] [-d <value>] [--report-path <value>] [--modules
137+
content-types|global-fields|entries|extensions|workflows|custom-roles...]
147138
148139
FLAGS
149140
--modules=<option>... Provide the list of modules to be audited
150141
<options: content-types|global-fields|entries|extensions|workflows|custom-roles>
151142
--report-path=<value> Path to store the audit reports
152143
153-
TABLE FLAGS
154-
--columns=<value> Show only the specified columns (comma-separated)
155-
--csv The output is in the CSV format [alias: --output=csv]
156-
--filter=<value> Filter property by partial string matching. For example: name=foo
157-
--no-truncate The output is not truncated to fit the screen
158-
--sort=<value> Property to sort by (prepend '-' for descending)
144+
COMMON FLAGS
145+
-c, --config=<value> Path of the external config
146+
-d, --data-dir=<value> Path where the data is stored
159147
160148
DESCRIPTION
161149
Perform audits and find possible errors in the exported Contentstack data
@@ -184,10 +172,9 @@ Perform audits and fix possible errors in the exported Contentstack data.
184172

185173
```
186174
USAGE
187-
$ csdx cm:stacks:audit:fix [--report-path <value>] [--modules
188-
content-types|global-fields|entries|extensions|workflows|custom-roles] [--copy-path <value> --copy-dir] [--fix-only
189-
reference|global_field|json:rte|json:extension|blocks|group|content_types] [--columns <value> | ] [--sort <value>]
190-
[--filter <value>] [--csv | --no-truncate]
175+
$ csdx cm:stacks:audit:fix [-c <value>] [-d <value>] [--report-path <value>] [--modules
176+
content-types|global-fields|entries|extensions|workflows|custom-roles...] [--copy-path <value> --copy-dir]
177+
[--fix-only reference|global_field|json:rte|json:extension|blocks|group|content_types...]
191178
192179
FLAGS
193180
--copy-dir Create backup from the original data.
@@ -198,12 +185,9 @@ FLAGS
198185
<options: content-types|global-fields|entries|extensions|workflows|custom-roles>
199186
--report-path=<value> Path to store the audit reports
200187
201-
TABLE FLAGS
202-
--columns=<value> Show only the specified columns (comma-separated)
203-
--csv The output is in the CSV format [alias: --output=csv]
204-
--filter=<value> Filter property by partial string matching. For example: name=foo
205-
--no-truncate The output is not truncated to fit the screen
206-
--sort=<value> Property to sort by (prepend '-' for descending)
188+
COMMON FLAGS
189+
-c, --config=<value> Path of the external config
190+
-d, --data-dir=<value> Path where the data is stored
207191
208192
DESCRIPTION
209193
Perform audits and fix possible errors in the exported Contentstack data.
@@ -228,16 +212,16 @@ EXAMPLES
228212

229213
_See code: [src/commands/cm/stacks/audit/fix.ts](https://github.com/contentstack/audit/blob/main/packages/contentstack-audit/src/commands/cm/stacks/audit/fix.ts)_
230214

231-
## `csdx help [COMMANDS]`
215+
## `csdx help [COMMAND]`
232216

233217
Display help for csdx.
234218

235219
```
236220
USAGE
237-
$ csdx help [COMMANDS] [-n]
221+
$ csdx help [COMMAND...] [-n]
238222
239223
ARGUMENTS
240-
COMMANDS Command to show help for.
224+
COMMAND... Command to show help for.
241225
242226
FLAGS
243227
-n, --nested-commands Include all nested commands in the output.
@@ -246,7 +230,7 @@ DESCRIPTION
246230
Display help for csdx.
247231
```
248232

249-
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.2.20/src/commands/help.ts)_
233+
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.26/src/commands/help.ts)_
250234

251235
## `csdx plugins`
252236

@@ -269,18 +253,18 @@ EXAMPLES
269253
$ csdx plugins
270254
```
271255

272-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.33/src/commands/plugins/index.ts)_
256+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/index.ts)_
273257

274258
## `csdx plugins:add PLUGIN`
275259

276260
Installs a plugin into csdx.
277261

278262
```
279263
USAGE
280-
$ csdx plugins:add PLUGIN [--json] [-f] [-h] [-s | -v]
264+
$ csdx plugins:add PLUGIN... [--json] [-f] [-h] [-s | -v]
281265
282266
ARGUMENTS
283-
PLUGIN Plugin to install.
267+
PLUGIN... Plugin to install.
284268
285269
FLAGS
286270
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
@@ -327,7 +311,7 @@ USAGE
327311
$ csdx plugins:inspect PLUGIN...
328312
329313
ARGUMENTS
330-
PLUGIN [default: .] Plugin to inspect.
314+
PLUGIN... [default: .] Plugin to inspect.
331315
332316
FLAGS
333317
-h, --help Show CLI help.
@@ -343,18 +327,18 @@ EXAMPLES
343327
$ csdx plugins:inspect myplugin
344328
```
345329

346-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.33/src/commands/plugins/inspect.ts)_
330+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/inspect.ts)_
347331

348332
## `csdx plugins:install PLUGIN`
349333

350334
Installs a plugin into csdx.
351335

352336
```
353337
USAGE
354-
$ csdx plugins:install PLUGIN [--json] [-f] [-h] [-s | -v]
338+
$ csdx plugins:install PLUGIN... [--json] [-f] [-h] [-s | -v]
355339
356340
ARGUMENTS
357-
PLUGIN Plugin to install.
341+
PLUGIN... Plugin to install.
358342
359343
FLAGS
360344
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
@@ -392,7 +376,7 @@ EXAMPLES
392376
$ csdx plugins:install someuser/someplugin
393377
```
394378

395-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.33/src/commands/plugins/install.ts)_
379+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/install.ts)_
396380

397381
## `csdx plugins:link PATH`
398382

@@ -406,9 +390,9 @@ ARGUMENTS
406390
PATH [default: .] path to plugin
407391
408392
FLAGS
409-
-h, --help Show CLI help.
393+
-h, --help Show CLI help.
410394
-v, --verbose
411-
--[no-]install Install dependencies after linking the plugin.
395+
--[no-]install Install dependencies after linking the plugin.
412396
413397
DESCRIPTION
414398
Links a plugin into the CLI for development.
@@ -423,18 +407,18 @@ EXAMPLES
423407
$ csdx plugins:link myplugin
424408
```
425409

426-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.33/src/commands/plugins/link.ts)_
410+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/link.ts)_
427411

428412
## `csdx plugins:remove [PLUGIN]`
429413

430414
Removes a plugin from the CLI.
431415

432416
```
433417
USAGE
434-
$ csdx plugins:remove [PLUGIN] [-h] [-v]
418+
$ csdx plugins:remove [PLUGIN...] [-h] [-v]
435419
436420
ARGUMENTS
437-
PLUGIN plugin to uninstall
421+
PLUGIN... plugin to uninstall
438422
439423
FLAGS
440424
-h, --help Show CLI help.
@@ -464,18 +448,18 @@ FLAGS
464448
--reinstall Reinstall all plugins after uninstalling.
465449
```
466450

467-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.33/src/commands/plugins/reset.ts)_
451+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/reset.ts)_
468452

469453
## `csdx plugins:uninstall [PLUGIN]`
470454

471455
Removes a plugin from the CLI.
472456

473457
```
474458
USAGE
475-
$ csdx plugins:uninstall [PLUGIN] [-h] [-v]
459+
$ csdx plugins:uninstall [PLUGIN...] [-h] [-v]
476460
477461
ARGUMENTS
478-
PLUGIN plugin to uninstall
462+
PLUGIN... plugin to uninstall
479463
480464
FLAGS
481465
-h, --help Show CLI help.
@@ -492,18 +476,18 @@ EXAMPLES
492476
$ csdx plugins:uninstall myplugin
493477
```
494478

495-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.33/src/commands/plugins/uninstall.ts)_
479+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/uninstall.ts)_
496480

497481
## `csdx plugins:unlink [PLUGIN]`
498482

499483
Removes a plugin from the CLI.
500484

501485
```
502486
USAGE
503-
$ csdx plugins:unlink [PLUGIN] [-h] [-v]
487+
$ csdx plugins:unlink [PLUGIN...] [-h] [-v]
504488
505489
ARGUMENTS
506-
PLUGIN plugin to uninstall
490+
PLUGIN... plugin to uninstall
507491
508492
FLAGS
509493
-h, --help Show CLI help.
@@ -536,5 +520,5 @@ DESCRIPTION
536520
Update installed plugins.
537521
```
538522

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

packages/contentstack-audit/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
],
2020
"dependencies": {
2121
"@contentstack/cli-command": "~1.3.3",
22+
"@oclif/plugin-help": "^6.2.25",
2223
"@contentstack/cli-utilities": "~1.8.2",
23-
"@oclif/plugin-help": "^5.2.20",
2424
"@oclif/plugin-plugins": "^5.4.24",
2525
"chalk": "^4.1.2",
2626
"fast-csv": "^4.3.6",
@@ -38,11 +38,11 @@
3838
"@types/uuid": "^9.0.8",
3939
"chai": "^4.5.0",
4040
"eslint": "^8.57.1",
41-
"eslint-config-oclif": "^4.0.0",
41+
"eslint-config-oclif": "^6.0.15",
4242
"eslint-config-oclif-typescript": "^3.1.13",
4343
"mocha": "^10.8.2",
4444
"nyc": "^15.1.0",
45-
"oclif": "^3.17.2",
45+
"oclif": "^4.17.30",
4646
"shx": "^0.3.4",
4747
"sinon": "^19.0.2",
4848
"ts-node": "^10.9.2",

0 commit comments

Comments
 (0)