Skip to content

Commit 95b0bf7

Browse files
authored
Merge pull request #292 from contentstack/staging
DX | 05-08-2024 | Hotfix
2 parents abd9a0d + 7f9ee93 commit 95b0bf7

File tree

15 files changed

+1746
-2968
lines changed

15 files changed

+1746
-2968
lines changed

.github/workflows/sca-scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ jobs:
1212
env:
1313
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
1414
with:
15-
args: --all-projects --fail-on=all
15+
args: --all-projects --fail-on=all --strict-out-of-sync=false

README.md

Lines changed: 34 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.3.0 darwin-arm64 node-v18.16.0
23+
@contentstack/apps-cli/1.3.1 darwin-arm64 node-v18.20.2
2424
$ csdx --help [COMMAND]
2525
USAGE
2626
$ csdx COMMAND
@@ -54,20 +54,22 @@ DESCRIPTION
5454
EXAMPLES
5555
$ csdx app:create
5656
57-
$ csdx app:get
57+
$ csdx app:delete
5858
59-
$ csdx app:update
59+
$ csdx app:deploy
6060
61-
$ csdx app:delete
61+
$ csdx app:get
6262
6363
$ csdx app:install
6464
65+
$ csdx app:reinstall
66+
6567
$ csdx app:uninstall
6668
67-
$ csdx app:reinstall
69+
$ csdx app:update
6870
```
6971

70-
_See code: [src/commands/app/index.ts](https://github.com/contentstack/apps-cli/blob/v1.3.0/src/commands/app/index.ts)_
72+
_See code: [src/commands/app/index.ts](https://github.com/contentstack/apps-cli/blob/v1.3.1/src/commands/app/index.ts)_
7173

7274
## `csdx app:create`
7375

@@ -76,15 +78,17 @@ Create a new app in Developer Hub and optionally clone a boilerplate locally.
7678
```
7779
USAGE
7880
$ csdx app:create [-n <value>] [--app-type stack|organization] [-c <value>] [-d <value>] [--boilerplate
79-
<value>]
81+
<value>] [--org <value>]
8082
8183
FLAGS
8284
-c, --config=<value> Path of the external config
8385
-d, --data-dir=<value> Current working directory.
8486
-n, --name=<value> Name of the app to be created
8587
--app-type=<option> [default: stack] Type of app
8688
<options: stack|organization>
87-
--boilerplate=<value> Provide a boilerplate. <options: App Boilerplate|DAM App Boilerplate|Ecommerce App Boilerplate>
89+
--boilerplate=<value> Provide a boilerplate. <options: App Boilerplate|DAM App Boilerplate|Ecommerce App
90+
Boilerplate>
91+
--org=<value> Provide the organization UID to fetch the app details for the operation.
8892
8993
DESCRIPTION
9094
Create a new app in Developer Hub and optionally clone a boilerplate locally.
@@ -105,18 +109,19 @@ EXAMPLES
105109
$ csdx app:create --name App-4 --app-type organization --org <UID> --boilerplate <Ecommerce App Boilerplate>
106110
```
107111

108-
_See code: [src/commands/app/create.ts](https://github.com/contentstack/apps-cli/blob/v1.3.0/src/commands/app/create.ts)_
112+
_See code: [src/commands/app/create.ts](https://github.com/contentstack/apps-cli/blob/v1.3.1/src/commands/app/create.ts)_
109113

110114
## `csdx app:delete`
111115

112116
Delete app from marketplace
113117

114118
```
115119
USAGE
116-
$ csdx app:delete [--app-uid <value>]
120+
$ csdx app:delete [--app-uid <value>] [--org <value>]
117121
118122
FLAGS
119123
--app-uid=<value> Provide the app UID of an existing app.
124+
--org=<value> Provide the organization UID to fetch the app details for the operation.
120125
121126
DESCRIPTION
122127
Delete app from marketplace
@@ -129,7 +134,7 @@ EXAMPLES
129134
$ csdx app:delete --app-uid <value> --org <value> -d ./boilerplate
130135
```
131136

132-
_See code: [src/commands/app/delete.ts](https://github.com/contentstack/apps-cli/blob/v1.3.0/src/commands/app/delete.ts)_
137+
_See code: [src/commands/app/delete.ts](https://github.com/contentstack/apps-cli/blob/v1.3.1/src/commands/app/delete.ts)_
133138

134139
## `csdx app:deploy`
135140

@@ -138,7 +143,7 @@ Deploy an app
138143
```
139144
USAGE
140145
$ csdx app:deploy [--app-uid <value>] [--hosting-type Hosting with Launch|Custom Hosting] [--app-url <value>]
141-
[--launch-project existing|new] [-c <value>]
146+
[--launch-project existing|new] [-c <value>] [--org <value>]
142147
143148
FLAGS
144149
-c, --config=<value> [optional] Please enter the path of the config file.
@@ -148,6 +153,7 @@ FLAGS
148153
<options: Hosting with Launch|Custom Hosting>
149154
--launch-project=<option> Choose a new or an existing Launch project.
150155
<options: existing|new>
156+
--org=<value> Provide the organization UID to fetch the app details for the operation.
151157
152158
DESCRIPTION
153159
Deploy an app
@@ -166,21 +172,22 @@ EXAMPLES
166172
$ csdx app:deploy --org <UID> --app-uid <APP-UID-1> --hosting-type <Hosting with Launch> --launch-project <new> --config <config-path>
167173
```
168174

169-
_See code: [src/commands/app/deploy.ts](https://github.com/contentstack/apps-cli/blob/v1.3.0/src/commands/app/deploy.ts)_
175+
_See code: [src/commands/app/deploy.ts](https://github.com/contentstack/apps-cli/blob/v1.3.1/src/commands/app/deploy.ts)_
170176

171177
## `csdx app:get`
172178

173179
Get details of an app in developer hub
174180

175181
```
176182
USAGE
177-
$ csdx app:get [--app-uid <value>] [--app-type stack|organization] [-d <value>]
183+
$ csdx app:get [--app-uid <value>] [--app-type stack|organization] [-d <value>] [--org <value>]
178184
179185
FLAGS
180186
-d, --data-dir=<value> Current working directory.
181187
--app-type=<option> [default: stack] Type of app
182188
<options: stack|organization>
183189
--app-uid=<value> Provide the app UID of an existing app.
190+
--org=<value> Provide the organization UID to fetch the app details for the operation.
184191
185192
DESCRIPTION
186193
Get details of an app in developer hub
@@ -195,18 +202,19 @@ EXAMPLES
195202
$ csdx app:get --org <value> --app-uid <value> --app-type organization
196203
```
197204

198-
_See code: [src/commands/app/get.ts](https://github.com/contentstack/apps-cli/blob/v1.3.0/src/commands/app/get.ts)_
205+
_See code: [src/commands/app/get.ts](https://github.com/contentstack/apps-cli/blob/v1.3.1/src/commands/app/get.ts)_
199206

200207
## `csdx app:install`
201208

202209
Install an app from the marketplace
203210

204211
```
205212
USAGE
206-
$ csdx app:install [--app-uid <value>] [--stack-api-key <value>]
213+
$ csdx app:install [--app-uid <value>] [--stack-api-key <value>] [--org <value>]
207214
208215
FLAGS
209216
--app-uid=<value> Provide the app UID of an existing app.
217+
--org=<value> Provide the organization UID to fetch the app details for the operation.
210218
--stack-api-key=<value> API key of the stack where the app operation is to be performed.
211219
212220
DESCRIPTION
@@ -220,18 +228,19 @@ EXAMPLES
220228
$ csdx app:install --org <UID> --app-uid <APP-UID-1> --stack-api-key <STACK-API-KEY-1>
221229
```
222230

223-
_See code: [src/commands/app/install.ts](https://github.com/contentstack/apps-cli/blob/v1.3.0/src/commands/app/install.ts)_
231+
_See code: [src/commands/app/install.ts](https://github.com/contentstack/apps-cli/blob/v1.3.1/src/commands/app/install.ts)_
224232

225233
## `csdx app:reinstall`
226234

227235
Reinstall an app from the marketplace
228236

229237
```
230238
USAGE
231-
$ csdx app:reinstall [--app-uid <value>] [--stack-api-key <value>]
239+
$ csdx app:reinstall [--app-uid <value>] [--stack-api-key <value>] [--org <value>]
232240
233241
FLAGS
234242
--app-uid=<value> Provide the app UID of an existing app.
243+
--org=<value> Provide the organization UID to fetch the app details for the operation.
235244
--stack-api-key=<value> API key of the stack where the app operation is to be performed.
236245
237246
DESCRIPTION
@@ -245,19 +254,20 @@ EXAMPLES
245254
$ csdx app:reinstall --org <UID> --app-uid <APP-UID-1> --stack-api-key <STACK-API-KEY-1>
246255
```
247256

248-
_See code: [src/commands/app/reinstall.ts](https://github.com/contentstack/apps-cli/blob/v1.3.0/src/commands/app/reinstall.ts)_
257+
_See code: [src/commands/app/reinstall.ts](https://github.com/contentstack/apps-cli/blob/v1.3.1/src/commands/app/reinstall.ts)_
249258

250259
## `csdx app:uninstall`
251260

252261
Uninstall an app
253262

254263
```
255264
USAGE
256-
$ csdx app:uninstall [--app-uid <value>] [--installation-uid <value>] [--uninstall-all]
265+
$ csdx app:uninstall [--app-uid <value>] [--installation-uid <value>] [--uninstall-all] [--org <value>]
257266
258267
FLAGS
259268
--app-uid=<value> Provide the app UID of an existing app.
260269
--installation-uid=<value> Provide the installation ID of the app that needs to be uninstalled.
270+
--org=<value> Provide the organization UID to fetch the app details for the operation.
261271
--uninstall-all Please select stacks from where the app must be uninstalled.
262272
263273
DESCRIPTION
@@ -271,18 +281,19 @@ EXAMPLES
271281
$ csdx app:uninstall --org <UID> --app-uid <APP-UID-1> --installation-uid <INSTALLATION-UID-1>
272282
```
273283

274-
_See code: [src/commands/app/uninstall.ts](https://github.com/contentstack/apps-cli/blob/v1.3.0/src/commands/app/uninstall.ts)_
284+
_See code: [src/commands/app/uninstall.ts](https://github.com/contentstack/apps-cli/blob/v1.3.1/src/commands/app/uninstall.ts)_
275285

276286
## `csdx app:update`
277287

278288
Update the existing app in developer hub
279289

280290
```
281291
USAGE
282-
$ csdx app:update [--app-manifest <value>]
292+
$ csdx app:update [--app-manifest <value>] [--org <value>]
283293
284294
FLAGS
285295
--app-manifest=<value> Path to the app manifest.json file:
296+
--org=<value> Provide the organization UID to fetch the app details for the operation.
286297
287298
DESCRIPTION
288299
Update the existing app in developer hub
@@ -293,5 +304,5 @@ EXAMPLES
293304
$ csdx app:update --app-manifest ./boilerplate/manifest.json
294305
```
295306

296-
_See code: [src/commands/app/update.ts](https://github.com/contentstack/apps-cli/blob/v1.3.0/src/commands/app/update.ts)_
307+
_See code: [src/commands/app/update.ts](https://github.com/contentstack/apps-cli/blob/v1.3.1/src/commands/app/update.ts)_
297308
<!-- commandsstop -->

0 commit comments

Comments
 (0)