@contentstack/cli 1.53.0 → 1.54.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 +44 -43
- 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.54.0 linux-x64 node-v22.21.1
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -2201,7 +2201,7 @@ FLAGS
|
|
|
2201
2201
|
-m, --module=<value> [optional] Specific module name. If not specified, the export command will export all
|
|
2202
2202
|
the modules to the stack. The available modules are assets, content-types, entries,
|
|
2203
2203
|
environments, extensions, marketplace-apps, global-fields, labels, locales, webhooks,
|
|
2204
|
-
workflows, custom-roles, taxonomies, and
|
|
2204
|
+
workflows, custom-roles, taxonomies, and studio.
|
|
2205
2205
|
-t, --content-types=<value>... [optional] The UID of the content type(s) whose content you want to export. In case
|
|
2206
2206
|
of multiple content types, specify the IDs separated by spaces.
|
|
2207
2207
|
-y, --yes [optional] Force override all Marketplace prompts.
|
|
@@ -2880,7 +2880,7 @@ FLAGS
|
|
|
2880
2880
|
-m, --module=<value> [optional] Specific module name. If not specified, the export command will export all
|
|
2881
2881
|
the modules to the stack. The available modules are assets, content-types, entries,
|
|
2882
2882
|
environments, extensions, marketplace-apps, global-fields, labels, locales, webhooks,
|
|
2883
|
-
workflows, custom-roles, taxonomies, and
|
|
2883
|
+
workflows, custom-roles, taxonomies, and studio.
|
|
2884
2884
|
-t, --content-types=<value>... [optional] The UID of the content type(s) whose content you want to export. In case
|
|
2885
2885
|
of multiple content types, specify the IDs separated by spaces.
|
|
2886
2886
|
-y, --yes [optional] Force override all Marketplace prompts.
|
|
@@ -3728,24 +3728,23 @@ Set region for CLI
|
|
|
3728
3728
|
```
|
|
3729
3729
|
USAGE
|
|
3730
3730
|
$ csdx config:set:region [REGION] [-d <value> -m <value> --ui-host <value> -n <value>] [--developer-hub <value>]
|
|
3731
|
-
[--personalize <value>] [--launch <value>] [--
|
|
3731
|
+
[--personalize <value>] [--launch <value>] [--studio <value>]
|
|
3732
3732
|
|
|
3733
3733
|
ARGUMENTS
|
|
3734
3734
|
[REGION] Name for the region
|
|
3735
3735
|
|
|
3736
3736
|
FLAGS
|
|
3737
|
-
-d, --cda=<value>
|
|
3738
|
-
|
|
3739
|
-
-m, --cma=<value>
|
|
3740
|
-
|
|
3741
|
-
-n, --name=<value>
|
|
3742
|
-
|
|
3743
|
-
--
|
|
3744
|
-
--
|
|
3745
|
-
--
|
|
3746
|
-
--
|
|
3747
|
-
|
|
3748
|
-
required
|
|
3737
|
+
-d, --cda=<value> Custom host to set for content delivery API, if this flag is added then cma, ui-host and
|
|
3738
|
+
name flags are required
|
|
3739
|
+
-m, --cma=<value> Custom host to set for content management API, , if this flag is added then cda, ui-host
|
|
3740
|
+
and name flags are required
|
|
3741
|
+
-n, --name=<value> Name for the region, if this flag is added then cda, cma and ui-host flags are required
|
|
3742
|
+
--developer-hub=<value> Custom host to set for Developer hub API
|
|
3743
|
+
--launch=<value> Custom host to set for Launch API
|
|
3744
|
+
--personalize=<value> Custom host to set for Personalize API
|
|
3745
|
+
--studio=<value> Custom host to set for Studio API
|
|
3746
|
+
--ui-host=<value> Custom UI host to set for CLI, if this flag is added then cda, cma and name flags are
|
|
3747
|
+
required
|
|
3749
3748
|
|
|
3750
3749
|
DESCRIPTION
|
|
3751
3750
|
Set region for CLI
|
|
@@ -3775,9 +3774,9 @@ EXAMPLES
|
|
|
3775
3774
|
|
|
3776
3775
|
$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name "India" --launch <custom_launch_url>
|
|
3777
3776
|
|
|
3778
|
-
$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name "India" --
|
|
3777
|
+
$ csdx config:set:region --cma <custom_cma_host_url> --cda <custom_cda_host_url> --ui-host <custom_ui_host_url> --name "India" --studio <custom_studio_url>
|
|
3779
3778
|
|
|
3780
|
-
$ csdx config:set:region --cda <custom_cda_host_url> --cma <custom_cma_host_url> --ui-host <custom_ui_host_url> --name "India" --developer-hub <custom_developer_hub_url> --launch <custom_launch_url> --personalize <custom_personalize_url> --
|
|
3779
|
+
$ csdx config:set:region --cda <custom_cda_host_url> --cma <custom_cma_host_url> --ui-host <custom_ui_host_url> --name "India" --developer-hub <custom_developer_hub_url> --launch <custom_launch_url> --personalize <custom_personalize_url> --studio <custom_studio_url>
|
|
3781
3780
|
```
|
|
3782
3781
|
|
|
3783
3782
|
_See code: [@contentstack/cli-config](https://github.com/contentstack/cli/blob/main/packages/contentstack-config/src/commands/config/set/region.ts)_
|
|
@@ -3812,33 +3811,33 @@ USAGE
|
|
|
3812
3811
|
React App)|CSR (Client-Side Rendered)|Angular|Nuxt|VueJs|Remix|Other] [--org <value>] [-n <value>] [-e <value>]
|
|
3813
3812
|
[--branch <value>] [--build-command <value>] [--out-dir <value>] [--server-command <value>] [--variable-type Import
|
|
3814
3813
|
variables from a stack|Manually add custom variables to the list|Import variables from the .env.local file|Skip
|
|
3815
|
-
adding environment variables] [-a <value>] [--env-variables <value>] [--redeploy-latest] [--redeploy-last-upload]
|
|
3814
|
+
adding environment variables...] [-a <value>] [--env-variables <value>] [--redeploy-latest] [--redeploy-last-upload]
|
|
3816
3815
|
|
|
3817
3816
|
FLAGS
|
|
3818
|
-
-a, --alias=<value>
|
|
3819
|
-
-c, --config=<value>
|
|
3820
|
-
-d, --data-dir=<value>
|
|
3821
|
-
-e, --environment=<value>
|
|
3822
|
-
-n, --name=<value>
|
|
3823
|
-
--branch=<value>
|
|
3824
|
-
--build-command=<value>
|
|
3825
|
-
--env-variables=<value>
|
|
3826
|
-
|
|
3827
|
-
--framework=<option>
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
--org=<value>
|
|
3831
|
-
--out-dir=<value>
|
|
3832
|
-
--redeploy-last-upload
|
|
3833
|
-
--redeploy-latest
|
|
3834
|
-
--server-command=<value>
|
|
3835
|
-
--type=<option>
|
|
3836
|
-
|
|
3837
|
-
--variable-type=<option
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3841
|
-
|
|
3817
|
+
-a, --alias=<value> [optional] Alias (name) for the delivery token.
|
|
3818
|
+
-c, --config=<value> Path to the local '.cs-launch.json' file
|
|
3819
|
+
-d, --data-dir=<value> Current working directory
|
|
3820
|
+
-e, --environment=<value> [optional] Environment name for the Launch project.
|
|
3821
|
+
-n, --name=<value> [optional] Name of the project.
|
|
3822
|
+
--branch=<value> [optional] GitHub branch name.
|
|
3823
|
+
--build-command=<value> [optional] Build Command.
|
|
3824
|
+
--env-variables=<value> [optional] Provide the environment variables in the key:value format, separated by
|
|
3825
|
+
comma. For example: APP_ENV:prod, TEST_ENV:testVal.
|
|
3826
|
+
--framework=<option> [optional] Type of framework. <options: Gatsby|NextJS|Other>
|
|
3827
|
+
<options: Gatsby|NextJs|CRA (Create React App)|CSR (Client-Side
|
|
3828
|
+
Rendered)|Angular|Nuxt|VueJs|Remix|Other>
|
|
3829
|
+
--org=<value> [optional] Provide the organization UID to create a new project or deployment.
|
|
3830
|
+
--out-dir=<value> [optional] Output Directory.
|
|
3831
|
+
--redeploy-last-upload [optional] Redeploy with last file upload
|
|
3832
|
+
--redeploy-latest [optional] Redeploy latest commit/code
|
|
3833
|
+
--server-command=<value> [optional] Server Command.
|
|
3834
|
+
--type=<option> [optional] Type of adapters. <options: GitHub|FileUpload>
|
|
3835
|
+
<options: GitHub|FileUpload>
|
|
3836
|
+
--variable-type=<option>... [optional] Provide a variable type (can specify multiple times). <options: Import
|
|
3837
|
+
variables from a stack|Manually add custom variables to the list|Import variables
|
|
3838
|
+
from the .env.local file|Skip adding environment variables>
|
|
3839
|
+
<options: Import variables from a stack|Manually add custom variables to the
|
|
3840
|
+
list|Import variables from the .env.local file|Skip adding environment variables>
|
|
3842
3841
|
|
|
3843
3842
|
DESCRIPTION
|
|
3844
3843
|
Launch related operations
|
|
@@ -3869,6 +3868,8 @@ EXAMPLES
|
|
|
3869
3868
|
$ 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>
|
|
3870
3869
|
|
|
3871
3870
|
$ 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"
|
|
3871
|
+
|
|
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" --variable-type="Manually add custom variables to the list" --alias=<value>
|
|
3872
3873
|
```
|
|
3873
3874
|
|
|
3874
3875
|
_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.54.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.16.
|
|
26
|
-
"@contentstack/cli-cm-export": "~1.22.
|
|
27
|
-
"@contentstack/cli-cm-import": "~1.30.
|
|
28
|
-
"@contentstack/cli-auth": "~1.6.
|
|
29
|
-
"@contentstack/cli-cm-bootstrap": "~1.17.
|
|
30
|
-
"@contentstack/cli-cm-branches": "~1.6.
|
|
31
|
-
"@contentstack/cli-cm-bulk-publish": "~1.10.
|
|
32
|
-
"@contentstack/cli-cm-clone": "~1.18.
|
|
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.13.
|
|
37
|
-
"@contentstack/cli-command": "~1.7.
|
|
38
|
-
"@contentstack/cli-config": "~1.16.
|
|
25
|
+
"@contentstack/cli-audit": "~1.16.2",
|
|
26
|
+
"@contentstack/cli-cm-export": "~1.22.2",
|
|
27
|
+
"@contentstack/cli-cm-import": "~1.30.2",
|
|
28
|
+
"@contentstack/cli-auth": "~1.6.3",
|
|
29
|
+
"@contentstack/cli-cm-bootstrap": "~1.17.2",
|
|
30
|
+
"@contentstack/cli-cm-branches": "~1.6.2",
|
|
31
|
+
"@contentstack/cli-cm-bulk-publish": "~1.10.4",
|
|
32
|
+
"@contentstack/cli-cm-clone": "~1.18.1",
|
|
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.13.2",
|
|
37
|
+
"@contentstack/cli-command": "~1.7.1",
|
|
38
|
+
"@contentstack/cli-config": "~1.16.2",
|
|
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",
|