@contentstack/cli-cm-bootstrap 1.1.7 → 1.2.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 CHANGED
@@ -14,8 +14,8 @@ This means that all the required steps such as stack, environment, and content t
14
14
  $ npm install -g @contentstack/cli-cm-bootstrap
15
15
  $ csdx COMMAND
16
16
  running command...
17
- $ csdx (-v|--version|version)
18
- @contentstack/cli-cm-bootstrap/1.1.7 linux-x64 node-v16.18.1
17
+ $ csdx (--version)
18
+ @contentstack/cli-cm-bootstrap/1.2.0 linux-x64 node-v16.19.0
19
19
  $ csdx --help [COMMAND]
20
20
  USAGE
21
21
  $ csdx COMMAND
@@ -44,29 +44,32 @@ Bootstrap contentstack apps
44
44
 
45
45
  ```
46
46
  USAGE
47
- $ csdx cm:bootstrap
48
-
49
- OPTIONS
50
- -k, --stack-api-key=stack-api-key Provide stack API key to seed content
51
- -n, --stack-name=stack-name Name of a new stack that will be created.
52
- -y, --yes=yes [Optional] Skip stack confirmation
53
-
54
- --app-name=app-name App name, reactjs-starter, nextjs-starter, gatsby-starter, angular-starter,
55
- nuxt-starter, vue-starter, stencil-starter
56
-
57
- --org=org Provide organization UID to create a new stack
58
-
59
- --project-dir=project-dir Directory to setup the project. If directory name has a space then provide the path
60
- as a string or escap the space using back slash eg: "../../test space" or
61
- ../../test\ space
47
+ $ csdx cm:bootstrap [--app-name <value>] [--project-dir <value>] [-k <value> | --org <value> | -n <value>] [-y
48
+ <value>]
49
+
50
+ FLAGS
51
+ -k, --stack-api-key=<value> Provide stack API key to seed content
52
+ -n, --stack-name=<value> Name of a new stack that will be created.
53
+ -y, --yes=<value> [Optional] Skip stack confirmation
54
+ --app-name=<value> App name, reactjs-starter, nextjs-starter, gatsby-starter, angular-starter, nuxt-starter,
55
+ vue-starter, stencil-starter
56
+ --org=<value> Provide organization UID to create a new stack
57
+ --project-dir=<value> Directory to setup the project. If directory name has a space then provide the path as a
58
+ string or escap the space using back slash eg: "../../test space" or ../../test\ space
59
+
60
+ DESCRIPTION
61
+ Bootstrap contentstack apps
62
62
 
63
63
  EXAMPLES
64
64
  $ csdx cm:bootstrap
65
+
65
66
  $ csdx cm:bootstrap --project-dir <path/to/setup/the/app>
67
+
66
68
  $ csdx cm:bootstrap --app-name "reactjs-starter" --project-dir <path/to/setup/the/app>
69
+
67
70
  $ csdx cm:bootstrap --app-name "reactjs-starter" --project-dir <path/to/setup/the/app> --stack-api-key "stack-api-key"
68
- $ csdx cm:bootstrap --app-name "reactjs-starter" --project-dir <path/to/setup/the/app> --org "your-org-uid"
69
- --stack-name "stack-name"
71
+
72
+ $ csdx cm:bootstrap --app-name "reactjs-starter" --project-dir <path/to/setup/the/app> --org "your-org-uid" --stack-name "stack-name"
70
73
  ```
71
74
 
