@contentstack/cli-cm-export-to-csv 1.0.0 → 1.0.2

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 CHANGED
@@ -1,13 +1,13 @@
1
1
  @contentstack/cli-cm-export-to-csv
2
2
  =============
3
3
 
4
- The cm:export-to-csv command allows you to export the following data into a CSV file:
4
+ The cm:export-to-csv command allows you to export the following data into a CSV file:
5
5
  * Multiple stack’s content and structure (schema)
6
6
  * [Organization users’ details](https://www.contentstack.com/docs/owners-and-admins/organization-users/)
7
-
8
- To be able to export the content of a stack, you need to have access to it. Likewise, to export an organization’s user data, you need to be the “[owner](https://www.contentstack.com/docs/owners-and-admins/organization-roles/#organization-owner)” or an “[admin](https://www.contentstack.com/docs/owners-and-admins/organization-roles/#organization-admin)” user of that organization.
9
7
 
10
- Refer to the [Export Content to .CSV](https://www.contentstack.com/docs/developers/cli/export-content-to-csv-file/) file guide to learn more.
8
+ To be able to export the content of a stack, you need to have access to it. Likewise, to export an organization’s user data, you need to be the “[owner](https://www.contentstack.com/docs/owners-and-admins/organization-roles/#organization-owner)” or an “[admin](https://www.contentstack.com/docs/owners-and-admins/organization-roles/#organization-admin) user of that organization.
9
+
10
+ Refer to the [Export Content to .CSV](https://www.contentstack.com/docs/developers/cli/export-content-to-csv-file/) file guide to learn more.
11
11
 
12
12
  [![License](https://img.shields.io/npm/l/@contentstack/cli)](https://github.com/contentstack/cli/blob/main/LICENSE)
13
13
 
@@ -37,4 +37,4 @@ USAGE
37
37
  $ csdx cm:export-to-csv
38
38
  ```
39
39
 
40
- _See code: [src/commands/cm/export-to-csv.js](https://github.com/contentstack/cli/blob/v0.1.1-beta.1/packages/contentstack-export-to-csv/src/commands/cm/export-to-csv.js)_
40
+ _See code: [src/commands/cm/export-to-csv.js](https://github.com/contentstack/cli/blob/main/packages/contentstack-export-to-csv/src/commands/cm/export-to-csv.js)_
@@ -1 +1 @@
1
- {"version":"1.0.0","commands":{"cm:export-to-csv":{"id":"cm:export-to-csv","description":"Export entries or organization users to csv using this command","pluginName":"@contentstack/cli-cm-export-to-csv","pluginType":"core","aliases":[],"examples":["csdx cm:export-to-csv","","Exporting entries to csv","csdx cm:export-to-csv --action <entries> --locale <locale> --alias <management-token-alias> --content-type <content-type>","","Exporting entries to csv with stack name provided","csdx cm:export-to-csv --action <entries> --locale <locale> --alias <management-token-alias> --content-type <content-type> --stack-name <stack-name>","","Exporting organization users to csv","csdx cm:export-to-csv --action <users> --org <org-uid>","","Exporting organization users to csv with organization name provided","csdx cm:export-to-csv --action <users> --org <org-uid> --org-name <org-name>"],"flags":{"action":{"name":"action","type":"option","description":"Option to export data (entries, users)","required":false,"options":["entries","users"]},"alias":{"name":"alias","type":"option","char":"a","description":"Alias of the management token"},"org":{"name":"org","type":"option","description":"Provide organization UID to clone org users","required":false},"stack-name":{"name":"stack-name","type":"option","char":"n","description":"Name of the stack that needs to be created as csv filename.","required":false},"org-name":{"name":"org-name","type":"option","description":"Name of the organization that needs to be created as csv filename.","required":false},"locale":{"name":"locale","type":"option","description":"Locale for which entries need to be exported","required":false},"content-type":{"name":"content-type","type":"option","description":"Content type for which entries needs to be exported","required":false}},"args":[]}}}
1
+ {"version":"1.0.2","commands":{"cm:export-to-csv":{"id":"cm:export-to-csv","description":"Export entries or organization users to csv using this command","pluginName":"@contentstack/cli-cm-export-to-csv","pluginType":"core","aliases":[],"examples":["csdx cm:export-to-csv","","Exporting entries to csv","csdx cm:export-to-csv --action <entries> --locale <locale> --alias <management-token-alias> --content-type <content-type>","","Exporting entries to csv with stack name provided","csdx cm:export-to-csv --action <entries> --locale <locale> --alias <management-token-alias> --content-type <content-type> --stack-name <stack-name>","","Exporting organization users to csv","csdx cm:export-to-csv --action <users> --org <org-uid>","","Exporting organization users to csv with organization name provided","csdx cm:export-to-csv --action <users> --org <org-uid> --org-name <org-name>"],"flags":{"action":{"name":"action","type":"option","description":"Option to export data (entries, users)","required":false,"options":["entries","users"]},"alias":{"name":"alias","type":"option","char":"a","description":"Alias of the management token"},"org":{"name":"org","type":"option","description":"Provide organization UID to clone org users","required":false},"stack-name":{"name":"stack-name","type":"option","char":"n","description":"Name of the stack that needs to be created as csv filename.","required":false},"org-name":{"name":"org-name","type":"option","description":"Name of the organization that needs to be created as csv filename.","required":false},"locale":{"name":"locale","type":"option","description":"Locale for which entries need to be exported","required":false},"content-type":{"name":"content-type","type":"option","description":"Content type for which entries needs to be exported","required":false}},"args":[]}}}
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-export-to-csv",
3
3
  "description": "Export entities to csv",
4
- "version": "1.0.0",
4
+ "version": "1.0.2",
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.0.0",
9
- "@contentstack/cli-utilities": "^1.0.0",
8
+ "@contentstack/cli-command": "^1.0.2",
9
+ "@contentstack/cli-utilities": "^1.0.3",
10
10
  "@contentstack/management": "^1.3.0",
11
11
  "@oclif/command": "^1.8.16",
12
12
  "@oclif/config": "^1.18.3",
13
13
  "chalk": "^4.1.0",
14
14
  "fast-csv": "^4.3.6",
15
- "inquirer": "^7.3.3",
15
+ "inquirer": "^8.2.4",
16
16
  "inquirer-checkbox-plus-prompt": "^1.0.1",
17
17
  "mkdirp": "^1.0.4"
18
18
  },
@@ -43,23 +43,25 @@
43
43
  "cli",
44
44
  "plugin"
45
45
  ],
46
+ "scripts": {
47
+ "pack": "npm pack && mv *.tgz ../../build",
48
+ "postpack": "rm -f oclif.manifest.json",
49
+ "prepack": "oclif-dev manifest && oclif-dev readme",
50
+ "test": "nyc mocha --forbid-only \"test/**/*.test.js\"",
51
+ "version": "oclif-dev readme && git add README.md"
52
+ },
53
+ "csdxConfig": {
54
+ "expiredCommands": {}
55
+ },
56
+ "main": "./src/commands/cm/export-to-csv.js",
46
57
  "license": "MIT",
47
58
  "oclif": {
48
59
  "commands": "./src/commands",
49
60
  "bin": "csdx",
50
61
  "devPlugins": [
51
62
  "@oclif/plugin-help"
52
- ]
63
+ ],
64
+ "repositoryPrefix": "<%- repo %>/blob/main/packages/contentstack-export-to-csv/<%- commandPath %>"
53
65
  },
54
- "csdxConfig": {
55
- "expiredCommands": {}
56
- },
57
- "repository": "contentstack/cli",
58
- "scripts": {
59
- "postpack": "rm -f oclif.manifest.json",
60
- "posttest": "eslint .",
61
- "prepack": "oclif-dev manifest && oclif-dev readme",
62
- "test": "nyc --reporter=html mocha --forbid-only \"test/**/*.test.js\"",
63
- "version": "oclif-dev readme && git add README.md"
64
- }
66
+ "repository": "https://github.com/contentstack/cli"
65
67
  }
@@ -53,7 +53,6 @@ class ExportToCsvCommand extends Command {
53
53
  }
54
54
 
55
55
  get managementAPIClient() {
56
- debugger;
57
56
  this._managementAPIClient = ContentstackManagementSDK.client({ host: this.cmaHost, authtoken: this.getAuthToken });
58
57
  return this._managementAPIClient;
59
58
  }