@contentstack/cli 1.53.1 → 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 +28 -26
- 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
|
|
@@ -3811,33 +3811,33 @@ USAGE
|
|
|
3811
3811
|
React App)|CSR (Client-Side Rendered)|Angular|Nuxt|VueJs|Remix|Other] [--org <value>] [-n <value>] [-e <value>]
|
|
3812
3812
|
[--branch <value>] [--build-command <value>] [--out-dir <value>] [--server-command <value>] [--variable-type Import
|
|
3813
3813
|
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]
|
|
3814
|
+
adding environment variables...] [-a <value>] [--env-variables <value>] [--redeploy-latest] [--redeploy-last-upload]
|
|
3815
3815
|
|
|
3816
3816
|
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
|
-
|
|
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>
|
|
3841
3841
|
|
|
3842
3842
|
DESCRIPTION
|
|
3843
3843
|
Launch related operations
|
|
@@ -3868,6 +3868,8 @@ EXAMPLES
|
|
|
3868
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>
|
|
3869
3869
|
|
|
3870
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>
|
|
3871
3873
|
```
|
|
3872
3874
|
|
|
3873
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",
|