@contentstack/cli 2.0.0-beta.15 → 2.0.0-beta.16
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/2.0.0-beta.
|
|
21
|
+
@contentstack/cli/2.0.0-beta.16 linux-x64 node-v22.22.1
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -53,7 +53,7 @@ USAGE
|
|
|
53
53
|
* [`csdx cm:stacks:import [--config <value>] [--stack-api-key <value>] [--data-dir <value>] [--alias <value>] [--module <value>] [--backup-dir <value>] [--branch <value>] [--import-webhook-status disable|current]`](#csdx-cmstacksimport---config-value---stack-api-key-value---data-dir-value---alias-value---module-value---backup-dir-value---branch-value---import-webhook-status-disablecurrent)
|
|
54
54
|
* [`csdx cm:stacks:import-setup [-k <value>] [-d <value>] [-a <value>] [--modules <value,value>]`](#csdx-cmstacksimport-setup--k-value--d-value--a-value---modules-valuevalue)
|
|
55
55
|
* [`csdx cm:stacks:migration [-k <value>] [-a <value>] [--file-path <value>] [--branch <value>] [--config-file <value>] [--config <value>] [--multiple]`](#csdx-cmstacksmigration--k-value--a-value---file-path-value---branch-value---config-file-value---config-value---multiple)
|
|
56
|
-
* [`csdx cm:stacks:seed [--repo <value>] [--org <value>] [--stack-api-key <value>] [--stack-name <value>] [
|
|
56
|
+
* [`csdx cm:stacks:seed [--repo <value>] [--org <value>] [--stack-api-key <value>] [--stack-name <value>] [-y] [--alias <value>] [--locale <value>]`](#csdx-cmstacksseed---repo-value---org-value---stack-api-key-value---stack-name-value--y---alias-value---locale-value)
|
|
57
57
|
* [`csdx config:get:base-branch`](#csdx-configgetbase-branch)
|
|
58
58
|
* [`csdx config:get:ea-header`](#csdx-configgetea-header)
|
|
59
59
|
* [`csdx config:get:early-access-header`](#csdx-configgetearly-access-header)
|
|
@@ -281,14 +281,14 @@ Bootstrap contentstack apps
|
|
|
281
281
|
|
|
282
282
|
```
|
|
283
283
|
USAGE
|
|
284
|
-
$ csdx cm:bootstrap [--app-name <value>] [--project-dir <value>] [-k <value> | --org <value> | -n <value>] [-y
|
|
285
|
-
|
|
284
|
+
$ csdx cm:bootstrap [--app-name <value>] [--project-dir <value>] [-k <value> | --org <value> | -n <value>] [-y]
|
|
285
|
+
[--run-dev-server] [-a <value>]
|
|
286
286
|
|
|
287
287
|
FLAGS
|
|
288
288
|
-a, --alias=<value> Alias of the management token
|
|
289
289
|
-k, --stack-api-key=<value> Provide stack API key to seed content
|
|
290
290
|
-n, --stack-name=<value> Name of the new stack that will be created.
|
|
291
|
-
-y, --yes
|
|
291
|
+
-y, --yes [Optional] Skip stack confirmation
|
|
292
292
|
--app-name=<value> App name, kickstart-next, kickstart-next-ssr, kickstart-next-ssg, kickstart-next-graphql,
|
|
293
293
|
kickstart-next-middleware, kickstart-nuxt, kickstart-nuxt-ssr
|
|
294
294
|
--org=<value> Provide organization UID to create a new stack
|
|
@@ -854,7 +854,7 @@ EXAMPLES
|
|
|
854
854
|
$ csdx cm:stacks:bulk-assets --revert ./bulk-operation -a myAlias
|
|
855
855
|
```
|
|
856
856
|
|
|
857
|
-
_See code: [@contentstack/cli-bulk-operations](https://github.com/contentstack/cli-bulk-operations/blob/v1.0.
|
|
857
|
+
_See code: [@contentstack/cli-bulk-operations](https://github.com/contentstack/cli-bulk-operations/blob/v1.0.1/src/commands/cm/stacks/bulk-assets.ts)_
|
|
858
858
|
|
|
859
859
|
## `csdx cm:stacks:bulk-entries`
|
|
860
860
|
|
|
@@ -940,7 +940,7 @@ EXAMPLES
|
|
|
940
940
|
$ csdx cm:stacks:bulk-entries --revert ./bulk-operation
|
|
941
941
|
```
|
|
942
942
|
|
|
943
|
-
_See code: [@contentstack/cli-bulk-operations](https://github.com/contentstack/cli-bulk-operations/blob/v1.0.
|
|
943
|
+
_See code: [@contentstack/cli-bulk-operations](https://github.com/contentstack/cli-bulk-operations/blob/v1.0.1/src/commands/cm/stacks/bulk-entries.ts)_
|
|
944
944
|
|
|
945
945
|
## `csdx cm:stacks:clone [--source-branch <value>] [--target-branch <value>] [--source-management-token-alias <value>] [--destination-management-token-alias <value>] [-n <value>] [--type a|b] [--source-stack-api-key <value>] [--destination-stack-api-key <value>] [--import-webhook-status disable|current]`
|
|
946
946
|
|
|
@@ -1218,20 +1218,20 @@ EXAMPLES
|
|
|
1218
1218
|
|
|
1219
1219
|
_See code: [@contentstack/cli-migration](https://github.com/contentstack/cli/blob/main/packages/contentstack-migration/src/commands/cm/stacks/migration.ts)_
|
|
1220
1220
|
|
|
1221
|
-
## `csdx cm:stacks:seed [--repo <value>] [--org <value>] [--stack-api-key <value>] [--stack-name <value>] [
|
|
1221
|
+
## `csdx cm:stacks:seed [--repo <value>] [--org <value>] [--stack-api-key <value>] [--stack-name <value>] [-y] [--alias <value>] [--locale <value>]`
|
|
1222
1222
|
|
|
1223
1223
|
Create a stack from existing content types, entries, assets, etc
|
|
1224
1224
|
|
|
1225
1225
|
```
|
|
1226
1226
|
USAGE
|
|
1227
|
-
$ csdx cm:stacks:seed [--repo <value>] [--org <value>] [--stack-api-key <value>] [--stack-name <value>] [
|
|
1228
|
-
|
|
1227
|
+
$ csdx cm:stacks:seed [--repo <value>] [--org <value>] [--stack-api-key <value>] [--stack-name <value>] [-y]
|
|
1228
|
+
[--alias <value>] [--locale <value>]
|
|
1229
1229
|
|
|
1230
1230
|
FLAGS
|
|
1231
1231
|
-a, --alias=<value> Alias of the management token
|
|
1232
1232
|
-k, --stack-api-key=<value> Provide stack API key to seed content to
|
|
1233
1233
|
-n, --stack-name=<value> Name of a new stack that needs to be created.
|
|
1234
|
-
-y, --yes
|
|
1234
|
+
-y, --yes [Optional] Skip the stack confirmation.
|
|
1235
1235
|
--org=<value> Provide Organization UID to create a new stack
|
|
1236
1236
|
--repo=<value> GitHub organization name or GitHub user name/repository name.
|
|
1237
1237
|
|
|
@@ -2054,7 +2054,7 @@ EXAMPLES
|
|
|
2054
2054
|
$ csdx plugins
|
|
2055
2055
|
```
|
|
2056
2056
|
|
|
2057
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/
|
|
2057
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.58/src/commands/plugins/index.ts)_
|
|
2058
2058
|
|
|
2059
2059
|
## `csdx plugins:add PLUGIN`
|
|
2060
2060
|
|
|
@@ -2128,7 +2128,7 @@ EXAMPLES
|
|
|
2128
2128
|
$ csdx plugins:inspect myplugin
|
|
2129
2129
|
```
|
|
2130
2130
|
|
|
2131
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/
|
|
2131
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.58/src/commands/plugins/inspect.ts)_
|
|
2132
2132
|
|
|
2133
2133
|
## `csdx plugins:install PLUGIN`
|
|
2134
2134
|
|
|
@@ -2177,7 +2177,7 @@ EXAMPLES
|
|
|
2177
2177
|
$ csdx plugins:install someuser/someplugin
|
|
2178
2178
|
```
|
|
2179
2179
|
|
|
2180
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/
|
|
2180
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.58/src/commands/plugins/install.ts)_
|
|
2181
2181
|
|
|
2182
2182
|
## `csdx plugins:link PATH`
|
|
2183
2183
|
|
|
@@ -2208,7 +2208,7 @@ EXAMPLES
|
|
|
2208
2208
|
$ csdx plugins:link myplugin
|
|
2209
2209
|
```
|
|
2210
2210
|
|
|
2211
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/
|
|
2211
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.58/src/commands/plugins/link.ts)_
|
|
2212
2212
|
|
|
2213
2213
|
## `csdx plugins:remove [PLUGIN]`
|
|
2214
2214
|
|
|
@@ -2249,7 +2249,7 @@ FLAGS
|
|
|
2249
2249
|
--reinstall Reinstall all plugins after uninstalling.
|
|
2250
2250
|
```
|
|
2251
2251
|
|
|
2252
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/
|
|
2252
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.58/src/commands/plugins/reset.ts)_
|
|
2253
2253
|
|
|
2254
2254
|
## `csdx plugins:uninstall [PLUGIN]`
|
|
2255
2255
|
|
|
@@ -2277,7 +2277,7 @@ EXAMPLES
|
|
|
2277
2277
|
$ csdx plugins:uninstall myplugin
|
|
2278
2278
|
```
|
|
2279
2279
|
|
|
2280
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/
|
|
2280
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.58/src/commands/plugins/uninstall.ts)_
|
|
2281
2281
|
|
|
2282
2282
|
## `csdx plugins:unlink [PLUGIN]`
|
|
2283
2283
|
|
|
@@ -2321,7 +2321,7 @@ DESCRIPTION
|
|
|
2321
2321
|
Update installed plugins.
|
|
2322
2322
|
```
|
|
2323
2323
|
|
|
2324
|
-
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/
|
|
2324
|
+
_See code: [@oclif/plugin-plugins](https://github.com/oclif/plugin-plugins/blob/5.4.58/src/commands/plugins/update.ts)_
|
|
2325
2325
|
|
|
2326
2326
|
## `csdx tokens`
|
|
2327
2327
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* When an invalid command is corrected (e.g. loginasda → login), init ran with the invalid
|
|
3
|
+
* command so context.messageFilePath was never set. Re-build context and re-init utilities
|
|
4
|
+
* for the actual command so i18n prompts show human-readable text.
|
|
5
|
+
*/
|
|
6
|
+
export default function (opts: {
|
|
7
|
+
Command?: {
|
|
8
|
+
id?: string;
|
|
9
|
+
};
|
|
10
|
+
config?: any;
|
|
11
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const cli_utilities_1 = require("@contentstack/cli-utilities");
|
|
4
|
+
const utils_1 = require("../../utils");
|
|
5
|
+
/**
|
|
6
|
+
* When an invalid command is corrected (e.g. loginasda → login), init ran with the invalid
|
|
7
|
+
* command so context.messageFilePath was never set. Re-build context and re-init utilities
|
|
8
|
+
* for the actual command so i18n prompts show human-readable text.
|
|
9
|
+
*/
|
|
10
|
+
async function default_1(opts) {
|
|
11
|
+
var _a, _b, _c;
|
|
12
|
+
const config = (_a = opts === null || opts === void 0 ? void 0 : opts.config) !== null && _a !== void 0 ? _a : this.config;
|
|
13
|
+
const commandId = (_b = opts === null || opts === void 0 ? void 0 : opts.Command) === null || _b === void 0 ? void 0 : _b.id;
|
|
14
|
+
if (!((_c = config === null || config === void 0 ? void 0 : config.context) === null || _c === void 0 ? void 0 : _c.messageFilePath) && commandId) {
|
|
15
|
+
config.context = new utils_1.CsdxContext({ id: commandId }, config);
|
|
16
|
+
cli_utilities_1.messageHandler.init(config.context);
|
|
17
|
+
cli_utilities_1.cliux.init(config.context);
|
|
18
|
+
cli_utilities_1.managementSDKInitiator.init(config.context);
|
|
19
|
+
cli_utilities_1.marketplaceSDKInitiator.init(config.context);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.default = default_1;
|
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": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.16",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bin": {
|
|
7
7
|
"csdx": "./bin/run.js"
|
|
@@ -22,23 +22,23 @@
|
|
|
22
22
|
"prepack": "pnpm compile && oclif manifest && oclif readme"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@contentstack/cli-audit": "~2.0.0-beta.
|
|
26
|
-
"@contentstack/cli-cm-export": "~2.0.0-beta.
|
|
27
|
-
"@contentstack/cli-cm-import": "~2.0.0-beta.
|
|
28
|
-
"@contentstack/cli-auth": "~2.0.0-beta.
|
|
29
|
-
"@contentstack/cli-bulk-operations": "^1.0.
|
|
30
|
-
"@contentstack/cli-cm-bootstrap": "~2.0.0-beta.
|
|
31
|
-
"@contentstack/cli-cm-branches": "~2.0.0-beta.
|
|
32
|
-
"@contentstack/cli-cm-clone": "~2.0.0-beta.
|
|
33
|
-
"@contentstack/cli-cm-export-to-csv": "~2.0.0-beta.
|
|
34
|
-
"@contentstack/cli-cm-import-setup": "~2.0.0-beta.
|
|
35
|
-
"@contentstack/cli-cm-seed": "~2.0.0-beta.
|
|
36
|
-
"@contentstack/cli-command": "~2.0.0-beta.
|
|
37
|
-
"@contentstack/cli-config": "~2.0.0-beta.
|
|
25
|
+
"@contentstack/cli-audit": "~2.0.0-beta.7",
|
|
26
|
+
"@contentstack/cli-cm-export": "~2.0.0-beta.12",
|
|
27
|
+
"@contentstack/cli-cm-import": "~2.0.0-beta.12",
|
|
28
|
+
"@contentstack/cli-auth": "~2.0.0-beta.8",
|
|
29
|
+
"@contentstack/cli-bulk-operations": "^1.0.1",
|
|
30
|
+
"@contentstack/cli-cm-bootstrap": "~2.0.0-beta.12",
|
|
31
|
+
"@contentstack/cli-cm-branches": "~2.0.0-beta.3",
|
|
32
|
+
"@contentstack/cli-cm-clone": "~2.0.0-beta.13",
|
|
33
|
+
"@contentstack/cli-cm-export-to-csv": "~2.0.0-beta.3",
|
|
34
|
+
"@contentstack/cli-cm-import-setup": "~2.0.0-beta.7",
|
|
35
|
+
"@contentstack/cli-cm-seed": "~2.0.0-beta.11",
|
|
36
|
+
"@contentstack/cli-command": "~2.0.0-beta.3",
|
|
37
|
+
"@contentstack/cli-config": "~2.0.0-beta.4",
|
|
38
38
|
"@contentstack/cli-launch": "^1.9.6",
|
|
39
|
-
"@contentstack/cli-migration": "~2.0.0-beta.
|
|
40
|
-
"@contentstack/cli-utilities": "~2.0.0-beta.
|
|
41
|
-
"@contentstack/cli-variants": "~2.0.0-beta.
|
|
39
|
+
"@contentstack/cli-migration": "~2.0.0-beta.8",
|
|
40
|
+
"@contentstack/cli-utilities": "~2.0.0-beta.3",
|
|
41
|
+
"@contentstack/cli-variants": "~2.0.0-beta.9",
|
|
42
42
|
"@contentstack/management": "~1.27.6",
|
|
43
43
|
"@contentstack/utils": "~1.7.0",
|
|
44
44
|
"@oclif/core": "^4.8.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"cli-progress": "^3.12.0",
|
|
50
50
|
"debug": "^4.4.3",
|
|
51
51
|
"figlet": "1.8.2",
|
|
52
|
-
"inquirer": "
|
|
52
|
+
"inquirer": "^12.11.1",
|
|
53
53
|
"node-machine-id": "^1.1.12",
|
|
54
54
|
"open": "^8.4.2",
|
|
55
55
|
"ora": "^8.2.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@types/inquirer": "^9.0.9",
|
|
65
65
|
"@types/mkdirp": "^1.0.2",
|
|
66
66
|
"@types/mocha": "^8.2.3",
|
|
67
|
-
"@types/node": "^
|
|
67
|
+
"@types/node": "^18.11.9",
|
|
68
68
|
"@types/semver": "^7.7.0",
|
|
69
69
|
"@types/sinon": "^10.0.20",
|
|
70
70
|
"chai": "^4.5.0",
|
|
@@ -157,6 +157,7 @@
|
|
|
157
157
|
],
|
|
158
158
|
"hooks": {
|
|
159
159
|
"prerun": [
|
|
160
|
+
"./lib/hooks/prerun/init-context-for-command",
|
|
160
161
|
"./lib/hooks/prerun/default-rate-limit-check",
|
|
161
162
|
"./lib/hooks/prerun/latest-version-warning"
|
|
162
163
|
],
|
|
@@ -167,4 +168,4 @@
|
|
|
167
168
|
}
|
|
168
169
|
},
|
|
169
170
|
"repository": "https://github.com/contentstack/cli"
|
|
170
|
-
}
|
|
171
|
+
}
|