diff --git a/package.json b/package.json index 79857b2db..8a83bf297 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "pnpm": "^10.28.0" }, "engines": { - "node": ">=18.0.0" + "node": ">=22.0.0" }, "private": true, "scripts": { diff --git a/packages/contentstack-apps-cli/README.md b/packages/contentstack-apps-cli/README.md index 06e597559..24ab1e191 100644 --- a/packages/contentstack-apps-cli/README.md +++ b/packages/contentstack-apps-cli/README.md @@ -1,9 +1,3 @@ -> **Source of truth:** [cli-plugins](https://github.com/contentstack/cli-plugins) — `packages/contentstack-apps-cli` (v1 line: `v1-dev` / `v1-beta`) -> Migrated from [contentstack-apps-cli](https://github.com/contentstack/contentstack-apps-cli). See [APPS-CLI-MIGRATION.md](../../APPS-CLI-MIGRATION.md). - - - - # @contentstack/apps-cli Contentstack lets you develop apps in your organization using the Developer Hub portal. With the Apps CLI plugin, Contentstack CLI allows you to perform the CRUD operations on your app in Developer Hub and then use the app in your organization or stack by installing or uninstalling your app as required. @@ -23,8 +17,8 @@ This plugin requires you to be authenticated using [csdx auth:login](https://www $ npm install -g @contentstack/apps-cli $ csdx COMMAND running command... -$ csdx (--version|-v) -@contentstack/apps-cli/1.6.1 darwin-arm64 node-v18.20.2 +$ csdx (--version) +@contentstack/apps-cli/1.6.1 darwin-arm64 node-v22.21.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND @@ -74,7 +68,7 @@ EXAMPLES $ csdx app:update ``` -_See code: [src/commands/app/index.ts](https://github.com/contentstack/apps-cli/blob/v1.6.1/src/commands/app/index.ts)_ +_See code: [src/commands/app/index.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-apps-cli/src/commands/app/index.ts)_ ## `csdx app:create` @@ -114,7 +108,7 @@ EXAMPLES $ csdx app:create --name App-4 --app-type organization --org --boilerplate ``` -_See code: [src/commands/app/create.ts](https://github.com/contentstack/apps-cli/blob/v1.6.1/src/commands/app/create.ts)_ +_See code: [src/commands/app/create.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-apps-cli/src/commands/app/create.ts)_ ## `csdx app:delete` @@ -136,10 +130,10 @@ EXAMPLES $ csdx app:delete --app-uid - $ csdx app:delete --app-uid --org -d ./boilerplate + $ csdx app:delete --app-uid --org ``` -_See code: [src/commands/app/delete.ts](https://github.com/contentstack/apps-cli/blob/v1.6.1/src/commands/app/delete.ts)_ +_See code: [src/commands/app/delete.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-apps-cli/src/commands/app/delete.ts)_ ## `csdx app:deploy` @@ -177,7 +171,7 @@ EXAMPLES $ csdx app:deploy --org --app-uid --hosting-type --launch-project --config ``` -_See code: [src/commands/app/deploy.ts](https://github.com/contentstack/apps-cli/blob/v1.6.1/src/commands/app/deploy.ts)_ +_See code: [src/commands/app/deploy.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-apps-cli/src/commands/app/deploy.ts)_ ## `csdx app:get` @@ -207,7 +201,7 @@ EXAMPLES $ csdx app:get --org --app-uid --app-type organization ``` -_See code: [src/commands/app/get.ts](https://github.com/contentstack/apps-cli/blob/v1.6.1/src/commands/app/get.ts)_ +_See code: [src/commands/app/get.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-apps-cli/src/commands/app/get.ts)_ ## `csdx app:install` @@ -233,7 +227,7 @@ EXAMPLES $ csdx app:install --org --app-uid --stack-api-key ``` -_See code: [src/commands/app/install.ts](https://github.com/contentstack/apps-cli/blob/v1.6.1/src/commands/app/install.ts)_ +_See code: [src/commands/app/install.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-apps-cli/src/commands/app/install.ts)_ ## `csdx app:reinstall` @@ -259,7 +253,7 @@ EXAMPLES $ csdx app:reinstall --org --app-uid --stack-api-key ``` -_See code: [src/commands/app/reinstall.ts](https://github.com/contentstack/apps-cli/blob/v1.6.1/src/commands/app/reinstall.ts)_ +_See code: [src/commands/app/reinstall.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-apps-cli/src/commands/app/reinstall.ts)_ ## `csdx app:uninstall` @@ -286,7 +280,7 @@ EXAMPLES $ csdx app:uninstall --org --app-uid --installation-uid ``` -_See code: [src/commands/app/uninstall.ts](https://github.com/contentstack/apps-cli/blob/v1.6.1/src/commands/app/uninstall.ts)_ +_See code: [src/commands/app/uninstall.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-apps-cli/src/commands/app/uninstall.ts)_ ## `csdx app:update` @@ -297,7 +291,7 @@ USAGE $ csdx app:update [--org ] [--app-manifest ] FLAGS - --app-manifest= Path to the app manifest.json file: + --app-manifest= Path to the app manifest.json file. --org= Provide the organization UID to fetch the app details for the operation. DESCRIPTION @@ -309,5 +303,5 @@ EXAMPLES $ csdx app:update --app-manifest ./boilerplate/manifest.json ``` -_See code: [src/commands/app/update.ts](https://github.com/contentstack/apps-cli/blob/v1.6.1/src/commands/app/update.ts)_ +_See code: [src/commands/app/update.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-apps-cli/src/commands/app/update.ts)_ diff --git a/packages/contentstack-apps-cli/package.json b/packages/contentstack-apps-cli/package.json index c8146bc8c..00bfcd481 100644 --- a/packages/contentstack-apps-cli/package.json +++ b/packages/contentstack-apps-cli/package.json @@ -1,6 +1,6 @@ { "name": "@contentstack/apps-cli", - "version": "1.7.0", + "version": "1.7.1", "description": "App ClI", "author": "Contentstack CLI", "homepage": "https://github.com/contentstack/cli-plugins/tree/main/packages/contentstack-apps-cli", @@ -22,8 +22,8 @@ ], "dependencies": { "@apollo/client": "^3.14.1", - "@contentstack/cli-command": "~1.8.3", - "@contentstack/cli-launch": "^1.10.0", + "@contentstack/cli-command": "~1.8.4", + "@contentstack/cli-launch": "^1.11.1", "@contentstack/cli-utilities": "~1.18.4", "adm-zip": "^0.5.17", "chalk": "^4.1.2", @@ -88,7 +88,7 @@ "test:unit:report:json": "mocha --reporter json --reporter-options output=report.json --forbid-only \"test/unit/**/*.test.ts\" && nyc --reporter=clover --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\"" }, "engines": { - "node": ">=16" + "node": ">=22.0.0" }, "bugs": "https://github.com/contentstack/cli-plugins/issues", "keywords": [ diff --git a/packages/contentstack-audit/README.md b/packages/contentstack-audit/README.md index ba500ae37..0cbcc1f20 100644 --- a/packages/contentstack-audit/README.md +++ b/packages/contentstack-audit/README.md @@ -1,6 +1,3 @@ - - - # @contentstack/cli-audit Audit plugin @@ -19,7 +16,7 @@ $ npm install -g @contentstack/cli-audit $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/cli-audit/1.19.4 darwin-arm64 node-v24.14.0 +@contentstack/cli-audit/1.19.5 darwin-arm64 node-v22.21.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-audit/package.json b/packages/contentstack-audit/package.json index e94481626..cb4c97eb3 100644 --- a/packages/contentstack-audit/package.json +++ b/packages/contentstack-audit/package.json @@ -1,6 +1,6 @@ { "name": "@contentstack/cli-audit", - "version": "1.19.4", + "version": "1.19.5", "description": "Contentstack audit plugin", "author": "Contentstack CLI", "homepage": "https://github.com/contentstack/cli", @@ -18,7 +18,7 @@ "/oclif.manifest.json" ], "dependencies": { - "@contentstack/cli-command": "~1.8.3", + "@contentstack/cli-command": "~1.8.4", "@contentstack/cli-utilities": "~1.18.4", "@oclif/core": "^4.11.4", "chalk": "^4.1.2", @@ -71,7 +71,7 @@ "test:unit": "mocha --timeout 10000 --forbid-only \"test/unit/**/*.test.ts\"" }, "engines": { - "node": ">=16" + "node": ">=22.0.0" }, "bugs": "https://github.com/contentstack/cli/issues", "keywords": [ diff --git a/packages/contentstack-bootstrap/README.md b/packages/contentstack-bootstrap/README.md index 7e67fccb1..2aadfdf45 100644 --- a/packages/contentstack-bootstrap/README.md +++ b/packages/contentstack-bootstrap/README.md @@ -1,8 +1,11 @@ +# @contentstack/cli-cm-bootstrap + Contentstack CLI’s “Bootstrap” plugin enables you to automate the process of setting up projects for sample and starter apps in Contentstack. This means that all the required steps such as stack, environment, and content type creation, entry and asset publishing are performed just by using a single command. +* [@contentstack/cli-cm-bootstrap](#contentstackcli-cm-bootstrap) * [Usage](#usage) * [Commands](#commands) @@ -15,7 +18,7 @@ $ npm install -g @contentstack/cli-cm-bootstrap $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-bootstrap/1.19.6 darwin-arm64 node-v24.14.0 +@contentstack/cli-cm-bootstrap/1.19.7 darwin-arm64 node-v22.21.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND @@ -23,16 +26,6 @@ USAGE ``` -```sh-session -$ npm install -g @contentstack/cli-cm-clone -$ csdx COMMAND -running command... -$ csdx --help [COMMAND] -USAGE - $ csdx COMMAND -... -``` - # Commands diff --git a/packages/contentstack-bootstrap/package.json b/packages/contentstack-bootstrap/package.json index 46c7b8fcb..c940f44a0 100644 --- a/packages/contentstack-bootstrap/package.json +++ b/packages/contentstack-bootstrap/package.json @@ -1,7 +1,7 @@ { "name": "@contentstack/cli-cm-bootstrap", "description": "Bootstrap contentstack apps", - "version": "1.19.6", + "version": "1.19.7", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "scripts": { @@ -16,9 +16,9 @@ "test:report": "nyc --reporter=lcov mocha \"test/**/*.test.js\"" }, "dependencies": { - "@contentstack/cli-cm-seed": "~1.15.6", - "@contentstack/cli-command": "~1.8.3", - "@contentstack/cli-config": "~1.20.4", + "@contentstack/cli-cm-seed": "~1.15.7", + "@contentstack/cli-command": "~1.8.4", + "@contentstack/cli-config": "~1.20.5", "@contentstack/cli-utilities": "~1.18.4", "@oclif/core": "^4.11.4", "inquirer": "8.2.7", @@ -40,7 +40,7 @@ "typescript": "^4.9.5" }, "engines": { - "node": ">=14.0.0" + "node": ">=22.0.0" }, "files": [ "/lib", diff --git a/packages/contentstack-branches/README.md b/packages/contentstack-branches/README.md index 2be983dd7..df8c50b78 100755 --- a/packages/contentstack-branches/README.md +++ b/packages/contentstack-branches/README.md @@ -1,7 +1,7 @@ # @contentstack/cli-cm-branches It is Contentstack’s CLI plugin to compare and merge content. -[![License](https://img.shields.io/npm/l/@contentstack/cli)](https://github.com/contentstack/cli/blob/main/LICENSE) +[![License](https://img.shields.io/npm/l/@contentstack/cli-cm-branches)](https://github.com/contentstack/cli-plugins/blob/main/LICENSE) * [@contentstack/cli-cm-branches](#contentstackcli-cm-branches) @@ -9,24 +9,10 @@ It is Contentstack’s CLI plugin to compare and merge content. * [Commands](#commands) -For switching to EU region update the hosts at config/default.js +To switch regions, use: -```js -{ - host:'https://eu-api.contentstack.com/v3', - cdn: 'https://eu-cdn.contentstack.com/v3', - ... -} -``` - -For switching to AZURE-NA region update the hosts at config/default.js - -```js -{ - host:'https://azure-na-api.contentstack.com/v3', - cdn: 'https://azure-na-cdn.contentstack.com/v3', - ... -} +```sh-session +$ csdx config:set:region [EU | AZURE-NA | AZURE-EU] ``` # Usage @@ -37,7 +23,7 @@ $ npm install -g @contentstack/cli-cm-branches $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-branches/1.8.2 darwin-arm64 node-v24.14.0 +@contentstack/cli-cm-branches/1.8.3 darwin-arm64 node-v22.21.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-branches/package.json b/packages/contentstack-branches/package.json index 18fa0e891..61b641af2 100644 --- a/packages/contentstack-branches/package.json +++ b/packages/contentstack-branches/package.json @@ -1,11 +1,11 @@ { "name": "@contentstack/cli-cm-branches", "description": "Contentstack CLI plugin to do branches operations", - "version": "1.8.2", + "version": "1.8.3", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { - "@contentstack/cli-command": "~1.8.3", + "@contentstack/cli-command": "~1.8.4", "@oclif/core": "^4.11.4", "@contentstack/cli-utilities": "~1.18.4", "chalk": "^4.1.2", @@ -43,7 +43,7 @@ "test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\"" }, "engines": { - "node": ">=14.0.0" + "node": ">=22.0.0" }, "files": [ "/lib", diff --git a/packages/contentstack-bulk-operations/README.md b/packages/contentstack-bulk-operations/README.md index ebcf7abcb..c59b42ad8 100644 --- a/packages/contentstack-bulk-operations/README.md +++ b/packages/contentstack-bulk-operations/README.md @@ -1,10 +1,13 @@ -> **Source of truth:** [cli-plugins](https://github.com/contentstack/cli-plugins) — `packages/contentstack-bulk-operations` (v1 line: `v1-dev` / `v1-beta`) -> Migrated from [cli-bulk-operations](https://github.com/contentstack/cli-plugins/tree/main/packages/contentstack-bulk-operations). See [BULK-OPERATIONS-MIGRATION.md](../../BULK-OPERATIONS-MIGRATION.md). - # @contentstack/cli-bulk-operations > Contentstack CLI plugin for performing bulk operations on your content. + +* [@contentstack/cli-bulk-operations](#contentstackcli-bulk-operations) +* [Usage](#usage) +* [Commands](#commands) + + ## Features - Perform bulk operations on Contentstack content @@ -17,7 +20,21 @@ ```sh-session -# For CLI 1.x:** +$ npm install -g @contentstack/cli-bulk-operations +$ csdx COMMAND +running command... +$ csdx (--version|-v) +@contentstack/cli-bulk-operations/1.2.0 darwin-arm64 node-v22.21.1 +$ csdx --help [COMMAND] +USAGE + $ csdx COMMAND +... +``` + +**For CLI 1.x (plugin install):** + +```sh-session +# For CLI 1.x: # Install Contentstack CLI $ npm install -g @contentstack/cli @@ -33,7 +50,7 @@ csdx plugins:install @contentstack/cli-bulk-operations csdx cm:stacks:bulk-entries --help ``` ```sh-session -# For CLI 2.x:** +# For CLI 2.x: # Install Contentstack CLI $ npm install -g @contentstack/cli @@ -68,7 +85,7 @@ USAGE FLAGS -a, --alias= Uses the name of a saved Management Token to authenticate the command. The command can only access the branches allowed for that token. This option can be used as an - alternative to` --stack-api-key.` + alternative to --stack-api-key. -c, --config= (optional) Specifies the path to a JSON configuration file that defines the options for the command. Use this file instead of passing multiple CLI flags for a single run. @@ -137,7 +154,7 @@ USAGE FLAGS -a, --alias= Uses the name of a saved Management Token to authenticate the command. The command can only access the branches allowed for that token. This option can be used as an - alternative to` --stack-api-key.` + alternative to --stack-api-key. -c, --config= (optional) Specifies the path to a JSON configuration file that defines the options for the command. Use this file instead of passing multiple CLI flags for a single run. @@ -146,8 +163,7 @@ FLAGS -y, --yes Skips interactive confirmation prompts and runs the command immediately using the provided options. Useful for automation and scripts. --api-version= [default: 3.2] Specifies the Content Management API version used for publishing. - Use version `3.2` when publishing entries with nested references, otherwise, use - the default version 3.2 + Use `3.2` (default) for publishing entries with nested references. --branch= [default: main] The name of the branch where you want to perform the bulk publish operation. If you don't mention the branch name, then by default the content from main branch will be published. @@ -222,7 +238,7 @@ USAGE FLAGS -a, --alias= Uses the name of a saved Management Token to authenticate the command. The command can only access the branches allowed for that token. This option can be used as an - alternative to` --stack-api-key.` + alternative to --stack-api-key. -c, --config= (optional) Specifies the path to a JSON configuration file that defines the options for the command. Use this file instead of passing multiple CLI flags for a single run. @@ -280,7 +296,7 @@ _See code: [src/commands/cm/stacks/bulk-taxonomies.ts](https://github.com/conten ## Requirements -- Node.js >= 22 +- Node.js >= 22.21.1 - Contentstack account with API credentials ## Development diff --git a/packages/contentstack-bulk-operations/package.json b/packages/contentstack-bulk-operations/package.json index 4663909c1..58f1e9269 100644 --- a/packages/contentstack-bulk-operations/package.json +++ b/packages/contentstack-bulk-operations/package.json @@ -1,6 +1,6 @@ { "name": "@contentstack/cli-bulk-operations", - "version": "1.2.0", + "version": "1.2.1", "description": "Contentstack CLI plugin for bulk operations", "author": "Contentstack CLI", "homepage": "https://github.com/contentstack/cli-plugins/tree/main/packages/contentstack-bulk-operations", @@ -20,7 +20,7 @@ "/oclif.manifest.json" ], "dependencies": { - "@contentstack/cli-command": "~1.8.3", + "@contentstack/cli-command": "~1.8.4", "@contentstack/cli-utilities": "~1.18.4", "@contentstack/delivery-sdk": "^5.2.1", "@contentstack/management": "^1.30.3", @@ -93,7 +93,7 @@ "clean": "rm -rf ./lib tsconfig.tsbuildinfo oclif.manifest.json" }, "engines": { - "node": ">=20.19.0" + "node": ">=22.0.0" }, "bugs": "https://github.com/contentstack/cli-plugins/issues", "keywords": [ diff --git a/packages/contentstack-bulk-publish/README.md b/packages/contentstack-bulk-publish/README.md index 64c1cd752..2f1726f24 100644 --- a/packages/contentstack-bulk-publish/README.md +++ b/packages/contentstack-bulk-publish/README.md @@ -2,7 +2,7 @@ It is Contentstack’s CLI plugin to perform bulk publish/unpublish operations on entries and assets in Contentstack. Refer to the [Bulk Publish and Unpublish documentation](https://www.contentstack.com/docs/developers/cli/bulk-publish-and-unpublish) to learn more about its commands. -[![License](https://img.shields.io/npm/l/@contentstack/cli)](https://github.com/contentstack/cli/blob/main/LICENSE) +[![License](https://img.shields.io/npm/l/@contentstack/cli)](https://github.com/contentstack/cli-plugins/blob/main/LICENSE) * [@contentstack/cli-cm-bulk-publish](#contentstackcli-cm-bulk-publish) @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-cm-bulk-publish $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-bulk-publish/1.12.0 darwin-arm64 node-v24.14.0 +@contentstack/cli-cm-bulk-publish/1.12.1 darwin-arm64 node-v22.21.1 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-bulk-publish/package.json b/packages/contentstack-bulk-publish/package.json index fc6f5062c..495563f75 100644 --- a/packages/contentstack-bulk-publish/package.json +++ b/packages/contentstack-bulk-publish/package.json @@ -1,12 +1,12 @@ { "name": "@contentstack/cli-cm-bulk-publish", "description": "Contentstack CLI plugin for bulk publish actions", - "version": "1.12.0", + "version": "1.12.1", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { - "@contentstack/cli-command": "~1.8.3", - "@contentstack/cli-config": "~1.20.4", + "@contentstack/cli-command": "~1.8.4", + "@contentstack/cli-config": "~1.20.5", "@contentstack/cli-utilities": "~1.18.4", "@oclif/core": "^4.11.4", "chalk": "^4.1.2", @@ -25,7 +25,7 @@ "oclif": "^4.23.8" }, "engines": { - "node": ">=14.0.0" + "node": ">=22.0.0" }, "files": [ "/npm-shrinkwrap.json", diff --git a/packages/contentstack-cli-cm-regex-validate/README.md b/packages/contentstack-cli-cm-regex-validate/README.md index 7663fc999..54af372cc 100644 --- a/packages/contentstack-cli-cm-regex-validate/README.md +++ b/packages/contentstack-cli-cm-regex-validate/README.md @@ -6,9 +6,9 @@ Using the CLI “Regex Validation” plugin, you can find the invalid regexes wi and rectify them. [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io) -[![Version](https://img.shields.io/npm/v/cli-cm-regex-validate.svg)](https://npmjs.org/package/cli-cm-regex-validate) -[![Downloads/week](https://img.shields.io/npm/dw/cli-cm-regex-validate.svg)](https://npmjs.org/package/cli-cm-regex-validate) -[![License](https://img.shields.io/npm/l/cli-cm-regex-validate.svg)](https://github.com/contentstack/cli-cm-regex-validate/blob/master/package.json) +[![Version](https://img.shields.io/npm/v/@contentstack/cli-cm-regex-validate.svg)](https://npmjs.org/package/@contentstack/cli-cm-regex-validate) +[![Downloads/week](https://img.shields.io/npm/dw/@contentstack/cli-cm-regex-validate.svg)](https://npmjs.org/package/@contentstack/cli-cm-regex-validate) +[![License](https://img.shields.io/npm/l/@contentstack/cli-cm-regex-validate.svg)](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-cli-cm-regex-validate/package.json) * [Regex Validation CLI Plugin](#regex-validation-cli-plugin) @@ -18,18 +18,18 @@ and rectify them. # Usage - + #### Step 1: ```sh-session $ npm install -g @contentstack/cli -$ csdx plugins:install https://github.com/contentstack/cli-cm-regex-validate/releases/download/v1.2.1/contentstack-cli-cm-regex-validate-1.2.1.tgz +$ csdx plugins:install @contentstack/cli-cm-regex-validate $ csdx plugins running command... -@contentstack/cli-cm-regex-validate/1.2.1 darwin-arm64 node-v20.8.0 +@contentstack/cli-cm-regex-validate/1.2.1 darwin-arm64 node-v22.21.1 $ csdx --help [COMMAND] USAGE @@ -41,7 +41,7 @@ USAGE [Set the region](https://www.contentstack.com/docs/developers/cli/configure-regions-in-the-cli#set-region) - + #### Step 3: @@ -87,5 +87,5 @@ EXAMPLES $ csdx cm:stacks:validate-regex -a -c -g -f ``` -_See code: [src/commands/cm/stacks/validate-regex.ts](https://github.com/contentstack/cli-cm-regex-validate/blob/v1.2.6/src/commands/cm/stacks/validate-regex.ts)_ +_See code: [src/commands/cm/stacks/validate-regex.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-cli-cm-regex-validate/src/commands/cm/stacks/validate-regex.ts)_ diff --git a/packages/contentstack-cli-cm-regex-validate/package.json b/packages/contentstack-cli-cm-regex-validate/package.json index c89301086..9a9b936a7 100644 --- a/packages/contentstack-cli-cm-regex-validate/package.json +++ b/packages/contentstack-cli-cm-regex-validate/package.json @@ -1,12 +1,12 @@ { "name": "@contentstack/cli-cm-regex-validate", "description": "Validate Fields with Regex Property of Content Type and Global Field in a Stack", - "version": "1.0.0", + "version": "1.0.1", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli-cm-regex-validate/issues", "devDependencies": { - "@babel/preset-env": "^7.29.5", - "@oclif/plugin-help": "^6.2.49", + "@babel/preset-env": "^7.29.7", + "@oclif/plugin-help": "^6.2.52", "@oclif/test": "^3.2.15", "@types/chai": "^4.3.20", "@types/jest": "^30.0.0", @@ -24,13 +24,14 @@ "husky": "^9.1.7", "mocha": "^10.8.2", "nyc": "^15.1.0", - "oclif": "^4.23.8", - "ts-jest": "^29.4.9", + "oclif": "^4.23.21", + "ts-jest": "^29.4.11", "ts-node": "^10.9.2", - "typescript": "^5.9.3" + "typescript": "^5.9.3", + "jest": "^30.4.2" }, "engines": { - "node": ">=14.0.0" + "node": ">=22.0.0" }, "files": [ "/lib", @@ -70,7 +71,6 @@ "cli-table3": "^0.6.5", "cli-ux": "^6.0.9", "inquirer": "12.11.1", - "jest": "^30.4.2", "jsonexport": "^3.2.0", "safe-regex": "^2.1.1", "tslib": "^2.8.1" @@ -83,4 +83,4 @@ "overrides": { "tmp": "^0.2.7" } -} +} \ No newline at end of file diff --git a/packages/contentstack-cli-tsgen/README.md b/packages/contentstack-cli-tsgen/README.md index 0522459e6..b5518958b 100644 --- a/packages/contentstack-cli-tsgen/README.md +++ b/packages/contentstack-cli-tsgen/README.md @@ -1,4 +1,6 @@ -![npm](https://img.shields.io/npm/v/contentstack-cli-tsgen) +# @contentstack/contentstack-cli-tsgen + +[![npm](https://img.shields.io/npm/v/contentstack-cli-tsgen)](https://npmjs.org/package/@contentstack/contentstack-cli-tsgen) ## Description @@ -15,7 +17,7 @@ $ csdx plugins:install contentstack-cli-tsgen ## Migration -- **Monorepo move (4.10.0):** See [TSGEN-MIGRATION.md](../../TSGEN-MIGRATION.md) and [MIGRATION.md](./MIGRATION.md). +- **Monorepo move (4.10.0):** See [MIGRATION.md](./MIGRATION.md). - **Older plugin versions:** See [MIGRATION.md](./MIGRATION.md) for v3→v4 schema changes. ## How to use this plugin @@ -24,23 +26,52 @@ $ csdx plugins:install contentstack-cli-tsgen generate TypeScript typings from a Stack + +* [`csdx tsgen`](#csdx-tsgen) + +## `csdx tsgen` + +Generate TypeScript typings from a Stack + ``` USAGE - $ csdx tsgen - -OPTIONS - -a, --token-alias=token-alias (required) delivery token alias - -d, --[no-]doc include documentation comments - -o, --output=output (required) full path to output - -p, --prefix=prefix interface prefix, e.g. "I" + $ csdx tsgen -a -o [-p ] [-d] [--branch ] [--include-system-fields] + [--include-editable-tags] [--include-referenced-entry] [--api-type rest|graphql] [--namespace ] + +FLAGS + -a, --token-alias= (required) delivery token alias + -d, --[no-]doc include documentation comments + -o, --output= (required) full path to output + -p, --prefix= interface prefix, e.g. "I" + --api-type=