@contentstack/cli-migration 2.0.0-beta.3 → 2.0.0-beta.5

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.
Files changed (2) hide show
  1. package/README.md +51 -4
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -21,7 +21,7 @@ $ npm install -g @contentstack/cli-migration
21
21
  $ csdx COMMAND
22
22
  running command...
23
23
  $ csdx (--version)
24
- @contentstack/cli-migration/2.0.0-beta.1 darwin-arm64 node-v24.12.0
24
+ @contentstack/cli-migration/2.0.0-beta.4 darwin-arm64 node-v24.12.0
25
25
  $ csdx --help [COMMAND]
26
26
  USAGE
27
27
  $ csdx COMMAND
@@ -33,6 +33,50 @@ USAGE
33
33
 
34
34
  <!-- commands -->
35
35
  * [`csdx cm:stacks:migration [-k <value>] [-a <value>] [--file-path <value>] [--branch <value>] [--config-file <value>] [--config <value>] [--multiple]`](#csdx-cmstacksmigration--k-value--a-value---file-path-value---branch-value---config-file-value---config-value---multiple)
36
+ * [`csdx cm:stacks:migration [-k <value>] [-a <value>] [--file-path <value>] [--branch <value>] [--config-file <value>] [--config <value>] [--multiple]`](#csdx-cmstacksmigration--k-value--a-value---file-path-value---branch-value---config-file-value---config-value---multiple)
37
+
38
+ ## `csdx cm:stacks:migration [-k <value>] [-a <value>] [--file-path <value>] [--branch <value>] [--config-file <value>] [--config <value>] [--multiple]`
39
+
40
+ Contentstack migration script.
41
+
42
+ ```
43
+ USAGE
44
+ $ csdx cm:migration cm:stacks:migration [-k <value>] [-a <value>] [--file-path <value>] [--branch <value>]
45
+ [--config-file <value>] [--config <value>] [--multiple]
46
+
47
+ FLAGS
48
+ -a, --alias=<value> Use this flag to add the management token alias. You must use either the --alias flag or
49
+ the --stack-api-key flag.
50
+ -k, --stack-api-key=<value> Use this flag to add the API key of your stack. You must use either the --stack-api-key
51
+ flag or the --alias flag.
52
+ --branch=<value> Use this flag to add the branch name where you want to perform the migration. (target
53
+ branch name)
54
+ --config=<value>... [optional] Inline configuration, <key1>:<value1>. Passing an external configuration makes
55
+ the script re-usable.
56
+ --config-file=<value> [optional] Path of the JSON configuration file.
57
+ --file-path=<value> Use this flag to provide the path of the file of the migration script.
58
+ --multiple This flag helps you to migrate multiple content files in a single instance. Mention the
59
+ folder path where your migration script files are stored.
60
+
61
+ DESCRIPTION
62
+ Contentstack migration script.
63
+
64
+ ALIASES
65
+ $ csdx cm:migration
66
+
67
+ EXAMPLES
68
+ $ csdx cm:migration --file-path <migration/script/file/path> -k <api-key>
69
+
70
+ $ csdx cm:migration --file-path <migration/script/file/path> -k <api-key> --branch <target branch name>
71
+
72
+ $ csdx cm:migration --config <key1>:<value1> <key2>:<value2> ... --file-path <migration/script/file/path>
73
+
74
+ $ csdx cm:migration --config-file <path/to/json/config/file> --file-path <migration/script/file/path>
75
+
76
+ $ csdx cm:migration --multiple --file-path <migration/scripts/dir/path>
77
+
78
+ $ csdx cm:migration --alias <management-token-alias> --file-path <migration/script/file/path>
79
+ ```
36
80
 
37
81
  ## `csdx cm:stacks:migration [-k <value>] [-a <value>] [--file-path <value>] [--branch <value>] [--config-file <value>] [--config <value>] [--multiple]`
38
82
 
@@ -60,10 +104,13 @@ FLAGS
60
104
  DESCRIPTION
61
105
  Contentstack migration script.
62
106
 
107
+ ALIASES
108
+ $ csdx cm:migration
109
+
63
110
  EXAMPLES
64
- $ csdx cm:migration --file-path <migration/script/file/path> --stack-api-key <stack-api-key>
111
+ $ csdx cm:migration --file-path <migration/script/file/path> -k <api-key>
65
112
 
66
- $ csdx cm:migration --file-path <migration/script/file/path> --stack-api-key <stack-api-key> --branch <target branch name>
113
+ $ csdx cm:migration --file-path <migration/script/file/path> -k <api-key> --branch <target branch name>
67
114
 
68
115
  $ csdx cm:migration --config <key1>:<value1> <key2>:<value2> ... --file-path <migration/script/file/path>
69
116
 
@@ -74,7 +121,7 @@ EXAMPLES
74
121
  $ csdx cm:migration --alias <management-token-alias> --file-path <migration/script/file/path>
75
122
  ```
76
123
 
77
- _See code: [src/commands/cm/stacks/migration.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-migration/src/commands/cm/stacks/migration.js)_
124
+ _See code: [src/commands/cm/stacks/migration.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-migration/src/commands/cm/stacks/migration.ts)_
78
125
  <!-- commandsstop -->
79
126
 
80
127
  ### Points to remember
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@contentstack/cli-migration",
3
- "version": "2.0.0-beta.3",
3
+ "version": "2.0.0-beta.5",
4
4
  "author": "@contentstack",
5
5
  "bugs": "https://github.com/contentstack/cli/issues",
6
6
  "dependencies": {
7
- "@contentstack/cli-command": "~1.7.2",
8
- "@contentstack/cli-utilities": "~1.17.1",
7
+ "@contentstack/cli-command": "~2.0.0-beta",
8
+ "@contentstack/cli-utilities": "~2.0.0-beta",
9
9
  "@oclif/core": "^4.3.0",
10
10
  "@oclif/plugin-help": "^6.2.28",
11
11
  "async": "^3.2.6",
@@ -28,7 +28,7 @@
28
28
  "nock": "^13.5.6",
29
29
  "nyc": "^15.1.0",
30
30
  "oclif": "^4.17.46",
31
- "sinon": "^19.0.5",
31
+ "sinon": "^21.0.1",
32
32
  "source-map-support": "^0.5.21",
33
33
  "ts-node": "^10.9.2",
34
34
  "typescript": "^4.9.5"