diff --git a/package-lock.json b/package-lock.json index 982ce10ec3..d2e5c200d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22875,25 +22875,25 @@ }, "packages/contentstack": { "name": "@contentstack/cli", - "version": "1.11.1", + "version": "1.11.2", "license": "MIT", "dependencies": { "@contentstack/cli-audit": "~1.3.0", "@contentstack/cli-auth": "~1.3.17", - "@contentstack/cli-cm-bootstrap": "~1.6.3", - "@contentstack/cli-cm-branches": "~1.0.17", + "@contentstack/cli-cm-bootstrap": "~1.7.0", + "@contentstack/cli-cm-branches": "~1.0.18", "@contentstack/cli-cm-bulk-publish": "~1.3.15", - "@contentstack/cli-cm-clone": "~1.7.1", - "@contentstack/cli-cm-export": "~1.10.1", + "@contentstack/cli-cm-clone": "~1.8.0", + "@contentstack/cli-cm-export": "~1.10.2", "@contentstack/cli-cm-export-to-csv": "~1.6.1", - "@contentstack/cli-cm-import": "~1.11.1", + "@contentstack/cli-cm-import": "~1.12.0", "@contentstack/cli-cm-migrate-rte": "~1.4.15", - "@contentstack/cli-cm-seed": "~1.6.3", + "@contentstack/cli-cm-seed": "~1.7.0", "@contentstack/cli-command": "~1.2.16", "@contentstack/cli-config": "~1.4.15", "@contentstack/cli-launch": "~1.0.15", "@contentstack/cli-migration": "~1.4.1", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@contentstack/management": "~1.12.0", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5", @@ -22947,7 +22947,7 @@ "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/plugin-help": "^5", "@oclif/plugin-plugins": "^3.8.4", "chalk": "^4.1.2", @@ -23647,7 +23647,7 @@ "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "chalk": "^4.0.0", "debug": "^4.1.1", "inquirer": "8.2.4", @@ -23684,12 +23684,12 @@ }, "packages/contentstack-bootstrap": { "name": "@contentstack/cli-cm-bootstrap", - "version": "1.6.3", + "version": "1.7.0", "license": "MIT", "dependencies": { - "@contentstack/cli-cm-seed": "~1.6.3", + "@contentstack/cli-cm-seed": "~1.7.0", "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "inquirer": "8.2.4", "mkdirp": "^1.0.4", "tar": "^6.1.13" @@ -23763,11 +23763,11 @@ }, "packages/contentstack-branches": { "name": "@contentstack/cli-cm-branches", - "version": "1.0.17", + "version": "1.0.18", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/core": "^2.9.3", "async": "^3.2.4", "big-json": "^3.2.0", @@ -23828,7 +23828,7 @@ "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "bluebird": "^3.7.2", "chalk": "^4.1.2", "dotenv": "^16.1.4", @@ -23873,14 +23873,14 @@ }, "packages/contentstack-clone": { "name": "@contentstack/cli-cm-clone", - "version": "1.7.1", + "version": "1.8.0", "license": "MIT", "dependencies": { "@colors/colors": "^1.5.0", - "@contentstack/cli-cm-export": "~1.10.1", - "@contentstack/cli-cm-import": "~1.11.1", + "@contentstack/cli-cm-export": "~1.10.2", + "@contentstack/cli-cm-import": "~1.12.0", "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "async": "^3.2.4", "chalk": "^4.1.0", "child_process": "^1.0.2", @@ -23938,7 +23938,7 @@ "version": "1.2.16", "license": "MIT", "dependencies": { - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "contentstack": "^3.10.1" }, "devDependencies": { @@ -24013,7 +24013,7 @@ "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "chalk": "^4.0.0", "debug": "^4.1.1", "inquirer": "8.2.4", @@ -24297,11 +24297,11 @@ }, "packages/contentstack-export": { "name": "@contentstack/cli-cm-export", - "version": "1.10.1", + "version": "1.10.2", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/core": "^2.9.3", "async": "^3.2.4", "big-json": "^3.2.0", @@ -24351,7 +24351,7 @@ "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "chalk": "^4.1.0", "fast-csv": "^4.3.6", "inquirer": "8.2.4", @@ -24771,11 +24771,11 @@ }, "packages/contentstack-import": { "name": "@contentstack/cli-cm-import", - "version": "1.11.1", + "version": "1.12.0", "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@contentstack/management": "~1.12.0", "@oclif/core": "^2.9.3", "axios": "^1.6.0", @@ -24790,6 +24790,7 @@ "mkdirp": "^1.0.4", "promise-limit": "^2.7.0", "tslib": "^2.4.1", + "uuid": "^9.0.0", "winston": "^3.7.2" }, "devDependencies": { @@ -24909,7 +24910,7 @@ "dependencies": { "@apollo/client": "^3.7.9", "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5", "@oclif/plugin-plugins": "^3.3.0", @@ -25399,7 +25400,7 @@ "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@contentstack/json-rte-serializer": "~2.0.4", "chalk": "^4.1.2", "collapse-whitespace": "^1.1.7", @@ -25438,7 +25439,7 @@ "license": "MIT", "dependencies": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "async": "^3.2.4", "callsites": "^3.1.0", "cardinal": "^2.1.1", @@ -25467,12 +25468,12 @@ }, "packages/contentstack-seed": { "name": "@contentstack/cli-cm-seed", - "version": "1.6.3", + "version": "1.7.0", "license": "MIT", "dependencies": { - "@contentstack/cli-cm-import": "~1.11.1", + "@contentstack/cli-cm-import": "~1.12.0", "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "inquirer": "8.2.4", "mkdirp": "^1.0.4", "tar": "^6.1.13", @@ -25548,7 +25549,7 @@ }, "packages/contentstack-utilities": { "name": "@contentstack/cli-utilities", - "version": "1.5.7", + "version": "1.5.8", "license": "MIT", "dependencies": { "@contentstack/management": "~1.12.0", @@ -26636,6 +26637,102 @@ "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", "dev": true + }, + "packages/contentstack/node_modules/@contentstack/cli-cm-clone/node_modules/@contentstack/cli-cm-import": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@contentstack/cli-cm-import/-/cli-cm-import-1.10.0.tgz", + "integrity": "sha512-Jn9grDE2J1c4iGBcPv24Q8lj/ozgfD9QNbJcn+1a6oGjA6OE+a39agQwi04nByBw4xRtbLUmHa4nfFRaF7qkvQ==", + "extraneous": true, + "dependencies": { + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", + "@contentstack/management": "~1.10.2", + "@oclif/core": "^2.9.3", + "big-json": "^3.2.0", + "bluebird": "^3.7.2", + "chalk": "^4.1.2", + "debug": "^4.1.0", + "fs-extra": "^11.1.1", + "lodash": "^4.17.20", + "marked": "^4.0.17", + "merge": "^2.1.1", + "mkdirp": "^1.0.4", + "promise-limit": "^2.7.0", + "tslib": "^2.4.1", + "winston": "^3.7.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "packages/contentstack/node_modules/@contentstack/cli-cm-clone/node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "extraneous": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "packages/contentstack/node_modules/@contentstack/cli-cm-seed/node_modules/@contentstack/cli-cm-import": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@contentstack/cli-cm-import/-/cli-cm-import-1.10.0.tgz", + "integrity": "sha512-Jn9grDE2J1c4iGBcPv24Q8lj/ozgfD9QNbJcn+1a6oGjA6OE+a39agQwi04nByBw4xRtbLUmHa4nfFRaF7qkvQ==", + "extraneous": true, + "dependencies": { + "@contentstack/cli-command": "~1.2.14", + "@contentstack/cli-utilities": "~1.5.4", + "@contentstack/management": "~1.10.2", + "@oclif/core": "^2.9.3", + "big-json": "^3.2.0", + "bluebird": "^3.7.2", + "chalk": "^4.1.2", + "debug": "^4.1.0", + "fs-extra": "^11.1.1", + "lodash": "^4.17.20", + "marked": "^4.0.17", + "merge": "^2.1.1", + "mkdirp": "^1.0.4", + "promise-limit": "^2.7.0", + "tslib": "^2.4.1", + "winston": "^3.7.2" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "packages/contentstack/node_modules/@contentstack/management": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/@contentstack/management/-/management-1.11.0.tgz", + "integrity": "sha512-tv4At2Q5iGgkzL1MFGil/o36URKZfO6DY/KtpNJFYjmTHitZNv7uotH8OXkOPBMxB4xz58SG58lWB6fNTkLrpw==", + "dependencies": { + "axios": "^1.5.1", + "form-data": "^3.0.1", + "lodash": "^4.17.21", + "qs": "^6.11.2" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "packages/contentstack/node_modules/form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } } }, "dependencies": { @@ -27212,20 +27309,20 @@ "requires": { "@contentstack/cli-audit": "~1.3.0", "@contentstack/cli-auth": "~1.3.17", - "@contentstack/cli-cm-bootstrap": "~1.6.3", - "@contentstack/cli-cm-branches": "~1.0.17", + "@contentstack/cli-cm-bootstrap": "~1.7.0", + "@contentstack/cli-cm-branches": "~1.0.18", "@contentstack/cli-cm-bulk-publish": "~1.3.15", - "@contentstack/cli-cm-clone": "~1.7.1", - "@contentstack/cli-cm-export": "~1.10.1", + "@contentstack/cli-cm-clone": "~1.8.0", + "@contentstack/cli-cm-export": "~1.10.2", "@contentstack/cli-cm-export-to-csv": "~1.6.1", - "@contentstack/cli-cm-import": "~1.11.1", + "@contentstack/cli-cm-import": "~1.12.0", "@contentstack/cli-cm-migrate-rte": "~1.4.15", - "@contentstack/cli-cm-seed": "~1.6.3", + "@contentstack/cli-cm-seed": "~1.7.0", "@contentstack/cli-command": "~1.2.16", "@contentstack/cli-config": "~1.4.15", "@contentstack/cli-launch": "~1.0.15", "@contentstack/cli-migration": "~1.4.1", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@contentstack/management": "~1.12.0", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5", @@ -27263,6 +27360,28 @@ "typescript": "^4.9.3", "uuid": "^9.0.0", "winston": "^3.7.2" + }, + "dependencies": { + "@contentstack/management": { + "version": "https://registry.npmjs.org/@contentstack/management/-/management-1.11.0.tgz", + "integrity": "sha512-tv4At2Q5iGgkzL1MFGil/o36URKZfO6DY/KtpNJFYjmTHitZNv7uotH8OXkOPBMxB4xz58SG58lWB6fNTkLrpw==", + "requires": { + "axios": "^1.5.1", + "form-data": "^3.0.1", + "lodash": "^4.17.21", + "qs": "^6.11.2" + } + }, + "form-data": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", + "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + } } }, "@contentstack/cli-audit": { @@ -27270,7 +27389,7 @@ "requires": { "@contentstack/cli-command": "~1.2.16", "@contentstack/cli-dev-dependencies": "^1.2.4", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/plugin-help": "^5", "@oclif/plugin-plugins": "^3.8.4", "@oclif/test": "^2.0.3", @@ -27783,7 +27902,7 @@ "version": "file:packages/contentstack-auth", "requires": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@fancy-test/nock": "^0.1.1", "@oclif/plugin-help": "^5.1.19", "@oclif/test": "^2.2.10", @@ -27816,9 +27935,9 @@ "@contentstack/cli-cm-bootstrap": { "version": "file:packages/contentstack-bootstrap", "requires": { - "@contentstack/cli-cm-seed": "~1.6.3", + "@contentstack/cli-cm-seed": "~1.7.0", "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/test": "^2.2.10", "@types/inquirer": "^9.0.3", "@types/mkdirp": "^1.0.1", @@ -27879,7 +27998,7 @@ "@contentstack/cli-command": "~1.2.16", "@contentstack/cli-config": "~1.4.15", "@contentstack/cli-dev-dependencies": "~1.2.4", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5.1.19", "@oclif/test": "^1.2.6", @@ -27929,7 +28048,7 @@ "version": "file:packages/contentstack-bulk-publish", "requires": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/test": "^1.2.6", "bluebird": "^3.7.2", "chai": "^4.2.0", @@ -27970,10 +28089,10 @@ "version": "file:packages/contentstack-clone", "requires": { "@colors/colors": "^1.5.0", - "@contentstack/cli-cm-export": "~1.10.1", - "@contentstack/cli-cm-import": "~1.11.1", + "@contentstack/cli-cm-export": "~1.10.2", + "@contentstack/cli-cm-import": "~1.12.0", "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/test": "^1.2.7", "async": "^3.2.4", "chai": "^4.2.0", @@ -28021,7 +28140,7 @@ "@contentstack/cli-command": "~1.2.16", "@contentstack/cli-config": "~1.4.15", "@contentstack/cli-dev-dependencies": "~1.2.4", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5.1.19", "@oclif/test": "^1.2.6", @@ -28072,7 +28191,7 @@ "version": "file:packages/contentstack-export-to-csv", "requires": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/test": "^2.2.10", "@types/chai": "^4.3.6", "@types/mocha": "^10.0.1", @@ -28395,7 +28514,7 @@ "version": "file:packages/contentstack-import", "requires": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@contentstack/management": "~1.12.0", "@oclif/core": "^2.9.3", "@oclif/test": "^1.2.6", @@ -28433,6 +28552,7 @@ "ts-node": "^10.9.1", "tslib": "^2.4.1", "typescript": "^4.9.3", + "uuid": "^9.0.0", "winston": "^3.7.2" }, "dependencies": { @@ -28513,7 +28633,7 @@ "version": "file:packages/contentstack-migrate-rte", "requires": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@contentstack/json-rte-serializer": "~2.0.4", "@oclif/test": "^2.2.10", "chai": "^4.3.4", @@ -28546,9 +28666,9 @@ "@contentstack/cli-cm-seed": { "version": "file:packages/contentstack-seed", "requires": { - "@contentstack/cli-cm-import": "~1.11.1", + "@contentstack/cli-cm-import": "~1.12.0", "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/plugin-help": "^5.1.19", "@types/inquirer": "^9.0.3", "@types/jest": "^26.0.15", @@ -28607,7 +28727,7 @@ "@contentstack/cli-command": { "version": "file:packages/contentstack-command", "requires": { - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/test": "^2.2.10", "@types/chai": "^4.2.18", "@types/mkdirp": "^1.0.1", @@ -28662,7 +28782,7 @@ "version": "file:packages/contentstack-config", "requires": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/test": "^2.2.10", "@types/chai": "^4.2.18", "@types/inquirer": "^9.0.3", @@ -28894,7 +29014,7 @@ "requires": { "@apollo/client": "^3.7.9", "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/core": "^2.9.3", "@oclif/plugin-help": "^5", "@oclif/plugin-plugins": "^3.3.0", @@ -29238,7 +29358,7 @@ "version": "file:packages/contentstack-migration", "requires": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/test": "^2.2.10", "async": "^3.2.4", "callsites": "^3.1.0", diff --git a/packages/contentstack-audit/README.md b/packages/contentstack-audit/README.md index 3762c6e540..245e286a8d 100644 --- a/packages/contentstack-audit/README.md +++ b/packages/contentstack-audit/README.md @@ -19,7 +19,7 @@ $ npm install -g @contentstack/cli-audit $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/cli-audit/1.2.1 darwin-arm64 node-v21.1.0 +@contentstack/cli-audit/1.3.0 darwin-arm64 node-v20.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-audit/package.json b/packages/contentstack-audit/package.json index 061c49672b..882a90c242 100644 --- a/packages/contentstack-audit/package.json +++ b/packages/contentstack-audit/package.json @@ -19,7 +19,7 @@ ], "dependencies": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/plugin-help": "^5", "@oclif/plugin-plugins": "^3.8.4", "chalk": "^4.1.2", diff --git a/packages/contentstack-auth/README.md b/packages/contentstack-auth/README.md index 254ddc82d9..5e3815eaaf 100644 --- a/packages/contentstack-auth/README.md +++ b/packages/contentstack-auth/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-auth $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-auth/1.3.16 darwin-arm64 node-v21.1.0 +@contentstack/cli-auth/1.3.17 darwin-arm64 node-v20.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-auth/package.json b/packages/contentstack-auth/package.json index 166b507c37..542b62f552 100644 --- a/packages/contentstack-auth/package.json +++ b/packages/contentstack-auth/package.json @@ -23,7 +23,7 @@ }, "dependencies": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "chalk": "^4.0.0", "debug": "^4.1.1", "inquirer": "8.2.4", diff --git a/packages/contentstack-bootstrap/README.md b/packages/contentstack-bootstrap/README.md index 430075dfb0..6a14b04412 100644 --- a/packages/contentstack-bootstrap/README.md +++ b/packages/contentstack-bootstrap/README.md @@ -15,7 +15,7 @@ $ npm install -g @contentstack/cli-cm-bootstrap $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-bootstrap/1.6.2 darwin-arm64 node-v20.8.0 +@contentstack/cli-cm-bootstrap/1.7.0 darwin-arm64 node-v20.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-bootstrap/package.json b/packages/contentstack-bootstrap/package.json index 17d421aedc..952117d1ff 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.6.3", + "version": "1.7.0", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "scripts": { @@ -17,9 +17,9 @@ "test:report": "nyc --reporter=lcov mocha \"test/**/*.test.js\"" }, "dependencies": { - "@contentstack/cli-cm-seed": "~1.6.3", + "@contentstack/cli-cm-seed": "~1.7.0", "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "inquirer": "8.2.4", "mkdirp": "^1.0.4", "tar": "^6.1.13" diff --git a/packages/contentstack-branches/README.md b/packages/contentstack-branches/README.md index c35f9b98d1..0a929cc3a2 100755 --- a/packages/contentstack-branches/README.md +++ b/packages/contentstack-branches/README.md @@ -37,7 +37,7 @@ $ npm install -g @contentstack/cli-cm-branches $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-branches/1.0.16 darwin-arm64 node-v21.1.0 +@contentstack/cli-cm-branches/1.0.18 darwin-arm64 node-v20.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-branches/package.json b/packages/contentstack-branches/package.json index 1444b8bdeb..63351ba072 100644 --- a/packages/contentstack-branches/package.json +++ b/packages/contentstack-branches/package.json @@ -1,12 +1,12 @@ { "name": "@contentstack/cli-cm-branches", "description": "Contentstack CLI plugin to do branches operations", - "version": "1.0.17", + "version": "1.0.18", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/core": "^2.9.3", "async": "^3.2.4", "big-json": "^3.2.0", diff --git a/packages/contentstack-branches/src/utils/create-merge-scripts.ts b/packages/contentstack-branches/src/utils/create-merge-scripts.ts index 9112abe615..239cb86a27 100644 --- a/packages/contentstack-branches/src/utils/create-merge-scripts.ts +++ b/packages/contentstack-branches/src/utils/create-merge-scripts.ts @@ -1,5 +1,5 @@ import fs from 'fs'; -import { cliux } from '@contentstack/cli-utilities'; +import { cliux, formatTime, formatDate } from '@contentstack/cli-utilities'; import { entryCreateScript } from './entry-create-script'; import { entryUpdateScript } from './entry-update-script'; import { entryCreateUpdateScript } from './entry-create-update-script'; @@ -74,9 +74,7 @@ export function getContentTypeMergeStatus(status) { export function createMergeScripts(contentType: CreateMergeScriptsProps, mergeJobUID: string, content?: any) { const date = new Date(); const rootFolder = 'merge_scripts'; - const fileCreatedAt = `${date.getFullYear()}${ - date.getMonth().toString.length === 1 ? `0${date.getMonth() + 1}` : date.getMonth() + 1 - }${date.getUTCDate()}${date.getHours()}${date.getMinutes()}${date.getSeconds()}`; + const fileCreatedAt = `${formatDate(date)}${formatTime(date)}`; const mergeScriptsSlug = `merge_scripts_${mergeJobUID}_${fileCreatedAt}`; const fullPath = `${rootFolder}/${mergeScriptsSlug}`; diff --git a/packages/contentstack-bulk-publish/README.md b/packages/contentstack-bulk-publish/README.md index 8f011468ea..9784e8177e 100644 --- a/packages/contentstack-bulk-publish/README.md +++ b/packages/contentstack-bulk-publish/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-cm-bulk-publish $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-bulk-publish/1.3.14 darwin-arm64 node-v21.1.0 +@contentstack/cli-cm-bulk-publish/1.3.15 darwin-arm64 node-v20.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-bulk-publish/package.json b/packages/contentstack-bulk-publish/package.json index 087fe585ea..a0d33e09a8 100644 --- a/packages/contentstack-bulk-publish/package.json +++ b/packages/contentstack-bulk-publish/package.json @@ -6,7 +6,7 @@ "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "bluebird": "^3.7.2", "chalk": "^4.1.2", "dotenv": "^16.1.4", diff --git a/packages/contentstack-clone/README.md b/packages/contentstack-clone/README.md index b93bca2f5e..314222b625 100644 --- a/packages/contentstack-clone/README.md +++ b/packages/contentstack-clone/README.md @@ -16,7 +16,7 @@ $ npm install -g @contentstack/cli-cm-clone $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-clone/1.7.0 darwin-arm64 node-v20.8.0 +@contentstack/cli-cm-clone/1.8.0 darwin-arm64 node-v20.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-clone/package.json b/packages/contentstack-clone/package.json index 67d56bae74..f671d49073 100644 --- a/packages/contentstack-clone/package.json +++ b/packages/contentstack-clone/package.json @@ -1,14 +1,14 @@ { "name": "@contentstack/cli-cm-clone", "description": "Contentstack stack clone plugin", - "version": "1.7.1", + "version": "1.8.0", "author": "Contentstack", "bugs": "https://github.com/rohitmishra209/cli-cm-clone/issues", "dependencies": { - "@contentstack/cli-cm-export": "~1.10.1", - "@contentstack/cli-cm-import": "~1.11.1", + "@contentstack/cli-cm-export": "~1.10.2", + "@contentstack/cli-cm-import": "~1.12.0", "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@colors/colors": "^1.5.0", "async": "^3.2.4", "chalk": "^4.1.0", diff --git a/packages/contentstack-command/package.json b/packages/contentstack-command/package.json index 75b865f9ca..c3b18fb787 100644 --- a/packages/contentstack-command/package.json +++ b/packages/contentstack-command/package.json @@ -17,7 +17,7 @@ "format": "eslint src/**/*.ts --fix" }, "dependencies": { - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "contentstack": "^3.10.1" }, "devDependencies": { diff --git a/packages/contentstack-config/README.md b/packages/contentstack-config/README.md index 9342c8b605..ac9ca0d0e8 100644 --- a/packages/contentstack-config/README.md +++ b/packages/contentstack-config/README.md @@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-config $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-config/1.4.14 darwin-arm64 node-v21.1.0 +@contentstack/cli-config/1.4.15 darwin-arm64 node-v20.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-config/package.json b/packages/contentstack-config/package.json index dcc1484cfc..853f5ac28b 100644 --- a/packages/contentstack-config/package.json +++ b/packages/contentstack-config/package.json @@ -22,7 +22,7 @@ }, "dependencies": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "chalk": "^4.0.0", "debug": "^4.1.1", "inquirer": "8.2.4", diff --git a/packages/contentstack-export-to-csv/package.json b/packages/contentstack-export-to-csv/package.json index f072a6ce07..24d4610770 100644 --- a/packages/contentstack-export-to-csv/package.json +++ b/packages/contentstack-export-to-csv/package.json @@ -6,7 +6,7 @@ "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "chalk": "^4.1.0", "fast-csv": "^4.3.6", "inquirer": "8.2.4", diff --git a/packages/contentstack-export/README.md b/packages/contentstack-export/README.md index afa34c0939..4b7160eaf0 100755 --- a/packages/contentstack-export/README.md +++ b/packages/contentstack-export/README.md @@ -48,7 +48,7 @@ $ npm install -g @contentstack/cli-cm-export $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-export/1.10.1 darwin-arm64 node-v20.8.0 +@contentstack/cli-cm-export/1.10.2 darwin-arm64 node-v20.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-export/package.json b/packages/contentstack-export/package.json index 954fdb9dff..9f4ec34c84 100644 --- a/packages/contentstack-export/package.json +++ b/packages/contentstack-export/package.json @@ -1,12 +1,12 @@ { "name": "@contentstack/cli-cm-export", "description": "Contentstack CLI plugin to export content from stack", - "version": "1.10.1", + "version": "1.10.2", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@oclif/core": "^2.9.3", "async": "^3.2.4", "big-json": "^3.2.0", diff --git a/packages/contentstack-export/src/utils/export-config-handler.ts b/packages/contentstack-export/src/utils/export-config-handler.ts index 0f7a107048..c1e15291f0 100644 --- a/packages/contentstack-export/src/utils/export-config-handler.ts +++ b/packages/contentstack-export/src/utils/export-config-handler.ts @@ -23,7 +23,7 @@ const setupConfig = async (exportCmdFlags: any): Promise => { const managementTokenAlias = exportCmdFlags['management-token-alias'] || exportCmdFlags['alias']; if (managementTokenAlias) { - const { token, apiKey } = configHandler.get(`tokens.${managementTokenAlias}`); + const { token, apiKey } = configHandler.get(`tokens.${managementTokenAlias}`) || {}; config.management_token = token; config.apiKey = apiKey; if (!config.management_token) { diff --git a/packages/contentstack-import/README.md b/packages/contentstack-import/README.md index 960b49f1de..663f9e16e5 100644 --- a/packages/contentstack-import/README.md +++ b/packages/contentstack-import/README.md @@ -47,7 +47,7 @@ $ npm install -g @contentstack/cli-cm-import $ csdx COMMAND running command... $ csdx (--version) -@contentstack/cli-cm-import/1.11.0 darwin-arm64 node-v20.8.0 +@contentstack/cli-cm-import/1.12.0 darwin-arm64 node-v20.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-import/package.json b/packages/contentstack-import/package.json index ab57b7042f..93bd9cea54 100644 --- a/packages/contentstack-import/package.json +++ b/packages/contentstack-import/package.json @@ -1,12 +1,12 @@ { "name": "@contentstack/cli-cm-import", "description": "Contentstack CLI plugin to import content into stack", - "version": "1.11.1", + "version": "1.12.0", "author": "Contentstack", "bugs": "https://github.com/contentstack/cli/issues", "dependencies": { "@contentstack/cli-command": "~1.2.16", - "@contentstack/cli-utilities": "~1.5.7", + "@contentstack/cli-utilities": "~1.5.8", "@contentstack/management": "~1.12.0", "@oclif/core": "^2.9.3", "axios": "^1.6.0", @@ -21,7 +21,8 @@ "mkdirp": "^1.0.4", "promise-limit": "^2.7.0", "tslib": "^2.4.1", - "winston": "^3.7.2" + "winston": "^3.7.2", + "uuid": "^9.0.0" }, "devDependencies": { "@oclif/test": "^1.2.6", @@ -97,4 +98,4 @@ } }, "repository": "https://github.com/contentstack/cli" -} +} \ No newline at end of file diff --git a/packages/contentstack-import/src/commands/cm/stacks/import.ts b/packages/contentstack-import/src/commands/cm/stacks/import.ts index 45bf0ccc3a..aa183229bc 100644 --- a/packages/contentstack-import/src/commands/cm/stacks/import.ts +++ b/packages/contentstack-import/src/commands/cm/stacks/import.ts @@ -97,7 +97,6 @@ export default class ImportCommand extends Command { 'replace-existing': flags.boolean({ required: false, description: 'Replaces the existing module in the target stack.', - dependsOn: ['module'], }), 'skip-existing': flags.boolean({ required: false, diff --git a/packages/contentstack-import/src/import/module-importer.ts b/packages/contentstack-import/src/import/module-importer.ts index 1f1a09fd41..f92999429b 100755 --- a/packages/contentstack-import/src/import/module-importer.ts +++ b/packages/contentstack-import/src/import/module-importer.ts @@ -1,4 +1,4 @@ -import { ContentstackClient, HttpClient } from '@contentstack/cli-utilities'; +import { addLocale, ContentstackClient } from '@contentstack/cli-utilities'; import startModuleImport from './modules'; import startJSModuleImport from './modules-js'; @@ -26,19 +26,9 @@ class ModuleImporter { // Temporarily adding this api call to verify management token has read and write permissions // TODO: CS-40354 - CLI | import rewrite | Migrate HTTP call to SDK call once fix is ready from SDK side - const httpClient = new HttpClient({ - headers: { api_key: this.importConfig.apiKey, authorization: this.importConfig.management_token }, - }); - - const { data } = await httpClient.post(`https://${this.importConfig.host}/v3/locales`, { - locale: { - name: 'English', - code: 'en-us', - }, - }); - if (data.error_code === 161) { - throw new Error(data.error_message); + if (this.importConfig.management_token) { + await addLocale(this.importConfig.apiKey, this.importConfig.management_token, this.importConfig.host); } if (!this.importConfig.master_locale) { diff --git a/packages/contentstack-import/src/import/modules/assets.ts b/packages/contentstack-import/src/import/modules/assets.ts index 8b048da5bf..a379f42b20 100644 --- a/packages/contentstack-import/src/import/modules/assets.ts +++ b/packages/contentstack-import/src/import/modules/assets.ts @@ -7,11 +7,12 @@ import isEmpty from 'lodash/isEmpty'; import uniq from 'lodash/uniq'; import { existsSync } from 'node:fs'; import includes from 'lodash/includes'; +import { v4 as uuid } from 'uuid'; import { resolve as pResolve, join } from 'node:path'; import { FsUtility } from '@contentstack/cli-utilities'; import config from '../../config'; -import { log, formatError } from '../../utils'; +import { log, formatError, formatDate } from '../../utils'; import BaseClass, { ApiOptions } from './base-class'; import { ModuleClassParams } from '../../types'; @@ -28,6 +29,7 @@ export default class ImportAssets extends BaseClass { private assetsUidMap: Record = {}; private assetsUrlMap: Record = {}; private assetsFolderMap: Record = {}; + private rootFolder: { uid: string; name: string; parent_uid: string; created_at: string }; constructor({ importConfig, stackAPIClient }: ModuleClassParams) { super({ importConfig, stackAPIClient }); @@ -227,6 +229,9 @@ export default class ImportAssets extends BaseClass { if (asset.parent_uid) { asset.parent_uid = this.assetsFolderMap[asset.parent_uid]; + } else if (this.importConfig.replaceExisting) { + // adds the root folder as parent for all assets in the root level + asset.parent_uid = this.assetsFolderMap[this.rootFolder.uid]; } apiOptions.apiData = asset; @@ -304,16 +309,17 @@ export default class ImportAssets extends BaseClass { * @returns {Array>} Array> */ constructFolderImportOrder(folders: any): Array> { - let parentUid: unknown[] = []; + let parentUIds: unknown[] = []; + // NOTE: Read root folder const importOrder = filter(folders, { parent_uid: null }).map(({ uid, name, parent_uid, created_at }) => { - parentUid.push(uid); + parentUIds.push(uid); return { uid, name, parent_uid, created_at }; }); - while (!isEmpty(parentUid)) { + while (!isEmpty(parentUIds)) { // NOTE: Read nested folders every iteration until we find empty folders - parentUid = filter(folders, ({ parent_uid }) => includes(parentUid, parent_uid)).map( + parentUIds = filter(folders, ({ parent_uid }) => includes(parentUIds, parent_uid)).map( ({ uid, name, parent_uid, created_at }) => { importOrder.push({ uid, name, parent_uid, created_at }); return uid; @@ -321,6 +327,30 @@ export default class ImportAssets extends BaseClass { ); } + if (this.importConfig.replaceExisting) { + // Note: adds a root folder to distinguish latest asset uploads + // Todo: This temporary approach should be updated with asset and folder overwrite strategy, which follows + // folder overwrite + // 1. Create folder trees, 2. Export all target stack folders, 3.Match the source to target folders and create a list of existing folders + // 4. Replace existing folders + // Asset overwrite + // 1. Search asset with title + filename + type + // 2. if there are multiple assets fetched with same query, then check the parent uid against mapper created while importing folders + // 3. Replace matched assets + this.rootFolder = { + uid: uuid(), + name: `Import-${formatDate()}`, + parent_uid: null, + created_at: null, + }; + filter(importOrder, (folder, index) => { + if (!folder.parent_uid) { + importOrder.splice(index, 1, { ...folder, parent_uid: this.rootFolder.uid }); + } + }); + // NOTE: Adds root folder + importOrder.unshift(this.rootFolder); + } return importOrder; } } diff --git a/packages/contentstack-import/src/import/modules/entries.ts b/packages/contentstack-import/src/import/modules/entries.ts index 7782598654..6bb3d0a5b7 100644 --- a/packages/contentstack-import/src/import/modules/entries.ts +++ b/packages/contentstack-import/src/import/modules/entries.ts @@ -113,7 +113,7 @@ export default class EntriesImport extends BaseClass { for (let entryRequestOption of entryRequestOptions) { await this.createEntries(entryRequestOption); } - if (this.importConfig.replaceExisting && indexOf(this.importConfig.overwriteSupportedModules, 'entries') !== -1) { + if (this.importConfig.replaceExisting) { // Note: Instead of using entryRequestOptions, we can prepare request options for replace, to avoid unnecessary operations for (let entryRequestOption of entryRequestOptions) { await this.replaceEntries(entryRequestOption).catch((error) => { @@ -342,10 +342,7 @@ export default class EntriesImport extends BaseClass { //Note: write existing entries into files to handler later if (error.errorCode === 119) { if (error?.errors?.title || error?.errors?.uid) { - if ( - this.importConfig.replaceExisting && - indexOf(this.importConfig.overwriteSupportedModules, 'entries') !== -1 - ) { + if (this.importConfig.replaceExisting) { entry.entryOldUid = uid; entry.sourceEntryFilePath = path.join(basePath, additionalInfo.entryFileName); // stores source file path temporarily existingEntriesFileHelper.writeIntoFile({ [uid]: entry } as any, { mapKeyVal: true }); diff --git a/packages/contentstack-import/src/utils/common-helper.ts b/packages/contentstack-import/src/utils/common-helper.ts index 1d171e06fa..ad8a471f52 100644 --- a/packages/contentstack-import/src/utils/common-helper.ts +++ b/packages/contentstack-import/src/utils/common-helper.ts @@ -233,3 +233,19 @@ export const validateBranch = async (stackAPIClient: any, config: ImportConfig, } }); }; + +export const formatDate = (date: Date = new Date()) => { + // Format the date manually + const formattedDate = `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date + .getDate() + .toString() + .padStart(2, '0')}T${date.getHours().toString().padStart(2, '0')}-${date + .getMinutes() + .toString() + .padStart(2, '0')}-${date.getSeconds().toString().padStart(2, '0')}-${date + .getMilliseconds() + .toString() + .padStart(3, '0')}Z`; + + return formattedDate; +}; diff --git a/packages/contentstack-import/src/utils/import-config-handler.ts b/packages/contentstack-import/src/utils/import-config-handler.ts index 7aaba9a457..111df826fb 100644 --- a/packages/contentstack-import/src/utils/import-config-handler.ts +++ b/packages/contentstack-import/src/utils/import-config-handler.ts @@ -86,16 +86,6 @@ const setupConfig = async (importCmdFlags: any): Promise => { config.replaceExisting = importCmdFlags['replace-existing']; config.skipExisting = importCmdFlags['skip-existing']; - if (config.replaceExisting && !includes(config.overwriteSupportedModules, config.moduleName)) { - throw new Error( - `Failed to overwrite ${ - config.moduleName - } module! Currently, with the import command, you can overwrite the following modules: ${config.overwriteSupportedModules.join( - ',', - )}`, - ); - } - return config; }; diff --git a/packages/contentstack-launch/README.md b/packages/contentstack-launch/README.md index 21ac712d99..3b86d121f0 100755 --- a/packages/contentstack-launch/README.md +++ b/packages/contentstack-launch/README.md @@ -19,7 +19,7 @@ $ npm install -g @contentstack/cli-launch $ csdx COMMAND running command... $ csdx (--version|-v) -@contentstack/cli-launch/1.0.14 darwin-arm64 node-v21.1.0 +@contentstack/cli-launch/1.0.15 darwin-arm64 node-v20.8.0 $ csdx --help [COMMAND] USAGE $ csdx COMMAND diff --git a/packages/contentstack-launch/oclif.manifest.json b/packages/contentstack-launch/oclif.manifest.json deleted file mode 100644 index d7aebbb8b3..0000000000 --- a/packages/contentstack-launch/oclif.manifest.json +++ /dev/null @@ -1,430 +0,0 @@ -{ - "version": "1.0.14", - "commands": { - "launch:base-command": { - "id": "launch:base-command", - "strict": true, - "pluginName": "@contentstack/cli-launch", - "pluginAlias": "@contentstack/cli-launch", - "pluginType": "core", - "hidden": true, - "aliases": [], - "flags": { - "data-dir": { - "name": "data-dir", - "type": "option", - "char": "d", - "description": "Current working directory", - "multiple": false - }, - "config": { - "name": "config", - "type": "option", - "char": "c", - "description": "Path to the local '.cs-launch.json' file", - "multiple": false - } - }, - "args": {} - }, - "launch:deployments": { - "id": "launch:deployments", - "description": "Show list of deployments for an environment", - "strict": true, - "pluginName": "@contentstack/cli-launch", - "pluginAlias": "@contentstack/cli-launch", - "pluginType": "core", - "hidden": false, - "aliases": [], - "examples": [ - "$ <%= config.bin %> <%= command.id %>", - "$ <%= config.bin %> <%= command.id %> -d \"current working directory\"", - "$ <%= config.bin %> <%= command.id %> -c \"path to the local config file\"", - "$ <%= config.bin %> <%= command.id %> -e \"environment number or uid\" --org= --project=" - ], - "flags": { - "data-dir": { - "name": "data-dir", - "type": "option", - "char": "d", - "description": "Current working directory", - "multiple": false - }, - "config": { - "name": "config", - "type": "option", - "char": "c", - "description": "Path to the local '.cs-launch.json' file", - "multiple": false - }, - "org": { - "name": "org", - "type": "option", - "description": "[Optional] Provide the organization UID", - "multiple": false - }, - "project": { - "name": "project", - "type": "option", - "description": "[Optional] Provide the project UID", - "multiple": false - }, - "environment": { - "name": "environment", - "type": "option", - "char": "e", - "description": "Environment name or UID", - "multiple": false - }, - "branch": { - "name": "branch", - "type": "option", - "description": "[Optional] GitHub branch name", - "hidden": true, - "multiple": false - } - }, - "args": {} - }, - "launch:environments": { - "id": "launch:environments", - "description": "Show list of environments for a project", - "strict": true, - "pluginName": "@contentstack/cli-launch", - "pluginAlias": "@contentstack/cli-launch", - "pluginType": "core", - "hidden": false, - "aliases": [], - "examples": [ - "$ <%= config.bin %> <%= command.id %>", - "$ <%= config.bin %> <%= command.id %> -d \"current working directory\"", - "$ <%= config.bin %> <%= command.id %> -c \"path to the local config file\"", - "$ <%= config.bin %> <%= command.id %> --org= --project=" - ], - "flags": { - "data-dir": { - "name": "data-dir", - "type": "option", - "char": "d", - "description": "Current working directory", - "multiple": false - }, - "config": { - "name": "config", - "type": "option", - "char": "c", - "description": "Path to the local '.cs-launch.json' file", - "multiple": false - }, - "org": { - "name": "org", - "type": "option", - "description": "[Optional] Provide the organization UID", - "multiple": false - }, - "project": { - "name": "project", - "type": "option", - "description": "[Optional] Provide the project UID", - "multiple": false - }, - "branch": { - "name": "branch", - "type": "option", - "description": "[Optional] GitHub branch name", - "hidden": true, - "multiple": false - } - }, - "args": {} - }, - "launch:functions": { - "id": "launch:functions", - "description": "Serve cloud functions", - "strict": true, - "pluginName": "@contentstack/cli-launch", - "pluginAlias": "@contentstack/cli-launch", - "pluginType": "core", - "hidden": false, - "aliases": [], - "examples": [ - "$ csdx launch:functions", - "$ csdx launch:functions --port=port", - "$ csdx launch:functions --data-dir ", - "$ csdx launch:functions --config ", - "$ csdx launch:functions --data-dir -p \"port number\"", - "$ csdx launch:functions --config --port=port" - ], - "flags": { - "data-dir": { - "name": "data-dir", - "type": "option", - "char": "d", - "description": "Current working directory", - "multiple": false - }, - "config": { - "name": "config", - "type": "option", - "char": "c", - "description": "Path to the local '.cs-launch.json' file", - "multiple": false - }, - "port": { - "name": "port", - "type": "option", - "char": "p", - "description": "Port number", - "multiple": false, - "default": "3000" - } - }, - "args": {} - }, - "launch": { - "id": "launch", - "description": "Launch related operations", - "strict": true, - "pluginName": "@contentstack/cli-launch", - "pluginAlias": "@contentstack/cli-launch", - "pluginType": "core", - "hidden": false, - "aliases": [], - "examples": [ - "<%= config.bin %> <%= command.id %>", - "<%= config.bin %> <%= command.id %> --data-dir ", - "<%= config.bin %> <%= command.id %> --config ", - "<%= config.bin %> <%= command.id %> --type ", - "<%= config.bin %> <%= command.id %> --data-dir --type ", - "<%= config.bin %> <%= command.id %> --config --type ", - "<%= config.bin %> <%= command.id %> --config --type --name= --environment= --branch= --build-command= --framework=