72
75
  _See code: [src/commands/cm/bootstrap.ts](https://github.com/contentstack/cli/blob/main/packages/contentstack-bootstrap/src/commands/cm/bootstrap.ts)_
@@ -17,7 +17,7 @@ class BootstrapCommand extends cli_command_1.Command {
17
17
  return this.bootstrapManagementAPIClient;
18
18
  }
19
19
  async run() {
20
- const bootstrapCommandFlags = this.parse(BootstrapCommand).flags;
20
+ const { flags: bootstrapCommandFlags } = await this.parse(BootstrapCommand);
21
21
  try {
22
22
  if (!this.authToken) {
23
23
  this.error(messages_1.default.parse('CLI_BOOTSTRAP_LOGIN_FAILED'), {
@@ -1 +1,114 @@
1
- {"version":"1.1.7","commands":{"cm:bootstrap":{"id":"cm:bootstrap","description":"Bootstrap contentstack apps","pluginName":"@contentstack/cli-cm-bootstrap","pluginType":"core","aliases":[],"examples":["$ csdx cm:bootstrap","$ csdx cm:bootstrap --project-dir <path/to/setup/the/app>","$ csdx cm:bootstrap --app-name \"reactjs-starter\" --project-dir <path/to/setup/the/app>","$ csdx cm:bootstrap --app-name \"reactjs-starter\" --project-dir <path/to/setup/the/app> --stack-api-key \"stack-api-key\"","$ csdx cm:bootstrap --app-name \"reactjs-starter\" --project-dir <path/to/setup/the/app> --org \"your-org-uid\" --stack-name \"stack-name\""],"flags":{"app-name":{"name":"app-name","type":"option","description":"App name, reactjs-starter, nextjs-starter, gatsby-starter, angular-starter, nuxt-starter, vue-starter, stencil-starter","required":false},"project-dir":{"name":"project-dir","type":"option","description":"Directory to setup the project. If directory name has a space then provide the path as a string or escap the space using back slash eg: \"../../test space\" or ../../test\\ space","required":false},"app-type":{"name":"app-type","type":"option","description":"Sample or Starter app","hidden":true,"required":false},"stack-api-key":{"name":"stack-api-key","type":"option","char":"k","description":"Provide stack API key to seed content","required":false},"org":{"name":"org","type":"option","description":"Provide organization UID to create a new stack","required":false},"stack-name":{"name":"stack-name","type":"option","char":"n","description":"Name of a new stack that will be created.","required":false},"yes":{"name":"yes","type":"option","char":"y","description":"[Optional] Skip stack confirmation","required":false},"appName":{"name":"appName","type":"option","char":"a","description":"App name, reactjs-starter, nextjs-starter, gatsby-starter, angular-starter, nuxt-starter","hidden":true,"required":false},"directory":{"name":"directory","type":"option","char":"d","description":"Directory to set up the project. If directory name has a space then provide the path as a string or escape the space using backslash eg: \"../../test space\" or ../../test\\ space","hidden":true,"required":false},"appType":{"name":"appType","type":"option","char":"s","description":"Sample or Starter app","hidden":true,"required":false}},"args":[]}}}
1
+ {
2
+ "version": "1.2.0",
3
+ "commands": {
4
+ "cm:bootstrap": {
5
+ "id": "cm:bootstrap",
6
+ "description": "Bootstrap contentstack apps",
7
+ "strict": true,
8
+ "pluginName": "@contentstack/cli-cm-bootstrap",
9
+ "pluginAlias": "@contentstack/cli-cm-bootstrap",
10
+ "pluginType": "core",
11
+ "aliases": [],
12
+ "examples": [
13
+ "$ csdx cm:bootstrap",
14
+ "$ csdx cm:bootstrap --project-dir <path/to/setup/the/app>",
15
+ "$ csdx cm:bootstrap --app-name \"reactjs-starter\" --project-dir <path/to/setup/the/app>",
16
+ "$ csdx cm:bootstrap --app-name \"reactjs-starter\" --project-dir <path/to/setup/the/app> --stack-api-key \"stack-api-key\"",
17
+ "$ csdx cm:bootstrap --app-name \"reactjs-starter\" --project-dir <path/to/setup/the/app> --org \"your-org-uid\" --stack-name \"stack-name\""
18
+ ],
19
+ "flags": {
20
+ "app-name": {
21
+ "name": "app-name",
22
+ "type": "option",
23
+ "description": "App name, reactjs-starter, nextjs-starter, gatsby-starter, angular-starter, nuxt-starter, vue-starter, stencil-starter",
24
+ "required": false,
25
+ "multiple": false
26
+ },
27
+ "project-dir": {
28
+ "name": "project-dir",
29
+ "type": "option",
30
+ "description": "Directory to setup the project. If directory name has a space then provide the path as a string or escap the space using back slash eg: \"../../test space\" or ../../test\\ space",
31
+ "required": false,
32
+ "multiple": false
33
+ },
34
+ "app-type": {
35
+ "name": "app-type",
36
+ "type": "option",
37
+ "description": "Sample or Starter app",
38
+ "hidden": true,
39
+ "required": false,
40
+ "multiple": false
41
+ },
42
+ "stack-api-key": {
43
+ "name": "stack-api-key",
44
+ "type": "option",
45
+ "char": "k",
46
+ "description": "Provide stack API key to seed content",
47
+ "required": false,
48
+ "multiple": false,
49
+ "exclusive": [
50
+ "org",
51
+ "stack-name"
52
+ ]
53
+ },
54
+ "org": {
55
+ "name": "org",
56
+ "type": "option",
57
+ "description": "Provide organization UID to create a new stack",
58
+ "required": false,
59
+ "multiple": false,
60
+ "exclusive": [
61
+ "stack-api-key"
62
+ ]
63
+ },
64
+ "stack-name": {
65
+ "name": "stack-name",
66
+ "type": "option",
67
+ "char": "n",
68
+ "description": "Name of a new stack that will be created.",
69
+ "required": false,
70
+ "multiple": false,
71
+ "exclusive": [
72
+ "stack-api-key"
73
+ ]
74
+ },
75
+ "yes": {
76
+ "name": "yes",
77
+ "type": "option",
78
+ "char": "y",
79
+ "description": "[Optional] Skip stack confirmation",
80
+ "required": false,
81
+ "multiple": false
82
+ },
83
+ "appName": {
84
+ "name": "appName",
85
+ "type": "option",
86
+ "char": "a",
87
+ "description": "App name, reactjs-starter, nextjs-starter, gatsby-starter, angular-starter, nuxt-starter",
88
+ "hidden": true,
89
+ "required": false,
90
+ "multiple": false
91
+ },
92
+ "directory": {
93
+ "name": "directory",
94
+ "type": "option",
95
+ "char": "d",
96
+ "description": "Directory to set up the project. If directory name has a space then provide the path as a string or escape the space using backslash eg: \"../../test space\" or ../../test\\ space",
97
+ "hidden": true,
98
+ "required": false,
99
+ "multiple": false
100
+ },
101
+ "appType": {
102
+ "name": "appType",
103
+ "type": "option",
104
+ "char": "s",
105
+ "description": "Sample or Starter app",
106
+ "hidden": true,
107
+ "required": false,
108
+ "multiple": false
109
+ }
110
+ },
111
+ "args": {}
112
+ }
113
+ }
114
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contentstack/cli-cm-bootstrap",
3
3
  "description": "Bootstrap contentstack apps",
4
- "version": "1.1.7",
4
+ "version": "1.2.0",
5
5
  "author": "Contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "scripts": {
@@ -10,26 +10,24 @@
10
10
  "compile": "tsc -b tsconfig.json",
11
11
  "postpack": "rm -f oclif.manifest.json",
12
12
  "posttest": "eslint . --ext .ts --config .eslintrc",
13
- "prepack": "npm run build && oclif-dev manifest && oclif-dev readme",
14
- "version": "oclif-dev readme && git add README.md",
13
+ "prepack": "npm run build && oclif manifest && oclif readme",
14
+ "version": "oclif readme && git add README.md",
15
15
  "test": "npm run build && npm run test:e2e",
16
16
  "test:e2e": "nyc mocha \"test/**/*.test.js\"",
17
17
  "test:report": "nyc --reporter=lcov mocha \"test/**/*.test.js\""
18
18
  },
19
19
  "dependencies": {
20
- "@contentstack/cli-cm-seed": "^1.1.6",
21
- "@contentstack/cli-command": "^1.0.4",
22
- "@contentstack/cli-utilities": "^1.0.5",
23
- "@contentstack/management": "^1.6.0",
24
- "@oclif/command": "^1.8.16",
25
- "@oclif/config": "^1.18.3",
20
+ "@contentstack/cli-cm-seed": "^1.2.0",
21
+ "@contentstack/cli-command": "^1.1.0",
22
+ "@contentstack/cli-utilities": "^1.1.0",
23
+ "@contentstack/management": "^1.6.1",
26
24
  "inquirer": "8.2.4",
27
25
  "mkdirp": "^1.0.4",
28
26
  "tar": "^6.0.5"
29
27
  },
30
28
  "devDependencies": {
31
- "@oclif/dev-cli": "^1.22.2",
32
- "@oclif/test": "^1.2.8",
29
+ "oclif": "^3.1.2",
30
+ "@oclif/test": "^2.2.10",
33
31
  "@types/inquirer": "^9.0.3",
34
32
  "@types/mkdirp": "^1.0.1",
35
33
  "@types/node": "^14.14.32",