@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Contentstack
3
+ Copyright (c) 2026 Contentstack
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
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.53.1 linux-x64 node-v22.21.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> [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. <options: Import variables from a stack|Manually add
3837
- custom variables to the list|Import variables from the .env.local file|Skip adding
3838
- environment variables>
3839
- <options: Import variables from a stack|Manually add custom variables to the list|Import
3840
- variables from the .env.local file|Skip adding environment variables>
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
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "commands": {},
3
- "version": "1.53.1"
3
+ "version": "1.54.0"
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.53.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.1",
26
- "@contentstack/cli-cm-export": "~1.22.1",
27
- "@contentstack/cli-cm-import": "~1.30.1",
28
- "@contentstack/cli-auth": "~1.6.2",
29
- "@contentstack/cli-cm-bootstrap": "~1.17.1",
30
- "@contentstack/cli-cm-branches": "~1.6.1",
31
- "@contentstack/cli-cm-bulk-publish": "~1.10.3",
32
- "@contentstack/cli-cm-clone": "~1.18.0",
33
- "@contentstack/cli-cm-export-to-csv": "~1.10.1",
34
- "@contentstack/cli-cm-import-setup": "~1.7.1",
35
- "@contentstack/cli-cm-migrate-rte": "~1.6.2",
36
- "@contentstack/cli-cm-seed": "~1.13.1",
37
- "@contentstack/cli-command": "~1.7.0",
38
- "@contentstack/cli-config": "~1.16.1",
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.1",
41
- "@contentstack/cli-utilities": "~1.15.0",
42
- "@contentstack/cli-variants": "~1.3.5",
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.38",
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",