Skip to content

Commit 4fd4f88

Browse files
Merge pull request #262 from contentstack/development
DX | 01-07-2024 | Release
2 parents c380787 + 6afde49 commit 4fd4f88

21 files changed

+7314
-1255
lines changed

README.md

Lines changed: 54 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ $ npm install -g @contentstack/apps-cli
2020
$ csdx COMMAND
2121
running command...
2222
$ csdx (--version|-v)
23-
@contentstack/apps-cli/1.1.1 darwin-arm64 node-v18.16.0
23+
@contentstack/apps-cli/1.2.0 darwin-arm64 node-v18.20.2
2424
$ csdx --help [COMMAND]
2525
USAGE
2626
$ csdx COMMAND
@@ -33,6 +33,7 @@ USAGE
3333
* [`csdx app`](#csdx-app)
3434
* [`csdx app:create`](#csdx-appcreate)
3535
* [`csdx app:delete`](#csdx-appdelete)
36+
* [`csdx app:deploy`](#csdx-appdeploy)
3637
* [`csdx app:get`](#csdx-appget)
3738
* [`csdx app:install`](#csdx-appinstall)
3839
* [`csdx app:reinstall`](#csdx-appreinstall)
@@ -66,23 +67,22 @@ EXAMPLES
6667
$ csdx app:reinstall
6768
```
6869

69-
_See code: [src/commands/app/index.ts](https://github.com/contentstack/apps-cli/blob/v1.1.1/src/commands/app/index.ts)_
70+
_See code: [src/commands/app/index.ts](https://github.com/contentstack/apps-cli/blob/v1.2.0/src/commands/app/index.ts)_
7071

7172
## `csdx app:create`
7273

7374
Create a new app in Developer Hub and optionally clone a boilerplate locally.
7475

7576
```
7677
USAGE
77-
$ csdx app:create [--org <value>] [-n <value>] [--app-type stack|organization] [-c <value>] [-d <value>]
78+
$ csdx app:create [-n <value>] [--app-type stack|organization] [-c <value>] [-d <value>]
7879
7980
FLAGS
8081
-c, --config=<value> Path of the external config
8182
-d, --data-dir=<value> Current working directory.
8283
-n, --name=<value> [default: app-boilerplate] Name of the app to be created
8384
--app-type=<option> [default: stack] Type of app
8485
<options: stack|organization>
85-
--org=<value> Provide the organization UID to fetch the app details for the operation.
8686
8787
DESCRIPTION
8888
Create a new app in Developer Hub and optionally clone a boilerplate locally.
@@ -97,19 +97,18 @@ EXAMPLES
9797
$ csdx app:create --name App-3 --app-type organization --org <UID> -d ./boilerplate -c ./external-config.json
9898
```
9999

100-
_See code: [src/commands/app/create.ts](https://github.com/contentstack/apps-cli/blob/v1.1.1/src/commands/app/create.ts)_
100+
_See code: [src/commands/app/create.ts](https://github.com/contentstack/apps-cli/blob/v1.2.0/src/commands/app/create.ts)_
101101

102102
## `csdx app:delete`
103103

104104
Delete app from marketplace
105105

106106
```
107107
USAGE
108-
$ csdx app:delete [--org <value>] [--app-uid <value>]
108+
$ csdx app:delete [--app-uid <value>]
109109
110110
FLAGS
111111
--app-uid=<value> Provide the app UID of an existing app.
112-
--org=<value> Provide the organization UID to fetch the app details for the operation.
113112
114113
DESCRIPTION
115114
Delete app from marketplace
@@ -122,22 +121,58 @@ EXAMPLES
122121
$ csdx app:delete --app-uid <value> --org <value> -d ./boilerplate
123122
```
124123

125-
_See code: [src/commands/app/delete.ts](https://github.com/contentstack/apps-cli/blob/v1.1.1/src/commands/app/delete.ts)_
124+
_See code: [src/commands/app/delete.ts](https://github.com/contentstack/apps-cli/blob/v1.2.0/src/commands/app/delete.ts)_
125+
126+
## `csdx app:deploy`
127+
128+
Deploy an app
129+
130+
```
131+
USAGE
132+
$ csdx app:deploy [--app-uid <value>] [--hosting-type Hosting with Launch|Custom Hosting] [--app-url <value>]
133+
[--launch-project existing|new] [-c <value>]
134+
135+
FLAGS
136+
-c, --config=<value> [optional] Please enter the path of the config file.
137+
--app-uid=<value> Provide the app UID of an existing app.
138+
--app-url=<value> Please enter the URL of the app you want to deploy.
139+
--hosting-type=<option> Choose a valid Hosting Type.
140+
<options: Hosting with Launch|Custom Hosting>
141+
--launch-project=<option> Choose a new or an existing Launch project.
142+
<options: existing|new>
143+
144+
DESCRIPTION
145+
Deploy an app
146+
147+
EXAMPLES
148+
$ csdx app:deploy
149+
150+
$ csdx app:deploy --org <UID> --app-uid <APP-UID-1>
151+
152+
$ csdx app:deploy --org <UID> --app-uid <APP-UID-1> --hosting-type <Custom Hosting> --app-url <https://localhost:3000>
153+
154+
$ csdx app:deploy --org <UID> --app-uid <APP-UID-1> --hosting-type <Hosting with Launch> --launch-project <existing>
155+
156+
$ csdx app:deploy --org <UID> --app-uid <APP-UID-1> --hosting-type <Hosting with Launch> --launch-project <new>
157+
158+
$ csdx app:deploy --org <UID> --app-uid <APP-UID-1> --hosting-type <Hosting with Launch> --launch-project <new> --config <config-path>
159+
```
160+
161+
_See code: [src/commands/app/deploy.ts](https://github.com/contentstack/apps-cli/blob/v1.2.0/src/commands/app/deploy.ts)_
126162

127163
## `csdx app:get`
128164

129165
Get details of an app in developer hub
130166

131167
```
132168
USAGE
133-
$ csdx app:get [--org <value>] [--app-uid <value>] [--app-type stack|organization] [-d <value>]
169+
$ csdx app:get [--app-uid <value>] [--app-type stack|organization] [-d <value>]
134170
135171
FLAGS
136172
-d, --data-dir=<value> Current working directory.
137173
--app-type=<option> [default: stack] Type of app
138174
<options: stack|organization>
139175
--app-uid=<value> Provide the app UID of an existing app.
140-
--org=<value> Provide the organization UID to fetch the app details for the operation.
141176
142177
DESCRIPTION
143178
Get details of an app in developer hub
@@ -152,19 +187,18 @@ EXAMPLES
152187
$ csdx app:get --org <value> --app-uid <value> --app-type organization
153188
```
154189

155-
_See code: [src/commands/app/get.ts](https://github.com/contentstack/apps-cli/blob/v1.1.1/src/commands/app/get.ts)_
190+
_See code: [src/commands/app/get.ts](https://github.com/contentstack/apps-cli/blob/v1.2.0/src/commands/app/get.ts)_
156191

157192
## `csdx app:install`
158193

159194
Install an app from the marketplace
160195

161196
```
162197
USAGE
163-
$ csdx app:install [--org <value>] [--app-uid <value>] [--stack-api-key <value>]
198+
$ csdx app:install [--app-uid <value>] [--stack-api-key <value>]
164199
165200
FLAGS
166201
--app-uid=<value> Provide the app UID of an existing app.
167-
--org=<value> Provide the organization UID to fetch the app details for the operation.
168202
--stack-api-key=<value> API key of the stack where the app operation is to be performed.
169203
170204
DESCRIPTION
@@ -178,19 +212,18 @@ EXAMPLES
178212
$ csdx app:install --org <UID> --app-uid <APP-UID-1> --stack-api-key <STACK-API-KEY-1>
179213
```
180214

181-
_See code: [src/commands/app/install.ts](https://github.com/contentstack/apps-cli/blob/v1.1.1/src/commands/app/install.ts)_
215+
_See code: [src/commands/app/install.ts](https://github.com/contentstack/apps-cli/blob/v1.2.0/src/commands/app/install.ts)_
182216

183217
## `csdx app:reinstall`
184218

185219
Reinstall an app from the marketplace
186220

187221
```
188222
USAGE
189-
$ csdx app:reinstall [--org <value>] [--app-uid <value>] [--stack-api-key <value>]
223+
$ csdx app:reinstall [--app-uid <value>] [--stack-api-key <value>]
190224
191225
FLAGS
192226
--app-uid=<value> Provide the app UID of an existing app.
193-
--org=<value> Provide the organization UID to fetch the app details for the operation.
194227
--stack-api-key=<value> API key of the stack where the app operation is to be performed.
195228
196229
DESCRIPTION
@@ -204,20 +237,19 @@ EXAMPLES
204237
$ csdx app:reinstall --org <UID> --app-uid <APP-UID-1> --stack-api-key <STACK-API-KEY-1>
205238
```
206239

207-
_See code: [src/commands/app/reinstall.ts](https://github.com/contentstack/apps-cli/blob/v1.1.1/src/commands/app/reinstall.ts)_
240+
_See code: [src/commands/app/reinstall.ts](https://github.com/contentstack/apps-cli/blob/v1.2.0/src/commands/app/reinstall.ts)_
208241

209242
## `csdx app:uninstall`
210243

211244
Uninstall an app
212245

213246
```
214247
USAGE
215-
$ csdx app:uninstall [--org <value>] [--app-uid <value>] [--installation-uid <value>] [--uninstall-all]
248+
$ csdx app:uninstall [--app-uid <value>] [--installation-uid <value>] [--uninstall-all]
216249
217250
FLAGS
218251
--app-uid=<value> Provide the app UID of an existing app.
219252
--installation-uid=<value> Provide the installation ID of the app that needs to be uninstalled.
220-
--org=<value> Provide the organization UID to fetch the app details for the operation.
221253
--uninstall-all Please select stacks from where the app must be uninstalled.
222254
223255
DESCRIPTION
@@ -231,19 +263,18 @@ EXAMPLES
231263
$ csdx app:uninstall --org <UID> --app-uid <APP-UID-1> --installation-uid <INSTALLATION-UID-1>
232264
```
233265

234-
_See code: [src/commands/app/uninstall.ts](https://github.com/contentstack/apps-cli/blob/v1.1.1/src/commands/app/uninstall.ts)_
266+
_See code: [src/commands/app/uninstall.ts](https://github.com/contentstack/apps-cli/blob/v1.2.0/src/commands/app/uninstall.ts)_
235267

236268
## `csdx app:update`
237269

238270
Update the existing app in developer hub
239271

240272
```
241273
USAGE
242-
$ csdx app:update [--org <value>] [--app-manifest <value>]
274+
$ csdx app:update [--app-manifest <value>]
243275
244276
FLAGS
245277
--app-manifest=<value> Path to the app manifest.json file:
246-
--org=<value> Provide the organization UID to fetch the app details for the operation.
247278
248279
DESCRIPTION
249280
Update the existing app in developer hub
@@ -254,5 +285,5 @@ EXAMPLES
254285
$ csdx app:update --app-manifest ./boilerplate/manifest.json
255286
```
256287

257-
_See code: [src/commands/app/update.ts](https://github.com/contentstack/apps-cli/blob/v1.1.1/src/commands/app/update.ts)_
288+
_See code: [src/commands/app/update.ts](https://github.com/contentstack/apps-cli/blob/v1.2.0/src/commands/app/update.ts)_
258289
<!-- commandsstop -->

examples/create-launch-project.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "app name",
3+
"type": "GitHub",
4+
"environment": "Default",
5+
"framework": "NextJs",
6+
"build-command": "npm run build",
7+
"out-dir": "./.next",
8+
"branch": "master"
9+
}

0 commit comments

Comments
 (0)