Skip to content

Commit 155a883

Browse files
authored
Merge pull request #2304 from contentstack/dx-3690_deprecation_cleanup
CLI deprecation cleanup
2 parents 1b36e63 + 0a89f40 commit 155a883

150 files changed

Lines changed: 8636 additions & 16364 deletions

File tree

Some content is hidden

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

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,8 @@ contents-*
2020
*.http
2121
*.todo
2222
talisman_output.log
23-
snyk_output.log
23+
snyk_output.log
24+
# Snyk Security Extension - AI Rules (auto-generated)
25+
.cursor/rules/snyk_rules.mdc
26+
**/migration-logs
27+
**/migration-logs/**

.talismanrc

Lines changed: 3 additions & 209 deletions
Large diffs are not rendered by default.

package-lock.json

Lines changed: 460 additions & 223 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"clean": "pnpm --filter './packages/*' -w clean",
1515
"bootstrap": "pnpm install --no-frozen-lockfile",
1616
"prepack": "pnpm --filter \"./packages/*\" -w prepack",
17+
"test": "pnpm --filter './packages/*' -w test:unit",
1718
"package-lock-only": "npm i --package-lock-only --workspaces",
1819
"setup-repo-old": "npm i && pnpm package-lock-only && pnpm clean && pnpm install --no-frozen-lockfile && pnpm prepack",
1920
"clean-repo": "rm -rf ./package-lock.json ./node_modules ./packages/**/node_modules ./packages/**/.nyc_output ./packages/**/package-lock.json",

packages/contentstack-audit/README.md

