@contentstack/cli 1.53.1 → 1.55.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/LICENSE +1 -1
- package/README.md +50 -44
- package/lib/hooks/prerun/latest-version-warning.js +5 -1
- package/oclif.manifest.json +1 -1
- package/package.json +19 -19
package/LICENSE
CHANGED
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.
|
|
21
|
+
@contentstack/cli/1.55.0 linux-x64 node-v22.21.1
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -130,13 +130,14 @@ Perform audits and find possible errors in the exported Contentstack data
|
|
|
130
130
|
```
|
|
131
131
|
USAGE
|
|
132
132
|
$ csdx audit [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
|
|
133
|
-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...]
|
|
134
|
-
[--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output
|
|
133
|
+
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules|composable-studio...]
|
|
134
|
+
[--columns <value>] [--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output
|
|
135
|
+
csv|json|yaml]
|
|
135
136
|
|
|
136
137
|
FLAGS
|
|
137
138
|
--modules=<option>... Provide the list of modules to be audited
|
|
138
|
-
<options:
|
|
139
|
-
|
|
139
|
+
<options: content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-ru
|
|
140
|
+
les|composable-studio>
|
|
140
141
|
--report-path=<value> Path to store the audit reports
|
|
141
142
|
|
|
142
143
|
COMMON FLAGS
|
|
@@ -180,9 +181,10 @@ Perform audits and fix possible errors in the exported Contentstack data.
|
|
|
180
181
|
```
|
|
181
182
|
USAGE
|
|
182
183
|
$ csdx audit:fix [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
|
|
183
|
-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...]
|
|
184
|
-
--copy-dir] [--fix-only
|
|
185
|
-
|
|
184
|
+
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules|composable-studio...]
|
|
185
|
+
[--copy-path <value> --copy-dir] [--fix-only
|
|
186
|
+
reference|global_field|json:rte|json:extension|blocks|group|content_types...] [--columns <value>] [--sort <value>]
|
|
187
|
+
[--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
|
|
186
188
|
|
|
187
189
|
FLAGS
|
|
188
190
|
--copy-dir Create backup from the original data.
|
|
@@ -190,8 +192,8 @@ FLAGS
|
|
|
190
192
|
--fix-only=<option>... Provide the list of fix options
|
|
191
193
|
<options: reference|global_field|json:rte|json:extension|blocks|group|content_types>
|
|
192
194
|
--modules=<option>... Provide the list of modules to be audited
|
|
193
|
-
<options:
|
|
194
|
-
|
|
195
|
+
<options: content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-r
|
|
196
|
+
ules|composable-studio>
|
|
195
197
|
--report-path=<value> Path to store the audit reports
|
|
196
198
|
|
|
197
199
|
COMMON FLAGS
|
|
@@ -2698,13 +2700,14 @@ Perform audits and find possible errors in the exported Contentstack data
|
|
|
2698
2700
|
```
|
|
2699
2701
|
USAGE
|
|
2700
2702
|
$ csdx cm:stacks:audit [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
|
|
2701
|
-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...]
|
|
2702
|
-
[--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output
|
|
2703
|
+
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules|composable-studio...]
|
|
2704
|
+
[--columns <value>] [--sort <value>] [--filter <value>] [--csv] [--no-truncate] [--no-header] [--output
|
|
2705
|
+
csv|json|yaml]
|
|
2703
2706
|
|
|
2704
2707
|
FLAGS
|
|
2705
2708
|
--modules=<option>... Provide the list of modules to be audited
|
|
2706
|
-
<options:
|
|
2707
|
-
|
|
2709
|
+
<options: content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-ru
|
|
2710
|
+
les|composable-studio>
|
|
2708
2711
|
--report-path=<value> Path to store the audit reports
|
|
2709
2712
|
|
|
2710
2713
|
COMMON FLAGS
|
|
@@ -2750,9 +2753,10 @@ Perform audits and fix possible errors in the exported Contentstack data.
|
|
|
2750
2753
|
```
|
|
2751
2754
|
USAGE
|
|
2752
2755
|
$ csdx cm:stacks:audit:fix [-c <value>] [-d <value>] [--show-console-output] [--report-path <value>] [--modules
|
|
2753
|
-
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules...]
|
|
2754
|
-
--copy-dir] [--fix-only
|
|
2755
|
-
|
|
2756
|
+
content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-rules|composable-studio...]
|
|
2757
|
+
[--copy-path <value> --copy-dir] [--fix-only
|
|
2758
|
+
reference|global_field|json:rte|json:extension|blocks|group|content_types...] [--columns <value>] [--sort <value>]
|
|
2759
|
+
[--filter <value>] [--csv] [--no-truncate] [--no-header] [--output csv|json|yaml]
|
|
2756
2760
|
|
|
2757
2761
|
FLAGS
|
|
2758
2762
|
--copy-dir Create backup from the original data.
|
|
@@ -2760,8 +2764,8 @@ FLAGS
|
|
|
2760
2764
|
--fix-only=<option>... Provide the list of fix options
|
|
2761
2765
|
<options: reference|global_field|json:rte|json:extension|blocks|group|content_types>
|
|
2762
2766
|
--modules=<option>... Provide the list of modules to be audited
|
|
2763
|
-
<options:
|
|
2764
|
-
|
|
2767
|
+
<options: content-types|global-fields|entries|extensions|workflows|custom-roles|assets|field-r
|
|
2768
|
+
ules|composable-studio>
|
|
2765
2769
|
--report-path=<value> Path to store the audit reports
|
|
2766
2770
|
|
|
2767
2771
|
COMMON FLAGS
|
|
@@ -3811,33 +3815,33 @@ USAGE
|
|
|
3811
3815
|
React App)|CSR (Client-Side Rendered)|Angular|Nuxt|VueJs|Remix|Other] [--org <value>] [-n <value>] [-e <value>]
|
|
3812
3816
|
[--branch <value>] [--build-command <value>] [--out-dir <value>] [--server-command <value>] [--variable-type Import
|
|
3813
3817
|
variables from a stack|Manually add custom variables to the list|Import variables from the .env.local file|Skip
|
|
3814
|
-
adding environment variables] [-a <value>] [--env-variables <value>] [--redeploy-latest] [--redeploy-last-upload]
|
|
3818
|
+
adding environment variables...] [-a <value>] [--env-variables <value>] [--redeploy-latest] [--redeploy-last-upload]
|
|
3815
3819
|
|
|
3816
3820
|
FLAGS
|
|
3817
|
-
-a, --alias=<value>
|
|
3818
|
-
-c, --config=<value>
|
|
3819
|
-
-d, --data-dir=<value>
|
|
3820
|
-
-e, --environment=<value>
|
|
3821
|
-
-n, --name=<value>
|
|
3822
|
-
--branch=<value>
|
|
3823
|
-
--build-command=<value>
|
|
3824
|
-
--env-variables=<value>
|
|
3825
|
-
|
|
3826
|
-
--framework=<option>
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
--org=<value>
|
|
3830
|
-
--out-dir=<value>
|
|
3831
|
-
--redeploy-last-upload
|
|
3832
|
-
--redeploy-latest
|
|
3833
|
-
--server-command=<value>
|
|
3834
|
-
--type=<option>
|
|
3835
|
-
|
|
3836
|
-
--variable-type=<option
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3821
|
+
-a, --alias=<value> [optional] Alias (name) for the delivery token.
|
|
3822
|
+
-c, --config=<value> Path to the local '.cs-launch.json' file
|
|
3823
|
+
-d, --data-dir=<value> Current working directory
|
|
3824
|
+
-e, --environment=<value> [optional] Environment name for the Launch project.
|
|
3825
|
+
-n, --name=<value> [optional] Name of the project.
|
|
3826
|
+
--branch=<value> [optional] GitHub branch name.
|
|
3827
|
+
--build-command=<value> [optional] Build Command.
|
|
3828
|
+
--env-variables=<value> [optional] Provide the environment variables in the key:value format, separated by
|
|
3829
|
+
comma. For example: APP_ENV:prod, TEST_ENV:testVal.
|
|
3830
|
+
--framework=<option> [optional] Type of framework. <options: Gatsby|NextJS|Other>
|
|
3831
|
+
<options: Gatsby|NextJs|CRA (Create React App)|CSR (Client-Side
|
|
3832
|
+
Rendered)|Angular|Nuxt|VueJs|Remix|Other>
|
|
3833
|
+
--org=<value> [optional] Provide the organization UID to create a new project or deployment.
|
|
3834
|
+
--out-dir=<value> [optional] Output Directory.
|
|
3835
|
+
--redeploy-last-upload [optional] Redeploy with last file upload
|
|
3836
|
+
--redeploy-latest [optional] Redeploy latest commit/code
|
|
3837
|
+
--server-command=<value> [optional] Server Command.
|
|
3838
|
+
--type=<option> [optional] Type of adapters. <options: GitHub|FileUpload>
|
|
3839
|
+
<options: GitHub|FileUpload>
|
|
3840
|
+
--variable-type=<option>... [optional] Provide a variable type (can specify multiple times). <options: Import
|
|
3841
|
+
variables from a stack|Manually add custom variables to the list|Import variables
|
|
3842
|
+
from the .env.local file|Skip adding environment variables>
|
|
3843
|
+
<options: Import variables from a stack|Manually add custom variables to the
|
|
3844
|
+
list|Import variables from the .env.local file|Skip adding environment variables>
|
|
3841
3845
|
|
|
3842
3846
|
DESCRIPTION
|
|
3843
3847
|
Launch related operations
|
|
@@ -3868,6 +3872,8 @@ EXAMPLES
|
|
|
3868
3872
|
$ 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> --variable-type="Import variables from a stack" --alias=<value>
|
|
3869
3873
|
|
|
3870
3874
|
$ 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> --variable-type="Manually add custom variables to the list" --env-variables="APP_ENV:prod, TEST_ENV:testVal"
|
|
3875
|
+
|
|
3876
|
+
$ 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> --variable-type="Import variables from a stack" --variable-type="Manually add custom variables to the list" --alias=<value>
|
|
3871
3877
|
```
|
|
3872
3878
|
|
|
3873
3879
|
_See code: [@contentstack/cli-launch](https://github.com/contentstack/launch-cli/blob/main/packages/contentstack-launch/src/commands/launch/index.ts)_
|
|
@@ -4,7 +4,7 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const cli_utilities_1 = require("@contentstack/cli-utilities");
|
|
5
5
|
const semver = tslib_1.__importStar(require("semver"));
|
|
6
6
|
const versionUpgradeWarningFrequency = {
|
|
7
|
-
versionSyncDuration: 3 * 24 * 60 * 60 * 1000,
|
|
7
|
+
versionSyncDuration: 3 * 24 * 60 * 60 * 1000, // 3 days
|
|
8
8
|
};
|
|
9
9
|
async function default_1(_opts) {
|
|
10
10
|
var _a, _b;
|
|
@@ -12,6 +12,10 @@ async function default_1(_opts) {
|
|
|
12
12
|
const today = new Date().toISOString().split('T')[0];
|
|
13
13
|
const logger = new cli_utilities_1.LoggerService(process.env.CS_CLI_LOG_PATH || process.cwd(), 'cli-log');
|
|
14
14
|
let cache = { lastChecked: 0, lastWarnedDate: '', latestVersion: '' };
|
|
15
|
+
// if CLI_VERSION is not set or is not the same as the current version, set it
|
|
16
|
+
if (!cli_utilities_1.configHandler.get('CLI_VERSION') || cli_utilities_1.configHandler.get('CLI_VERSION') !== this.config.version) {
|
|
17
|
+
cli_utilities_1.configHandler.set('CLI_VERSION', this.config.version); // set current version in configHandler
|
|
18
|
+
}
|
|
15
19
|
if (!cli_utilities_1.configHandler.get('versionUpgradeWarningFrequency')) {
|
|
16
20
|
cli_utilities_1.configHandler.set('versionUpgradeWarningFrequency', versionUpgradeWarningFrequency);
|
|
17
21
|
}
|
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": "1.
|
|
4
|
+
"version": "1.55.0",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bin": {
|
|
7
7
|
"csdx": "./bin/run.js"
|
|
@@ -22,29 +22,29 @@
|
|
|
22
22
|
"prepack": "pnpm compile && oclif manifest && oclif readme"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@contentstack/cli-audit": "~1.
|
|
26
|
-
"@contentstack/cli-cm-export": "~1.
|
|
27
|
-
"@contentstack/cli-cm-import": "~1.
|
|
28
|
-
"@contentstack/cli-auth": "~1.
|
|
29
|
-
"@contentstack/cli-cm-bootstrap": "~1.
|
|
30
|
-
"@contentstack/cli-cm-branches": "~1.6.
|
|
31
|
-
"@contentstack/cli-cm-bulk-publish": "~1.10.
|
|
32
|
-
"@contentstack/cli-cm-clone": "~1.
|
|
33
|
-
"@contentstack/cli-cm-export-to-csv": "~1.10.
|
|
34
|
-
"@contentstack/cli-cm-import-setup": "~1.7.
|
|
35
|
-
"@contentstack/cli-cm-migrate-rte": "~1.6.
|
|
36
|
-
"@contentstack/cli-cm-seed": "~1.
|
|
37
|
-
"@contentstack/cli-command": "~1.7.
|
|
38
|
-
"@contentstack/cli-config": "~1.
|
|
25
|
+
"@contentstack/cli-audit": "~1.17.0",
|
|
26
|
+
"@contentstack/cli-cm-export": "~1.23.0",
|
|
27
|
+
"@contentstack/cli-cm-import": "~1.31.0",
|
|
28
|
+
"@contentstack/cli-auth": "~1.7.0",
|
|
29
|
+
"@contentstack/cli-cm-bootstrap": "~1.18.0",
|
|
30
|
+
"@contentstack/cli-cm-branches": "~1.6.2",
|
|
31
|
+
"@contentstack/cli-cm-bulk-publish": "~1.10.5",
|
|
32
|
+
"@contentstack/cli-cm-clone": "~1.19.0",
|
|
33
|
+
"@contentstack/cli-cm-export-to-csv": "~1.10.2",
|
|
34
|
+
"@contentstack/cli-cm-import-setup": "~1.7.2",
|
|
35
|
+
"@contentstack/cli-cm-migrate-rte": "~1.6.3",
|
|
36
|
+
"@contentstack/cli-cm-seed": "~1.14.0",
|
|
37
|
+
"@contentstack/cli-command": "~1.7.1",
|
|
38
|
+
"@contentstack/cli-config": "~1.17.0",
|
|
39
39
|
"@contentstack/cli-launch": "^1.9.2",
|
|
40
|
-
"@contentstack/cli-migration": "~1.10.
|
|
41
|
-
"@contentstack/cli-utilities": "~1.
|
|
42
|
-
"@contentstack/cli-variants": "~1.3.
|
|
40
|
+
"@contentstack/cli-migration": "~1.10.2",
|
|
41
|
+
"@contentstack/cli-utilities": "~1.16.0",
|
|
42
|
+
"@contentstack/cli-variants": "~1.3.6",
|
|
43
43
|
"@contentstack/management": "~1.22.0",
|
|
44
44
|
"@oclif/core": "^4.3.0",
|
|
45
45
|
"@oclif/plugin-help": "^6.2.28",
|
|
46
46
|
"@oclif/plugin-not-found": "^3.2.53",
|
|
47
|
-
"@oclif/plugin-plugins": "^5.4.
|
|
47
|
+
"@oclif/plugin-plugins": "^5.4.54",
|
|
48
48
|
"chalk": "^4.1.2",
|
|
49
49
|
"debug": "^4.4.1",
|
|
50
50
|
"figlet": "1.8.1",
|