@contentstack/cli 1.36.0 → 1.38.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 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.36.0 linux-x64 node-v22.14.0
21
+ @contentstack/cli/1.38.0 linux-x64 node-v22.14.0
22
22
  $ csdx --help [COMMAND]
23
23
  USAGE
24
24
  $ csdx COMMAND
@@ -119,7 +119,6 @@ USAGE
119
119
  * [`csdx plugins:unlink [PLUGIN]`](#csdx-pluginsunlink-plugin)
120
120
  * [`csdx plugins:update`](#csdx-pluginsupdate)
121
121
  * [`csdx tokens`](#csdx-tokens)
122
- * [`csdx tsgen`](#csdx-tsgen)
123
122
  * [`csdx whoami`](#csdx-whoami)
124
123
 
125
124
  ## `csdx audit`
@@ -3650,10 +3649,12 @@ EXAMPLES
3650
3649
 
3651
3650
  $ csdx launch --data-dir <path/of/current/working/dir> --redeploy-latest
3652
3651
 
3653
- $ csdx launch --data-dir <path/of/current/working/dir> --redeploy-latest --redeploy-last-upload
3652
+ $ csdx launch --data-dir <path/of/current/working/dir> --redeploy-last-upload
3654
3653
 
3655
3654
  $ csdx launch --config <path/to/launch/config/file> --type <options: GitHub|FileUpload>
3656
3655
 
3656
+ $ csdx launch --environment=<value> --redeploy-latest
3657
+
3657
3658
  $ csdx launch --config <path/to/launch/config/file> --type <options: GitHub|FileUpload> --name=<value> --environment=<value> --branch=<value> --build-command=<value> --framework=<option> --org=<value> --out-dir=<value>
3658
3659
 
3659
3660
  $ csdx launch --config <path/to/launch/config/file> --type <options: GitHub|FileUpload> --name=<value> --environment=<value> --branch=<value> --build-command=<value> --framework=<option> --org=<value> --out-dir=<value> --server-command=<value>
@@ -3726,10 +3727,11 @@ Serve cloud functions
3726
3727
 
3727
3728
  ```
3728
3729
  USAGE
3729
- $ csdx launch:functions [-p <value>]
3730
+ $ csdx launch:functions [-p <value>] [-d <value>]
3730
3731
 
3731
3732
  FLAGS
3732
- -p, --port=<value> [default: 3000] Port number
3733
+ -d, --data-dir=<value> Current working directory
3734
+ -p, --port=<value> [default: 3000] Port number
3733
3735
 
3734
3736
  DESCRIPTION
3735
3737
  Serve cloud functions
@@ -3741,11 +3743,7 @@ EXAMPLES
3741
3743
 
3742
3744
  $ csdx launch:functions --data-dir <path/of/current/working/dir>
3743
3745
 
3744
- $ csdx launch:functions --config <path/to/launch/config/file>
3745
-
3746
3746
  $ csdx launch:functions --data-dir <path/of/current/working/dir> -p "port number"
3747
-
3748
- $ csdx launch:functions --config <path/to/launch/config/file> --port=port
3749
3747
  ```
3750
3748
 
3751
3749
  _See code: [@contentstack/cli-launch](https://github.com/contentstack/launch-cli/blob/main/packages/contentstack-launch/src/commands/launch/functions.ts)_
@@ -3903,7 +3901,7 @@ EXAMPLES
3903
3901
  $ csdx plugins
3904
3902
  ```
3905
3903
 
3906
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/index.ts)_
3904
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.36/src/commands/plugins/index.ts)_
3907
3905
 
3908
3906
  ## `csdx plugins:add PLUGIN`
3909
3907
 
@@ -3977,7 +3975,7 @@ EXAMPLES
3977
3975
  $ csdx plugins:inspect myplugin
3978
3976
  ```
3979
3977
 
3980
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/inspect.ts)_
3978
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.36/src/commands/plugins/inspect.ts)_
3981
3979
 
3982
3980
  ## `csdx plugins:install PLUGIN`
3983
3981
 
@@ -4026,7 +4024,7 @@ EXAMPLES
4026
4024
  $ csdx plugins:install someuser/someplugin
4027
4025
  ```
4028
4026
 
4029
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/install.ts)_
4027
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.36/src/commands/plugins/install.ts)_
4030
4028
 
4031
4029
  ## `csdx plugins:link PATH`
4032
4030
 
@@ -4057,7 +4055,7 @@ EXAMPLES
4057
4055
  $ csdx plugins:link myplugin
4058
4056
  ```
4059
4057
 
4060
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/link.ts)_
4058
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.36/src/commands/plugins/link.ts)_
4061
4059
 
4062
4060
  ## `csdx plugins:remove [PLUGIN]`
4063
4061
 
@@ -4098,7 +4096,7 @@ FLAGS
4098
4096
  --reinstall Reinstall all plugins after uninstalling.
4099
4097
  ```
4100
4098
 
4101
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/reset.ts)_
4099
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.36/src/commands/plugins/reset.ts)_
4102
4100
 
4103
4101
  ## `csdx plugins:uninstall [PLUGIN]`
4104
4102
 
@@ -4126,7 +4124,7 @@ EXAMPLES
4126
4124
  $ csdx plugins:uninstall myplugin
4127
4125
  ```
4128
4126
 
4129
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/uninstall.ts)_
4127
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.36/src/commands/plugins/uninstall.ts)_
4130
4128
 
