@contentstack/cli 1.10.0 → 1.11.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/README.md +60 -7
- package/oclif.manifest.json +1 -1
- package/package.json +18 -18
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.
|
|
21
|
+
@contentstack/cli/1.11.0 linux-x64 node-v18.18.2
|
|
22
22
|
$ csdx --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ csdx COMMAND
|
|
@@ -2014,27 +2014,32 @@ EXAMPLES
|
|
|
2014
2014
|
|
|
2015
2015
|
## `csdx cm:export-to-csv`
|
|
2016
2016
|
|
|
2017
|
-
Export entries or organization users to csv using this command
|
|
2017
|
+
Export entries, taxonomies, terms or organization users to csv using this command
|
|
2018
2018
|
|
|
2019
2019
|
```
|
|
2020
2020
|
USAGE
|
|
2021
|
-
$ csdx cm:export-to-csv [--action entries|users] [-a <value>] [--org <value>] [-n <value>] [-k
|
|
2022
|
-
<value>] [--locale <value>] [--content-type <value>] [--branch <value>]
|
|
2021
|
+
$ csdx cm:export-to-csv [--action entries|users|teams|taxonomies] [-a <value>] [--org <value>] [-n <value>] [-k
|
|
2022
|
+
<value>] [--org-name <value>] [--locale <value>] [--content-type <value>] [--branch <value>] [--team-uid <value>]
|
|
2023
|
+
[--taxonomy-uid <value>] [--delimiter <value>]
|
|
2023
2024
|
|
|
2024
2025
|
FLAGS
|
|
2025
2026
|
-a, --alias=<value> Alias of the management token
|
|
2026
2027
|
-k, --stack-api-key=<value> API key of the source stack
|
|
2027
2028
|
-n, --stack-name=<value> Name of the stack that needs to be created as csv filename.
|
|
2028
|
-
--action=<option> Option to export data (entries, users)
|
|
2029
|
-
<options: entries|users>
|
|
2029
|
+
--action=<option> Option to export data (entries, users, teams, taxonomies)
|
|
2030
|
+
<options: entries|users|teams|taxonomies>
|
|
2030
2031
|
--branch=<value> Branch from which entries need to be exported
|
|
2031
2032
|
--content-type=<value> Content type for which entries needs to be exported
|
|
2033
|
+
--delimiter=<value> [default: ,] [optional] Provide a delimiter to separate individual data fields within the
|
|
2034
|
+
CSV file.
|
|
2032
2035
|
--locale=<value> Locale for which entries need to be exported
|
|
2033
2036
|
--org=<value> Provide organization UID to clone org users
|
|
2034
2037
|
--org-name=<value> Name of the organization that needs to be created as csv filename.
|
|
2038
|
+
--taxonomy-uid=<value> Provide the taxonomy UID of the related terms you want to export
|
|
2039
|
+
--team-uid=<value> Uid of the team whose user data and stack roles are required
|
|
2035
2040
|
|
|
2036
2041
|
DESCRIPTION
|
|
2037
|
-
Export entries or organization users to csv using this command
|
|
2042
|
+
Export entries, taxonomies, terms or organization users to csv using this command
|
|
2038
2043
|
|
|
2039
2044
|
EXAMPLES
|
|
2040
2045
|
$ csdx cm:export-to-csv
|
|
@@ -2062,6 +2067,54 @@ EXAMPLES
|
|
|
2062
2067
|
Exporting organization users to csv with organization name provided
|
|
2063
2068
|
|
|
2064
2069
|
$ csdx cm:export-to-csv --action <users> --org <org-uid> --org-name <org-name>
|
|
2070
|
+
|
|
2071
|
+
|
|
2072
|
+
|
|
2073
|
+
Exporting Organizations Teams to CSV
|
|
2074
|
+
|
|
2075
|
+
$ csdx cm:export-to-csv --action <teams>
|
|
2076
|
+
|
|
2077
|
+
|
|
2078
|
+
|
|
2079
|
+
Exporting Organizations Teams to CSV with org-uid
|
|
2080
|
+
|
|
2081
|
+
$ csdx cm:export-to-csv --action <teams> --org <org-uid>
|
|
2082
|
+
|
|
2083
|
+
|
|
2084
|
+
|
|
2085
|
+
Exporting Organizations Teams to CSV with team uid
|
|
2086
|
+
|
|
2087
|
+
$ csdx cm:export-to-csv --action <teams> --team-uid <team-uid>
|
|
2088
|
+
|
|
2089
|
+
|
|
2090
|
+
|
|
2091
|
+
Exporting Organizations Teams to CSV with org-uid and team uid
|
|
2092
|
+
|
|
2093
|
+
$ csdx cm:export-to-csv --action <teams> --org <org-uid> --team-uid <team-uid>
|
|
2094
|
+
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
Exporting Organizations Teams to CSV with org-uid and team uid
|
|
2098
|
+
|
|
2099
|
+
$ csdx cm:export-to-csv --action <teams> --org <org-uid> --team-uid <team-uid> --org-name <org-name>
|
|
2100
|
+
|
|
2101
|
+
|
|
2102
|
+
|
|
2103
|
+
Exporting taxonomies and related terms to a .CSV file with the provided taxonomy UID
|
|
2104
|
+
|
|
2105
|
+
$ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias> --taxonomy-uid <taxonomy-uid>
|
|
2106
|
+
|
|
2107
|
+
|
|
2108
|
+
|
|
2109
|
+
Exporting taxonomies and respective terms to a .CSV file
|
|
2110
|
+
|
|
2111
|
+
$ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias>
|
|
2112
|
+
|
|
2113
|
+
|
|
2114
|
+
|
|
2115
|
+
Exporting taxonomies and respective terms to a .CSV file with a delimiter
|
|
2116
|
+
|
|
2117
|
+
$ csdx cm:export-to-csv --action <taxonomies> --alias <management-token-alias> --delimiter <delimiter>
|
|
2065
2118
|
```
|
|
2066
2119
|
|
|
2067
2120
|
_See code: [@contentstack/cli-cm-export-to-csv](https://github.com/contentstack/cli/blob/main/packages/contentstack-export-to-csv/src/commands/cm/export-to-csv.js)_
|
package/oclif.manifest.json
CHANGED
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.
|
|
4
|
+
"version": "1.11.0",
|
|
5
5
|
"author": "Contentstack",
|
|
6
6
|
"bin": {
|
|
7
7
|
"csdx": "./bin/run"
|
|
@@ -22,23 +22,23 @@
|
|
|
22
22
|
"prepack": "pnpm compile && oclif manifest && oclif readme"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@contentstack/cli-audit": "~1.2.
|
|
26
|
-
"@contentstack/cli-auth": "~1.3.
|
|
27
|
-
"@contentstack/cli-cm-bootstrap": "~1.6.
|
|
28
|
-
"@contentstack/cli-cm-branches": "~1.0.
|
|
29
|
-
"@contentstack/cli-cm-bulk-publish": "~1.3.
|
|
30
|
-
"@contentstack/cli-cm-clone": "~1.
|
|
31
|
-
"@contentstack/cli-cm-export": "~1.
|
|
32
|
-
"@contentstack/cli-cm-export-to-csv": "~1.
|
|
33
|
-
"@contentstack/cli-cm-import": "~1.
|
|
34
|
-
"@contentstack/cli-cm-migrate-rte": "~1.4.
|
|
35
|
-
"@contentstack/cli-cm-seed": "~1.6.
|
|
36
|
-
"@contentstack/cli-command": "~1.2.
|
|
37
|
-
"@contentstack/cli-config": "~1.4.
|
|
38
|
-
"@contentstack/cli-launch": "~1.0.
|
|
39
|
-
"@contentstack/cli-migration": "~1.
|
|
40
|
-
"@contentstack/cli-utilities": "~1.5.
|
|
41
|
-
"@contentstack/management": "~1.
|
|
25
|
+
"@contentstack/cli-audit": "~1.2.1",
|
|
26
|
+
"@contentstack/cli-auth": "~1.3.16",
|
|
27
|
+
"@contentstack/cli-cm-bootstrap": "~1.6.2",
|
|
28
|
+
"@contentstack/cli-cm-branches": "~1.0.16",
|
|
29
|
+
"@contentstack/cli-cm-bulk-publish": "~1.3.14",
|
|
30
|
+
"@contentstack/cli-cm-clone": "~1.7.0",
|
|
31
|
+
"@contentstack/cli-cm-export": "~1.10.0",
|
|
32
|
+
"@contentstack/cli-cm-export-to-csv": "~1.6.0",
|
|
33
|
+
"@contentstack/cli-cm-import": "~1.11.0",
|
|
34
|
+
"@contentstack/cli-cm-migrate-rte": "~1.4.14",
|
|
35
|
+
"@contentstack/cli-cm-seed": "~1.6.2",
|
|
36
|
+
"@contentstack/cli-command": "~1.2.15",
|
|
37
|
+
"@contentstack/cli-config": "~1.4.14",
|
|
38
|
+
"@contentstack/cli-launch": "~1.0.14",
|
|
39
|
+
"@contentstack/cli-migration": "~1.4.0",
|
|
40
|
+
"@contentstack/cli-utilities": "~1.5.5",
|
|
41
|
+
"@contentstack/management": "~1.12.0",
|
|
42
42
|
"@oclif/core": "^2.9.3",
|
|
43
43
|
"@oclif/plugin-help": "^5",
|
|
44
44
|
"@oclif/plugin-not-found": "^2.4.0",
|