Lines changed: 1 addition & 301 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/2.0.0-beta.0 darwin-arm64 node-v22.14.0
22+
@contentstack/cli-audit/2.0.0-beta.1 darwin-arm64 node-v24.12.0
2323
$ csdx --help [COMMAND]
2424
USAGE
2525
$ csdx COMMAND
@@ -35,16 +35,6 @@ USAGE
3535
* [`csdx cm:stacks:audit`](#csdx-cmstacksaudit)
3636
* [`csdx cm:stacks:audit:fix`](#csdx-cmstacksauditfix)
3737
* [`csdx help [COMMAND]`](#csdx-help-command)
38-
* [`csdx plugins`](#csdx-plugins)
39-
* [`csdx plugins:add PLUGIN`](#csdx-pluginsadd-plugin)
40-
* [`csdx plugins:inspect PLUGIN...`](#csdx-pluginsinspect-plugin)
41-
* [`csdx plugins:install PLUGIN`](#csdx-pluginsinstall-plugin)
42-
* [`csdx plugins:link PATH`](#csdx-pluginslink-path)
43-
* [`csdx plugins:remove [PLUGIN]`](#csdx-pluginsremove-plugin)
44-
* [`csdx plugins:reset`](#csdx-pluginsreset)
45-
* [`csdx plugins:uninstall [PLUGIN]`](#csdx-pluginsuninstall-plugin)
46-
* [`csdx plugins:unlink [PLUGIN]`](#csdx-pluginsunlink-plugin)
47-
* [`csdx plugins:update`](#csdx-pluginsupdate)
4838

4939
## `csdx audit`
5040

@@ -283,294 +273,4 @@ DESCRIPTION
283273
```
284274

285275
_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v6.2.36/src/commands/help.ts)_
286-
287-
## `csdx plugins`
288-
289-
List installed plugins.
290-
291-
```
292-
USAGE
293-
$ csdx plugins [--json] [--core]
294-
295-
FLAGS
296-
--core Show core plugins.
297-
298-
GLOBAL FLAGS
299-
--json Format output as json.
300-
301-
DESCRIPTION
302-
List installed plugins.
303-
304-
EXAMPLES
305-
$ csdx plugins
306-
```
307-
308-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/index.ts)_
309-
310-
## `csdx plugins:add PLUGIN`
311-
312-
Installs a plugin into csdx.
313-
314-
```
315-
USAGE
316-
$ csdx plugins:add PLUGIN... [--json] [-f] [-h] [-s | -v]
317-
318-
ARGUMENTS
319-
PLUGIN... Plugin to install.
320-
321-
FLAGS
322-
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
323-
-h, --help Show CLI help.
324-
-s, --silent Silences npm output.
325-
-v, --verbose Show verbose npm output.
326-
327-
GLOBAL FLAGS
328-
--json Format output as json.
329-
330-
DESCRIPTION
331-
Installs a plugin into csdx.
332-
333-
Uses npm to install plugins.
334-
335-
Installation of a user-installed plugin will override a core plugin.
336-
337-
Use the CSDX_NPM_LOG_LEVEL environment variable to set the npm loglevel.
338-
Use the CSDX_NPM_REGISTRY environment variable to set the npm registry.
339-
340-
ALIASES
341-
$ csdx plugins:add
342-
343-
EXAMPLES
344-
Install a plugin from npm registry.
345-
346-
$ csdx plugins:add myplugin
347-
348-
Install a plugin from a github url.
349-
350-
$ csdx plugins:add https://github.com/someuser/someplugin
351-
352-
Install a plugin from a github slug.
353-
354-
$ csdx plugins:add someuser/someplugin
355-
```
356-
357-
## `csdx plugins:inspect PLUGIN...`
358-
359-
Displays installation properties of a plugin.
360-
361-
```
362-
USAGE
363-
$ csdx plugins:inspect PLUGIN...
364-
365-
ARGUMENTS
366-
PLUGIN... [default: .] Plugin to inspect.
367-
368-
FLAGS
369-
-h, --help Show CLI help.
370-
-v, --verbose
371-
372-
GLOBAL FLAGS
373-
--json Format output as json.
374-
375-
DESCRIPTION
376-
Displays installation properties of a plugin.
377-
378-
EXAMPLES
379-
$ csdx plugins:inspect myplugin
380-
```
381-
382-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/inspect.ts)_
383-
384-
## `csdx plugins:install PLUGIN`
385-
386-
Installs a plugin into csdx.
387-
388-
```
389-
USAGE
390-
$ csdx plugins:install PLUGIN... [--json] [-f] [-h] [-s | -v]
391-
392-
ARGUMENTS
393-
PLUGIN... Plugin to install.
394-
395-
FLAGS
396-
-f, --force Force npm to fetch remote resources even if a local copy exists on disk.
397-
-h, --help Show CLI help.
398-
-s, --silent Silences npm output.
399-
-v, --verbose Show verbose npm output.
400-
401-
GLOBAL FLAGS
402-
--json Format output as json.
403-
404-
DESCRIPTION
405-
Installs a plugin into csdx.
406-
407-
Uses npm to install plugins.
408-
409-
Installation of a user-installed plugin will override a core plugin.
410-
411-
Use the CSDX_NPM_LOG_LEVEL environment variable to set the npm loglevel.
412-
Use the CSDX_NPM_REGISTRY environment variable to set the npm registry.
413-
414-
ALIASES
415-
$ csdx plugins:add
416-
417-
EXAMPLES
418-
Install a plugin from npm registry.
419-
420-
$ csdx plugins:install myplugin
421-
422-
Install a plugin from a github url.
423-
424-
$ csdx plugins:install https://github.com/someuser/someplugin
425-
426-
Install a plugin from a github slug.
427-
428-
$ csdx plugins:install someuser/someplugin
429-
```
430-
431-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/install.ts)_
432-
433-
## `csdx plugins:link PATH`
434-
435-
Links a plugin into the CLI for development.
436-
437-
```
438-
USAGE
439-
$ csdx plugins:link PATH [-h] [--install] [-v]
440-
441-
ARGUMENTS
442-
PATH [default: .] path to plugin
443-
444-
FLAGS
445-
-h, --help Show CLI help.
446-
-v, --verbose
447-
--[no-]install Install dependencies after linking the plugin.
448-
449-
DESCRIPTION
450-
Links a plugin into the CLI for development.
451-
452-
Installation of a linked plugin will override a user-installed or core plugin.
453-
454-
e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
455-
command will override the user-installed or core plugin implementation. This is useful for development work.
456-
457-
458-
EXAMPLES
459-
$ csdx plugins:link myplugin
460-
```
461-
462-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/link.ts)_
463-
464-
## `csdx plugins:remove [PLUGIN]`
465-
466-
Removes a plugin from the CLI.
467-
468-
```
469-
USAGE
470-
$ csdx plugins:remove [PLUGIN...] [-h] [-v]
471-
472-
ARGUMENTS
473-
[PLUGIN...] plugin to uninstall
474-
475-
FLAGS
476-
-h, --help Show CLI help.
477-
-v, --verbose
478-
479-
DESCRIPTION
480-
Removes a plugin from the CLI.
481-
482-
ALIASES
483-
$ csdx plugins:unlink
484-
$ csdx plugins:remove
485-
486-
EXAMPLES
487-
$ csdx plugins:remove myplugin
488-
```
489-
490-
## `csdx plugins:reset`
491-
492-
Remove all user-installed and linked plugins.
493-
494-
```
495-
USAGE
496-
$ csdx plugins:reset [--hard] [--reinstall]
497-
498-
FLAGS
499-
--hard Delete node_modules and package manager related files in addition to uninstalling plugins.
500-
--reinstall Reinstall all plugins after uninstalling.
501-
```
502-
503-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/reset.ts)_
504-
505-
## `csdx plugins:uninstall [PLUGIN]`
506-
507-
Removes a plugin from the CLI.
508-
509-
```
510-
USAGE
511-
$ csdx plugins:uninstall [PLUGIN...] [-h] [-v]
512-
513-
ARGUMENTS
514-
[PLUGIN...] plugin to uninstall
515-
516-
FLAGS
517-
-h, --help Show CLI help.
518-
-v, --verbose
519-
520-
DESCRIPTION
521-
Removes a plugin from the CLI.
522-
523-
ALIASES
524-
$ csdx plugins:unlink
525-
$ csdx plugins:remove
526-
527-
EXAMPLES
528-
$ csdx plugins:uninstall myplugin
529-
```
530-
531-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/uninstall.ts)_
532-
533-
## `csdx plugins:unlink [PLUGIN]`
534-
535-
Removes a plugin from the CLI.
536-
537-
```
538-
USAGE
539-
$ csdx plugins:unlink [PLUGIN...] [-h] [-v]
540-
541-
ARGUMENTS
542-
[PLUGIN...] plugin to uninstall
543-
544-
FLAGS
545-
-h, --help Show CLI help.
546-
-v, --verbose
547-
548-
DESCRIPTION
549-
Removes a plugin from the CLI.
550-
551-
ALIASES
552-
$ csdx plugins:unlink
553-
$ csdx plugins:remove
554-
555-
EXAMPLES
556-
$ csdx plugins:unlink myplugin
557-
```
558-
559-
## `csdx plugins:update`
560-
561-
Update installed plugins.
562-
563-
```
564-
USAGE
565-
$ csdx plugins:update [-h] [-v]
566-
567-
FLAGS
568-
-h, --help Show CLI help.
569-
-v, --verbose
570-
571-
DESCRIPTION
572-
Update installed plugins.
573-
```
574-
575-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.54/src/commands/plugins/update.ts)_
576276
<!-- commandsstop -->

packages/contentstack-audit/package.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@contentstack/cli-audit",
3-
"version": "2.0.0-beta",
3+
"version": "2.0.0-beta.1",
44
"description": "Contentstack audit plugin",
55
"author": "Contentstack CLI",
66
"homepage": "https://github.com/contentstack/cli",
@@ -22,7 +22,6 @@
2222
"@contentstack/cli-utilities": "~1.15.0",
2323
"@oclif/core": "^4.3.0",
2424
"@oclif/plugin-help": "^6.2.28",
25-
"@oclif/plugin-plugins": "^5.4.38",
2625
"chalk": "^4.1.2",
2726
"fast-csv": "^4.3.6",
2827
"fs-extra": "^11.3.0",
@@ -53,8 +52,7 @@
5352
"bin": "csdx",
5453
"commands": "./lib/commands",
5554
"plugins": [
56-
"@oclif/plugin-help",
57-
"@oclif/plugin-plugins"
55+
"@oclif/plugin-help"
5856
],
5957
"topicSeparator": ":",
6058
"additionalHelpFlags": [

packages/contentstack-auth/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-auth
1818
$ csdx COMMAND
1919
running command...
2020
$ csdx (--version)
21-
@contentstack/cli-auth/1.6.2 darwin-arm64 node-v22.14.0
21+
@contentstack/cli-auth/2.0.0-beta.1 darwin-arm64 node-v24.12.0
2222
$ csdx --help [COMMAND]
2323
USAGE
2424
$ csdx COMMAND
@@ -141,12 +141,12 @@ USAGE
141141
142142
FLAGS
143143
-a, --alias=<value> Alias (name) you want to assign to the token
144-
-d, --delivery Set this flag to save delivery token
145144
-e, --environment=<value> Environment name for delivery token
146145
-k, --stack-api-key=<value> Stack API Key
147-
-m, --management Set this flag to save management token
148-
-t, --token=<value> [env: TOKEN] Add the token name
149146
-y, --yes Use this flag to skip confirmation
147+
--delivery Set this flag to save delivery token
148+
--management Set this flag to save management token
149+
--token=<value> [env: TOKEN] Add the token name
150150
151151
DESCRIPTION
152152
Adds management/delivery tokens to your session to use it with other CLI commands

0 commit comments

Comments
 (0)