4131
4129
  ## `csdx plugins:unlink [PLUGIN]`
4132
4130
 
@@ -4170,7 +4168,7 @@ DESCRIPTION
4170
4168
  Update installed plugins.
4171
4169
  ```
4172
4170
 
4173
- _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.34/src/commands/plugins/update.ts)_
4171
+ _See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/v5.4.36/src/commands/plugins/update.ts)_
4174
4172
 
4175
4173
  ## `csdx tokens`
4176
4174
 
@@ -4202,44 +4200,6 @@ EXAMPLES
4202
4200
  $ csdx auth:tokens
4203
4201
  ```
4204
4202
 
4205
- ## `csdx tsgen`
4206
-
4207
- Generate TypeScript typings from a Stack
4208
-
4209
- ```
4210
- USAGE
4211
- $ csdx tsgen -a <value> -o <value> [-p <value>] [-d] [--branch <value>] [--include-system-fields]
4212
- [--api-type rest|graphql] [--namespace <value>]
4213
-
4214
- FLAGS
4215
- -a, --token-alias=<value> (required) delivery token alias
4216
- -d, --[no-]doc include documentation comments
4217
- -o, --output=<value> (required) full path to output
4218
- -p, --prefix=<value> interface prefix, e.g. "I"
4219
- --api-type=<option> [default: rest] [Optional] Please enter an API type to generate the type definitions.
4220
- <options: rest|graphql>
4221
- --branch=<value> branch
4222
- --include-system-fields include system fields in generated types
4223
- --namespace=<value> [Optional]Please enter a namespace for the GraphQL API type to organize the generated
4224
- types.
4225
-
4226
- DESCRIPTION
4227
- Generate TypeScript typings from a Stack
4228
-
4229
- EXAMPLES
4230
- $ csdx tsgen -a "delivery token alias" -o "contentstack/generated.d.ts"
4231
-
4232
- $ csdx tsgen -a "delivery token alias" -o "contentstack/generated.d.ts" -p "I"
4233
-
4234
- $ csdx tsgen -a "delivery token alias" -o "contentstack/generated.d.ts" --no-doc
4235
-
4236
- $ csdx tsgen -a "delivery token alias" -o "contentstack/generated.d.ts" --api-type graphql
4237
-
4238
- $ csdx tsgen -a "delivery token alias" -o "contentstack/generated.d.ts" --api-type graphql --namespace "GraphQL"
4239
- ```
4240
-
4241
- _See code: [contentstack-cli-tsgen](https://github.com/Contentstack-Solutions/contentstack-cli-tsgen/blob/v3.3.0/src/commands/tsgen.ts)_
4242
-
4243
4203
  ## `csdx whoami`
4244
4204
 
4245
4205
  Display current users email address
@@ -1,4 +1,4 @@
1
1
  {
2
- "version": "1.36.0",
2
+ "version": "1.38.0",
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.36.0",
4
+ "version": "1.38.0",
5
5
  "author": "Contentstack",
6
6
  "bin": {
7
7
  "csdx": "./bin/run.js"
@@ -22,31 +22,30 @@
22
22
  "prepack": "pnpm compile && oclif manifest && oclif readme"
23
23
  },
24
24
  "dependencies": {
25
- "@contentstack/cli-audit": "~1.8.0",
26
- "@contentstack/cli-auth": "~1.3.24",
27
- "@contentstack/cli-cm-bootstrap": "~1.13.2",
28
- "@contentstack/cli-cm-branches": "~1.3.0",
29
- "@contentstack/cli-cm-bulk-publish": "~1.7.3",
30
- "@contentstack/cli-cm-clone": "~1.13.2",
31
- "@contentstack/cli-cm-export": "~1.15.0",
32
- "@contentstack/cli-cm-export-to-csv": "~1.7.3",
33
- "@contentstack/cli-cm-import": "~1.20.0",
34
- "@contentstack/cli-cm-import-setup": "1.1.0",
35
- "@contentstack/cli-cm-migrate-rte": "~1.4.21",
36
- "@contentstack/cli-cm-seed": "~1.10.2",
25
+ "@contentstack/cli-audit": "~1.10.0",
26
+ "@contentstack/cli-auth": "~1.3.25",
27
+ "@contentstack/cli-cm-bootstrap": "~1.13.3",
28
+ "@contentstack/cli-cm-branches": "~1.3.1",
29
+ "@contentstack/cli-cm-bulk-publish": "~1.7.4",
30
+ "@contentstack/cli-cm-clone": "~1.13.3",
31
+ "@contentstack/cli-cm-export": "~1.15.2",
32
+ "@contentstack/cli-cm-export-to-csv": "~1.7.4",
33
+ "@contentstack/cli-cm-import": "~1.20.2",
34
+ "@contentstack/cli-cm-import-setup": "~1.1.2",
35
+ "@contentstack/cli-cm-migrate-rte": "~1.4.22",
36
+ "@contentstack/cli-cm-seed": "~1.10.3",
37
37
  "@contentstack/cli-command": "~1.3.3",
38
- "@contentstack/cli-config": "~1.10.0",
38
+ "@contentstack/cli-config": "~1.10.1",
39
39
  "@contentstack/cli-launch": "^1.6.0",
40
- "@contentstack/cli-migration": "~1.6.5",
41
- "@contentstack/cli-utilities": "~1.8.4",
42
- "@contentstack/cli-variants": "~1.1.5",
40
+ "@contentstack/cli-migration": "~1.6.6",
41
+ "@contentstack/cli-utilities": "~1.9.0",
42
+ "@contentstack/cli-variants": "~1.1.6",
43
43
  "@contentstack/management": "~1.18.4",
44
44
  "@oclif/core": "^3.27.0",
45
45
  "@oclif/plugin-help": "^5.2.20",
46
46
  "@oclif/plugin-not-found": "^2.4.3",
47
- "@oclif/plugin-plugins": "^5.4.24",
47
+ "@oclif/plugin-plugins": "^5.4.36",
48
48
  "chalk": "^4.1.2",
49
- "contentstack-cli-tsgen": "^3.0.1",
50
49
  "debug": "^4.4.0",
51
50
  "figlet": "^1.8.0",
52
51
  "inquirer": "8.2.6",
@@ -75,9 +74,9 @@
75
74
  "nock": "^13.5.6",
76
75
  "nyc": "^15.1.0",
77
76
  "oclif": "^3.17.2",
78
- "rimraf": "^2.7.1",
79
- "shelljs": "^0.8.5",
80
- "sinon": "^19.0.2",
77
+ "rimraf": "^5.0.10",
78
+ "shelljs": "^0.9.2",
79
+ "sinon": "^19.0.5",
81
80
  "tmp": "^0.2.3",
82
81
  "ts-node": "^10.9.2",
83
82
  "tslib": "^2.8.1",
@@ -153,8 +152,7 @@
153
152
  "@contentstack/cli-cm-branches",
154
153
  "@contentstack/cli-launch",
155
154
  "@contentstack/cli-audit",
156
- "@contentstack/cli-cm-import-setup",
157
- "contentstack-cli-tsgen"
155
+ "@contentstack/cli-cm-import-setup"
158
156
  ],
159
157
  "hooks": {
160
158
  "prerun": [