@contentstack/cli-cm-export-to-csv 1.7.3 → 1.8.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/package.json +16 -19
- package/src/commands/cm/export-to-csv.js +14 -14
package/package.json
CHANGED
|
@@ -1,31 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentstack/cli-cm-export-to-csv",
|
|
3
3
|
"description": "Export entities to csv",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.8.0",
|
|
5
5
|
"author": "Abhinav Gupta @abhinav-from-contentstack",
|
|
6
6
|
"bugs": "https://github.com/contentstack/cli/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@contentstack/cli-command": "~1.
|
|
9
|
-
"@contentstack/cli-utilities": "~1.
|
|
10
|
-
"chalk": "^4.1.0",
|
|
8
|
+
"@contentstack/cli-command": "~1.5.0",
|
|
9
|
+
"@contentstack/cli-utilities": "~1.11.0",
|
|
11
10
|
"fast-csv": "^4.3.6",
|
|
12
|
-
"inquirer": "8.2.
|
|
13
|
-
"inquirer-checkbox-plus-prompt": "1.
|
|
11
|
+
"inquirer": "8.2.6",
|
|
12
|
+
"inquirer-checkbox-plus-prompt": "1.4.2",
|
|
14
13
|
"mkdirp": "^3.0.1"
|
|
15
14
|
},
|
|
16
15
|
"devDependencies": {
|
|
17
|
-
"@oclif/test": "^
|
|
18
|
-
"@types/chai": "^4.3.
|
|
19
|
-
"@types/mocha": "^10.0.
|
|
20
|
-
"chai": "^4.
|
|
21
|
-
"debug": "^4.
|
|
22
|
-
"dotenv": "^16.3.1",
|
|
16
|
+
"@oclif/test": "^4.1.9",
|
|
17
|
+
"@types/chai": "^4.3.20",
|
|
18
|
+
"@types/mocha": "^10.0.10",
|
|
19
|
+
"chai": "^4.5.0",
|
|
20
|
+
"debug": "^4.4.0",
|
|
23
21
|
"eslint": "^7.32.0",
|
|
24
|
-
"eslint-config-oclif": "^
|
|
25
|
-
"
|
|
26
|
-
"mocha": "^10.2.0",
|
|
22
|
+
"eslint-config-oclif": "^6.0.15",
|
|
23
|
+
"mocha": "^10.8.2",
|
|
27
24
|
"nyc": "^15.1.0",
|
|
28
|
-
"oclif": "^
|
|
25
|
+
"oclif": "^4.17.30"
|
|
29
26
|
},
|
|
30
27
|
"engines": {
|
|
31
28
|
"node": ">=14.0.0"
|
|
@@ -47,8 +44,8 @@
|
|
|
47
44
|
"postpack": "rm -f oclif.manifest.json",
|
|
48
45
|
"prepack": "oclif manifest && oclif readme",
|
|
49
46
|
"test": "nyc mocha --forbid-only \"test/**/*.test.js\"",
|
|
50
|
-
"test:unit": "mocha --timeout 10000 --forbid-only \"test/unit/**/*.test.js\" \"test/util
|
|
51
|
-
"test:unit:report": "nyc --extension .js mocha --forbid-only \"test/unit/**/*.test.js\" \"test/util
|
|
47
|
+
"test:unit": "mocha --timeout 10000 --forbid-only \"test/unit/**/*.test.js\" \"test/util/*.test.js\"",
|
|
48
|
+
"test:unit:report": "nyc --extension .js mocha --forbid-only \"test/unit/**/*.test.js\" \"test/util/*.test.js\"",
|
|
52
49
|
"version": "oclif readme && git add README.md",
|
|
53
50
|
"clean": "rm -rf ./node_modules tsconfig.build.tsbuildinfo"
|
|
54
51
|
},
|
|
@@ -65,4 +62,4 @@
|
|
|
65
62
|
}
|
|
66
63
|
},
|
|
67
64
|
"repository": "https://github.com/contentstack/cli"
|
|
68
|
-
}
|
|
65
|
+
}
|
|
@@ -17,60 +17,60 @@ class ExportToCsvCommand extends Command {
|
|
|
17
17
|
required: false,
|
|
18
18
|
multiple: false,
|
|
19
19
|
options: ['entries', 'users', 'teams', 'taxonomies'],
|
|
20
|
-
description:
|
|
20
|
+
description: 'Option to export data (entries, users, teams, taxonomies). <options: entries|users|teams|taxonomies>',
|
|
21
21
|
}),
|
|
22
22
|
alias: flags.string({
|
|
23
23
|
char: 'a',
|
|
24
|
-
description: 'Alias of the management token',
|
|
24
|
+
description: 'Alias of the management token.',
|
|
25
25
|
}),
|
|
26
26
|
org: flags.string({
|
|
27
27
|
multiple: false,
|
|
28
28
|
required: false,
|
|
29
|
-
description: 'Provide organization UID to clone org users',
|
|
29
|
+
description: 'Provide organization UID to clone org users.',
|
|
30
30
|
}),
|
|
31
31
|
'stack-name': flags.string({
|
|
32
32
|
char: 'n',
|
|
33
33
|
multiple: false,
|
|
34
34
|
required: false,
|
|
35
|
-
description: 'Name of the stack that needs to be created as
|
|
35
|
+
description: 'Name of the stack that needs to be created as CSV filename.',
|
|
36
36
|
}),
|
|
37
37
|
'stack-api-key': flags.string({
|
|
38
38
|
char: 'k',
|
|
39
39
|
multiple: false,
|
|
40
40
|
required: false,
|
|
41
|
-
description: 'API
|
|
41
|
+
description: 'API Key of the source stack.',
|
|
42
42
|
}),
|
|
43
43
|
'org-name': flags.string({
|
|
44
44
|
multiple: false,
|
|
45
45
|
required: false,
|
|
46
|
-
description: 'Name of the organization that needs to be created as
|
|
46
|
+
description: 'Name of the organization that needs to be created as CSV filename.',
|
|
47
47
|
}),
|
|
48
48
|
locale: flags.string({
|
|
49
49
|
required: false,
|
|
50
50
|
multiple: false,
|
|
51
|
-
description: 'Locale
|
|
51
|
+
description: 'Locale of entries that will be exported.',
|
|
52
52
|
}),
|
|
53
53
|
'content-type': flags.string({
|
|
54
|
-
description: 'Content type
|
|
54
|
+
description: 'Content type of entries that will be exported.',
|
|
55
55
|
required: false,
|
|
56
56
|
multiple: false,
|
|
57
57
|
}),
|
|
58
58
|
branch: flags.string({
|
|
59
|
-
description: 'Branch from which entries
|
|
59
|
+
description: 'Branch from which entries will be exported.',
|
|
60
60
|
multiple: false,
|
|
61
61
|
required: false,
|
|
62
62
|
}),
|
|
63
|
-
|
|
64
|
-
description: '
|
|
63
|
+
'team-uid': flags.string({
|
|
64
|
+
description: 'Provide the UID of a specific team in an organization.',
|
|
65
65
|
}),
|
|
66
66
|
'taxonomy-uid': flags.string({
|
|
67
|
-
description: 'Provide the taxonomy UID of the related terms you want to export',
|
|
67
|
+
description: 'Provide the taxonomy UID of the related terms you want to export.',
|
|
68
68
|
}),
|
|
69
69
|
delimiter: flags.string({
|
|
70
|
-
description: '[optional] Provide a delimiter to separate individual data fields within the CSV file.',
|
|
70
|
+
description: '[optional] Provide a delimiter to separate individual data fields within the CSV file. For example: cm:export-to-csv --delimiter \'|\'',
|
|
71
71
|
default: ',',
|
|
72
72
|
}),
|
|
73
|
-
};
|
|
73
|
+
};
|
|
74
74
|
|
|
75
75
|
async run() {
|
|
76
76
|
try {
|