@contentstack/cli-cm-export-to-csv 1.11.0 → 2.0.0-beta
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/package.json +5 -7
- package/lib/base-command.d.ts +0 -40
- package/lib/base-command.js +0 -48
- package/lib/commands/cm/export-to-csv.d.ts +0 -52
- package/lib/commands/cm/export-to-csv.js +0 -581
- package/lib/config/index.d.ts +0 -9
- package/lib/config/index.js +0 -11
- package/lib/index.d.ts +0 -13
- package/lib/index.js +0 -19
- package/lib/messages/index.d.ts +0 -56
- package/lib/messages/index.js +0 -73
- package/lib/types/index.d.ts +0 -591
- package/lib/types/index.js +0 -8
- package/lib/utils/api-client.d.ts +0 -81
- package/lib/utils/api-client.js +0 -523
- package/lib/utils/csv-writer.d.ts +0 -24
- package/lib/utils/csv-writer.js +0 -70
- package/lib/utils/data-transform.d.ts +0 -66
- package/lib/utils/data-transform.js +0 -348
- package/lib/utils/error-handler.d.ts +0 -35
- package/lib/utils/error-handler.js +0 -111
- package/lib/utils/index.d.ts +0 -10
- package/lib/utils/index.js +0 -73
- package/lib/utils/interactive.d.ts +0 -41
- package/lib/utils/interactive.js +0 -336
- package/lib/utils/teams-export.d.ts +0 -24
- package/lib/utils/teams-export.js +0 -173
- package/oclif.manifest.json +0 -171
package/oclif.manifest.json
DELETED
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"commands": {
|
|
3
|
-
"cm:export-to-csv": {
|
|
4
|
-
"aliases": [
|
|
5
|
-
"cm:export-to-csv"
|
|
6
|
-
],
|
|
7
|
-
"args": {},
|
|
8
|
-
"description": "Export entries, taxonomies, terms or organization users to csv using this command",
|
|
9
|
-
"examples": [
|
|
10
|
-
"$ <%= config.bin %> <%= command.id %>",
|
|
11
|
-
"",
|
|
12
|
-
"Exporting entries to CSV",
|
|
13
|
-
"$ <%= config.bin %> <%= command.id %> --action entries --locale <locale> --alias <management-token-alias> --content-type <content-type>",
|
|
14
|
-
"",
|
|
15
|
-
"Exporting entries to CSV with stack name and branch",
|
|
16
|
-
"$ <%= config.bin %> <%= command.id %> --action entries --locale <locale> --alias <management-token-alias> --content-type <content-type> --stack-name <stack-name> --branch <branch-name>",
|
|
17
|
-
"",
|
|
18
|
-
"Exporting organization users to CSV",
|
|
19
|
-
"$ <%= config.bin %> <%= command.id %> --action users --org <org-uid>",
|
|
20
|
-
"",
|
|
21
|
-
"Exporting organization teams to CSV",
|
|
22
|
-
"$ <%= config.bin %> <%= command.id %> --action teams --org <org-uid>",
|
|
23
|
-
"",
|
|
24
|
-
"Exporting teams with specific team UID",
|
|
25
|
-
"$ <%= config.bin %> <%= command.id %> --action teams --org <org-uid> --team-uid <team-uid>",
|
|
26
|
-
"",
|
|
27
|
-
"Exporting taxonomies to CSV",
|
|
28
|
-
"$ <%= config.bin %> <%= command.id %> --action taxonomies --alias <management-token-alias>",
|
|
29
|
-
"",
|
|
30
|
-
"Exporting specific taxonomy with locale",
|
|
31
|
-
"$ <%= config.bin %> <%= command.id %> --action taxonomies --alias <management-token-alias> --taxonomy-uid <taxonomy-uid> --locale <locale>",
|
|
32
|
-
"",
|
|
33
|
-
"Exporting taxonomies with fallback locale",
|
|
34
|
-
"$ <%= config.bin %> <%= command.id %> --action taxonomies --alias <management-token-alias> --locale <locale> --include-fallback --fallback-locale <fallback-locale>"
|
|
35
|
-
],
|
|
36
|
-
"flags": {
|
|
37
|
-
"action": {
|
|
38
|
-
"description": "Option to export data (entries, users, teams, taxonomies). <options: entries|users|teams|taxonomies>",
|
|
39
|
-
"name": "action",
|
|
40
|
-
"required": false,
|
|
41
|
-
"hasDynamicHelp": false,
|
|
42
|
-
"multiple": false,
|
|
43
|
-
"options": [
|
|
44
|
-
"entries",
|
|
45
|
-
"users",
|
|
46
|
-
"teams",
|
|
47
|
-
"taxonomies"
|
|
48
|
-
],
|
|
49
|
-
"type": "option"
|
|
50
|
-
},
|
|
51
|
-
"alias": {
|
|
52
|
-
"char": "a",
|
|
53
|
-
"description": "Alias of the management token.",
|
|
54
|
-
"name": "alias",
|
|
55
|
-
"hasDynamicHelp": false,
|
|
56
|
-
"multiple": false,
|
|
57
|
-
"type": "option"
|
|
58
|
-
},
|
|
59
|
-
"org": {
|
|
60
|
-
"description": "Provide organization UID to clone org users.",
|
|
61
|
-
"name": "org",
|
|
62
|
-
"required": false,
|
|
63
|
-
"hasDynamicHelp": false,
|
|
64
|
-
"multiple": false,
|
|
65
|
-
"type": "option"
|
|
66
|
-
},
|
|
67
|
-
"stack-name": {
|
|
68
|
-
"char": "n",
|
|
69
|
-
"description": "Name of the stack that needs to be created as CSV filename.",
|
|
70
|
-
"name": "stack-name",
|
|
71
|
-
"required": false,
|
|
72
|
-
"hasDynamicHelp": false,
|
|
73
|
-
"multiple": false,
|
|
74
|
-
"type": "option"
|
|
75
|
-
},
|
|
76
|
-
"stack-api-key": {
|
|
77
|
-
"char": "k",
|
|
78
|
-
"description": "API Key of the source stack.",
|
|
79
|
-
"name": "stack-api-key",
|
|
80
|
-
"required": false,
|
|
81
|
-
"hasDynamicHelp": false,
|
|
82
|
-
"multiple": false,
|
|
83
|
-
"type": "option"
|
|
84
|
-
},
|
|
85
|
-
"org-name": {
|
|
86
|
-
"description": "Name of the organization that needs to be created as CSV filename.",
|
|
87
|
-
"name": "org-name",
|
|
88
|
-
"required": false,
|
|
89
|
-
"hasDynamicHelp": false,
|
|
90
|
-
"multiple": false,
|
|
91
|
-
"type": "option"
|
|
92
|
-
},
|
|
93
|
-
"locale": {
|
|
94
|
-
"description": "Locale of entries that will be exported.",
|
|
95
|
-
"name": "locale",
|
|
96
|
-
"required": false,
|
|
97
|
-
"hasDynamicHelp": false,
|
|
98
|
-
"multiple": false,
|
|
99
|
-
"type": "option"
|
|
100
|
-
},
|
|
101
|
-
"content-type": {
|
|
102
|
-
"description": "Content type of entries that will be exported.",
|
|
103
|
-
"name": "content-type",
|
|
104
|
-
"required": false,
|
|
105
|
-
"hasDynamicHelp": false,
|
|
106
|
-
"multiple": false,
|
|
107
|
-
"type": "option"
|
|
108
|
-
},
|
|
109
|
-
"branch": {
|
|
110
|
-
"description": "Branch from which entries will be exported.",
|
|
111
|
-
"name": "branch",
|
|
112
|
-
"required": false,
|
|
113
|
-
"hasDynamicHelp": false,
|
|
114
|
-
"multiple": false,
|
|
115
|
-
"type": "option"
|
|
116
|
-
},
|
|
117
|
-
"team-uid": {
|
|
118
|
-
"description": "Provide the UID of a specific team in an organization.",
|
|
119
|
-
"name": "team-uid",
|
|
120
|
-
"hasDynamicHelp": false,
|
|
121
|
-
"multiple": false,
|
|
122
|
-
"type": "option"
|
|
123
|
-
},
|
|
124
|
-
"taxonomy-uid": {
|
|
125
|
-
"description": "Provide the taxonomy UID of the related terms you want to export.",
|
|
126
|
-
"name": "taxonomy-uid",
|
|
127
|
-
"hasDynamicHelp": false,
|
|
128
|
-
"multiple": false,
|
|
129
|
-
"type": "option"
|
|
130
|
-
},
|
|
131
|
-
"include-fallback": {
|
|
132
|
-
"description": "[Optional] Include fallback locale data when exporting taxonomies. When enabled, if a taxonomy term doesn't exist in the specified locale, it will fallback to the hierarchy defined in the branch settings.",
|
|
133
|
-
"name": "include-fallback",
|
|
134
|
-
"allowNo": false,
|
|
135
|
-
"type": "boolean"
|
|
136
|
-
},
|
|
137
|
-
"fallback-locale": {
|
|
138
|
-
"description": "[Optional] Specify a specific fallback locale for taxonomy export. This locale will be used when a taxonomy term doesn't exist in the primary locale. Takes priority over branch fallback hierarchy when both are specified.",
|
|
139
|
-
"name": "fallback-locale",
|
|
140
|
-
"required": false,
|
|
141
|
-
"hasDynamicHelp": false,
|
|
142
|
-
"multiple": false,
|
|
143
|
-
"type": "option"
|
|
144
|
-
},
|
|
145
|
-
"delimiter": {
|
|
146
|
-
"description": "[optional] Provide a delimiter to separate individual data fields within the CSV file. For example: cm:export-to-csv --delimiter '|'",
|
|
147
|
-
"name": "delimiter",
|
|
148
|
-
"default": ",",
|
|
149
|
-
"hasDynamicHelp": false,
|
|
150
|
-
"multiple": false,
|
|
151
|
-
"type": "option"
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
"hasDynamicHelp": false,
|
|
155
|
-
"hiddenAliases": [],
|
|
156
|
-
"id": "cm:export-to-csv",
|
|
157
|
-
"pluginAlias": "@contentstack/cli-cm-export-to-csv",
|
|
158
|
-
"pluginName": "@contentstack/cli-cm-export-to-csv",
|
|
159
|
-
"pluginType": "core",
|
|
160
|
-
"strict": true,
|
|
161
|
-
"isESM": false,
|
|
162
|
-
"relativePath": [
|
|
163
|
-
"lib",
|
|
164
|
-
"commands",
|
|
165
|
-
"cm",
|
|
166
|
-
"export-to-csv.js"
|
|
167
|
-
]
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
"version": "1.11.0"
|
|
171
|
-
}
|