@contentstack/cli 1.7.5 → 1.7.6
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/README.md +15 -10
- package/lib/config/index.d.ts +8 -0
- package/lib/help.d.ts +7 -0
- package/lib/hooks/init/context-init.d.ts +4 -0
- package/lib/hooks/init/utils-init.d.ts +4 -0
- package/lib/hooks/prerun/auth-guard.d.ts +1 -0
- package/lib/hooks/prerun/command-deprecation-check.d.ts +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/interfaces/index.d.ts +31 -0
- package/lib/utils/context-handler.d.ts +15 -0
- package/lib/utils/index.d.ts +1 -0
- package/oclif.manifest.json +1 -1
- package/package.json +18 -17
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.7.
|
|
21
|
+
@contentstack/cli/1.7.6 linux-x64 node-v16.20.0
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -1300,14 +1300,15 @@ Migration script to migrate content from HTML RTE to JSON RTE
|
|
|
1300
1300
|
|
|
1301
1301
|
```
|
|
1302
1302
|
USAGE
|
|
1303
|
-
$ csdx cm:entries:migrate-html-rte [-c <value>] [-a <value>] [--content-type <value>] [--global-field] [-y] [--
|
|
1304
|
-
<value> --json-path <value>] [--delay <value>] [--locale <value>] [--batch-limit <value>]
|
|
1303
|
+
$ csdx cm:entries:migrate-html-rte [-c <value>] [-a <value>] [--content-type <value>] [--global-field] [-y] [--branch <value>]
|
|
1304
|
+
[--html-path <value> --json-path <value>] [--delay <value>] [--locale <value>] [--batch-limit <value>]
|
|
1305
1305
|
|
|
1306
1306
|
FLAGS
|
|
1307
1307
|
-a, --alias=<value> Alias(name) for the management token
|
|
1308
1308
|
-c, --config-path=<value> Path to config file
|
|
1309
1309
|
-y, --yes Agree to process the command with the current configuration
|
|
1310
1310
|
--batch-limit=<value> [default: 50] Provide batch limit for updating entries
|
|
1311
|
+
--branch=<value> [optional] branch name
|
|
1311
1312
|
--content-type=<value> The content type from which entries will be migrated
|
|
1312
1313
|
--delay=<value> [default: 1000] Provide delay in ms between two entry update
|
|
1313
1314
|
--global-field This flag is set to false by default. It indicates that current content type is a
|
|
@@ -1914,14 +1915,15 @@ Migration script to migrate content from HTML RTE to JSON RTE
|
|
|
1914
1915
|
|
|
1915
1916
|
```
|
|
1916
1917
|
USAGE
|
|
1917
|
-
$ csdx cm:migrate-rte [-c <value>] [-a <value>] [--content-type <value>] [--global-field] [-y] [--
|
|
1918
|
-
<value> --json-path <value>] [--delay <value>] [--locale <value>] [--batch-limit <value>]
|
|
1918
|
+
$ csdx cm:migrate-rte [-c <value>] [-a <value>] [--content-type <value>] [--global-field] [-y] [--branch <value>]
|
|
1919
|
+
[--html-path <value> --json-path <value>] [--delay <value>] [--locale <value>] [--batch-limit <value>]
|
|
1919
1920
|
|
|
1920
1921
|
FLAGS
|
|
1921
1922
|
-a, --alias=<value> Alias(name) for the management token
|
|
1922
1923
|
-c, --config-path=<value> Path to config file
|
|
1923
1924
|
-y, --yes Agree to process the command with the current configuration
|
|
1924
1925
|
--batch-limit=<value> [default: 50] Provide batch limit for updating entries
|
|
1926
|
+
--branch=<value> [optional] branch name
|
|
1925
1927
|
--content-type=<value> The content type from which entries will be migrated
|
|
1926
1928
|
--delay=<value> [default: 1000] Provide delay in ms between two entry update
|
|
1927
1929
|
--global-field This flag is set to false by default. It indicates that current content type is a
|
|
@@ -2808,13 +2810,13 @@ EXAMPLES
|
|
|
2808
2810
|
|
|
2809
2811
|
$ csdx launch:functions --port=port
|
|
2810
2812
|
|
|
2811
|
-
$ csdx launch:
|
|
2813
|
+
$ csdx launch:functions --data-dir <path/of/current/working/dir>
|
|
2812
2814
|
|
|
2813
|
-
$ csdx launch:
|
|
2815
|
+
$ csdx launch:functions --config <path/to/launch/config/file>
|
|
2814
2816
|
|
|
2815
|
-
$ csdx launch:
|
|
2817
|
+
$ csdx launch:functions --data-dir <path/of/current/working/dir> -p "port number"
|
|
2816
2818
|
|
|
2817
|
-
$ csdx launch:
|
|
2819
|
+
$ csdx launch:functions --config <path/to/launch/config/file> --port=port
|
|
2818
2820
|
```
|
|
2819
2821
|
|
|
2820
2822
|
_See code: [@contentstack/cli-launch](https://github.com/contentstack/cli/blob/main/packages/contentstack-launch/dist/commands/launch/functions.ts)_
|
|
@@ -2825,13 +2827,16 @@ Show deployment or server logs
|
|
|
2825
2827
|
|
|
2826
2828
|
```
|
|
2827
2829
|
USAGE
|
|
2828
|
-
$ csdx launch:logs [-d <value>] [-c <value>] [-e <value>] [--deployment <value>] [--type d|s]
|
|
2830
|
+
$ csdx launch:logs [-d <value>] [-c <value>] [-e <value>] [--deployment <value>] [--type d|s] [--org <value>]
|
|
2831
|
+
[--project <value>]
|
|
2829
2832
|
|
|
2830
2833
|
FLAGS
|
|
2831
2834
|
-c, --config=<value> Path to the local '.cs-launch.json' file
|
|
2832
2835
|
-d, --data-dir=<value> Current working directory
|
|
2833
2836
|
-e, --environment=<value> Environment name or UID
|
|
2834
2837
|
--deployment=<value> Deployment number or UID
|
|
2838
|
+
--org=<value> [Optional] Provide the organization UID
|
|
2839
|
+
--project=<value> [Optional] Provide the project UID
|
|
2835
2840
|
--type=<option> [default: s] Choose type of flags to show logs
|
|
2836
2841
|
d) Deployment logs
|
|
2837
2842
|
s) Server logs
|
package/lib/help.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (opts: any): Promise<void>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function (_opts: any): Promise<void>;
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Config, Plugin } from '@oclif/core';
|
|
2
|
+
export interface PrintOptions {
|
|
3
|
+
color?: string;
|
|
4
|
+
}
|
|
5
|
+
export interface InquirePayload {
|
|
6
|
+
type: string;
|
|
7
|
+
name: string;
|
|
8
|
+
message: string;
|
|
9
|
+
choices?: Array<any>;
|
|
10
|
+
transformer?: Function;
|
|
11
|
+
}
|
|
12
|
+
export interface Region {
|
|
13
|
+
name: string;
|
|
14
|
+
cma: string;
|
|
15
|
+
cda: string;
|
|
16
|
+
}
|
|
17
|
+
export interface Context {
|
|
18
|
+
id: string;
|
|
19
|
+
user: {
|
|
20
|
+
authtoken: string;
|
|
21
|
+
email: string;
|
|
22
|
+
};
|
|
23
|
+
region: any;
|
|
24
|
+
plugin: Plugin;
|
|
25
|
+
config: any;
|
|
26
|
+
info: any;
|
|
27
|
+
messageFilePath: any;
|
|
28
|
+
}
|
|
29
|
+
export interface CLIConfig extends Config {
|
|
30
|
+
context: Context;
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default class CsdxContext {
|
|
2
|
+
readonly sessionId: string;
|
|
3
|
+
readonly clientId: string;
|
|
4
|
+
readonly user?: object;
|
|
5
|
+
readonly region?: object;
|
|
6
|
+
readonly config: object;
|
|
7
|
+
readonly info: any;
|
|
8
|
+
readonly plugin: any;
|
|
9
|
+
readonly pluginConfig: any;
|
|
10
|
+
readonly messageFilePath: string;
|
|
11
|
+
readonly analyticsInfo: string;
|
|
12
|
+
flagWarningPrintState: any;
|
|
13
|
+
constructor(cliOpts: any, cliConfig: any);
|
|
14
|
+
getToken(alias: string): any;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CsdxContext } from './context-handler';
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli",
|
|
3
3
|
"description": "Command-line tool (CLI) to interact with Contentstack",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.6",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bin": {
|
|
7
7
|
"csdx": "./bin/run"
|
|
8
8
|
},
|
|
9
9
|
"main": "lib/index.js",
|
|
10
|
+
"types": "lib/index.d.ts",
|
|
10
11
|
"scripts": {
|
|
11
12
|
"build": "npm run clean && npm run compile",
|
|
12
13
|
"clean": "rm -rf ./lib ./node_modules tsconfig.build.tsbuildinfo",
|
|
@@ -21,22 +22,22 @@
|
|
|
21
22
|
"prepack": "pnpm compile && oclif manifest && oclif readme"
|
|
22
23
|
},
|
|
23
24
|
"dependencies": {
|
|
24
|
-
"@contentstack/cli-auth": "^1.3.
|
|
25
|
-
"@contentstack/cli-cm-bootstrap": "^1.4.
|
|
26
|
-
"@contentstack/cli-cm-bulk-publish": "^1.3.
|
|
27
|
-
"@contentstack/cli-cm-clone": "^1.4.
|
|
28
|
-
"@contentstack/cli-cm-export": "^1.5.
|
|
29
|
-
"@contentstack/cli-cm-export-to-csv": "^1.3.
|
|
30
|
-
"@contentstack/cli-cm-import": "^1.5.
|
|
31
|
-
"@contentstack/cli-cm-migrate-rte": "^1.4.
|
|
32
|
-
"@contentstack/cli-cm-seed": "^1.4.
|
|
33
|
-
"@contentstack/cli-command": "^1.2.
|
|
34
|
-
"@contentstack/cli-config": "^1.4.
|
|
35
|
-
"@contentstack/cli-launch": "^1.0.
|
|
36
|
-
"@contentstack/cli-migration": "^1.3.
|
|
37
|
-
"@contentstack/cli-utilities": "^1.4.
|
|
25
|
+
"@contentstack/cli-auth": "^1.3.8",
|
|
26
|
+
"@contentstack/cli-cm-bootstrap": "^1.4.8",
|
|
27
|
+
"@contentstack/cli-cm-bulk-publish": "^1.3.7",
|
|
28
|
+
"@contentstack/cli-cm-clone": "^1.4.8",
|
|
29
|
+
"@contentstack/cli-cm-export": "^1.5.8",
|
|
30
|
+
"@contentstack/cli-cm-export-to-csv": "^1.3.8",
|
|
31
|
+
"@contentstack/cli-cm-import": "^1.5.8",
|
|
32
|
+
"@contentstack/cli-cm-migrate-rte": "^1.4.7",
|
|
33
|
+
"@contentstack/cli-cm-seed": "^1.4.8",
|
|
34
|
+
"@contentstack/cli-command": "^1.2.8",
|
|
35
|
+
"@contentstack/cli-config": "^1.4.6",
|
|
36
|
+
"@contentstack/cli-launch": "^1.0.5",
|
|
37
|
+
"@contentstack/cli-migration": "^1.3.7",
|
|
38
|
+
"@contentstack/cli-utilities": "^1.4.4",
|
|
38
39
|
"@contentstack/management": "^1.8.0",
|
|
39
|
-
"@contentstack/cli-cm-branches": "^1.0.
|
|
40
|
+
"@contentstack/cli-cm-branches": "^1.0.5",
|
|
40
41
|
"@oclif/plugin-help": "^5",
|
|
41
42
|
"@oclif/plugin-not-found": "^2.3.9",
|
|
42
43
|
"@oclif/plugin-plugins": "^2.1.7",
|
|
@@ -155,4 +156,4 @@
|
|
|
155
156
|
}
|
|
156
157
|
},
|
|
157
158
|
"repository": "https://github.com/contentstack/cli"
|
|
158
|
-
}
|
|
159
|
+
}
|