Skip to content

Commit 06743eb

Browse files
authored
Merge pull request #366 from contentstack/staging
Oclif v4 upgrade | DX | CLI External Plugins Oclif V4 upgrade release
2 parents 04e9f2f + 94638f7 commit 06743eb

File tree

17 files changed

+14966
-13986
lines changed

17 files changed

+14966
-13986
lines changed

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Contentstack
3+
Copyright (c) 2025 Contentstack
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

README.md

Lines changed: 43 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<!-- Insert Apps CLI version here -->
33

44
# @contentstack/apps-cli
5+
56
Contentstack lets you develop apps in your organization using the Developer Hub portal. With the Apps CLI plugin, Contentstack CLI allows you to perform the CRUD operations on your app in Developer Hub and then use the app in your organization or stack by installing or uninstalling your app as required.
67

78
## How to install this plugin
@@ -20,7 +21,7 @@ $ npm install -g @contentstack/apps-cli
2021
$ csdx COMMAND
2122
running command...
2223
$ csdx (--version|-v)
23-
@contentstack/apps-cli/1.3.4 darwin-arm64 node-v22.2.0
24+
@contentstack/apps-cli/1.5.0 darwin-arm64 node-v22.13.1
2425
$ csdx --help [COMMAND]
2526
USAGE
2627
$ csdx COMMAND
@@ -29,6 +30,7 @@ USAGE
2930
<!-- usagestop -->
3031

3132
# Commands
33+
3234
<!-- commands -->
3335
* [`csdx app`](#csdx-app)
3436
* [`csdx app:create`](#csdx-appcreate)
@@ -69,26 +71,26 @@ EXAMPLES
6971
$ csdx app:update
7072
```
7173

72-
_See code: [src/commands/app/index.ts](https://github.com/contentstack/apps-cli/blob/v1.3.4/src/commands/app/index.ts)_
74+
_See code: [src/commands/app/index.ts](https://github.com/contentstack/apps-cli/blob/v1.5.0/src/commands/app/index.ts)_
7375

7476
## `csdx app:create`
7577

7678
Create a new app in Developer Hub and optionally clone a boilerplate locally.
7779

7880
```
7981
USAGE
80-
$ csdx app:create [-n <value>] [--app-type stack|organization] [-c <value>] [-d <value>] [--boilerplate
81-
<value>] [--org <value>]
82+
$ csdx app:create [--org <value>] [-n <value>] [--app-type stack|organization] [-c <value>] [-d <value>]
83+
[--boilerplate <value>]
8284
8385
FLAGS
84-
-c, --config=<value> Path of the external config
85-
-d, --data-dir=<value> Current working directory.
86-
-n, --name=<value> Name of the app to be created
87-
--app-type=<option> [default: stack] Type of app
88-
<options: stack|organization>
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.
86+
-c, --config=<value> Path of the external config
87+
-d, --data-dir=<value> Current working directory.
88+
-n, --name=<value> Name of the app to be created
89+
--app-type=<option> [default: stack] Type of app
90+
<options: stack|organization>
91+
--boilerplate=<value> Provide a boilerplate. <options: App Boilerplate|DAM App Boilerplate|Ecommerce App
92+
Boilerplate>
93+
--org=<value> Provide the organization UID to fetch the app details for the operation.
9294
9395
DESCRIPTION
9496
Create a new app in Developer Hub and optionally clone a boilerplate locally.
@@ -109,15 +111,15 @@ EXAMPLES
109111
$ csdx app:create --name App-4 --app-type organization --org <UID> --boilerplate <Ecommerce App Boilerplate>
110112
```
111113

112-
_See code: [src/commands/app/create.ts](https://github.com/contentstack/apps-cli/blob/v1.3.4/src/commands/app/create.ts)_
114+
_See code: [src/commands/app/create.ts](https://github.com/contentstack/apps-cli/blob/v1.5.0/src/commands/app/create.ts)_
113115

114116
## `csdx app:delete`
115117

116118
Delete app from marketplace
117119

118120
```
119121
USAGE
120-
$ csdx app:delete [--app-uid <value>] [--org <value>]
122+
$ csdx app:delete [--org <value>] [--app-uid <value>]
121123
122124
FLAGS
123125
--app-uid=<value> Provide the app UID of an existing app.
@@ -134,26 +136,26 @@ EXAMPLES
134136
$ csdx app:delete --app-uid <value> --org <value> -d ./boilerplate
135137
```
136138

137-
_See code: [src/commands/app/delete.ts](https://github.com/contentstack/apps-cli/blob/v1.3.4/src/commands/app/delete.ts)_
139+
_See code: [src/commands/app/delete.ts](https://github.com/contentstack/apps-cli/blob/v1.5.0/src/commands/app/delete.ts)_
138140

139141
## `csdx app:deploy`
140142

141143
Deploy an app
142144

143145
```
144146
USAGE
145-
$ csdx app:deploy [--app-uid <value>] [--hosting-type hosting-with-launch|custom-hosting] [--app-url <value>]
146-
[--launch-project existing|new] [-c <value>] [--org <value>]
147+
$ csdx app:deploy [--org <value>] [--app-uid <value>] [--hosting-type hosting-with-launch|custom-hosting]
148+
[--app-url <value>] [--launch-project existing|new] [-c <value>]
147149
148150
FLAGS
149-
-c, --config=<value> [optional] Please enter the path of the config file.
150-
--app-uid=<value> Provide the app UID of an existing app.
151-
--app-url=<value> Please enter the URL of the app you want to deploy.
152-
--hosting-type=<option> Choose a valid Hosting Type.
153-
<options: hosting-with-launch|custom-hosting>
154-
--launch-project=<option> Choose a new or an existing Launch project.
155-
<options: existing|new>
156-
--org=<value> Provide the organization UID to fetch the app details for the operation.
151+
-c, --config=<value> [optional] Please enter the path of the config file.
152+
--app-uid=<value> Provide the app UID of an existing app.
153+
--app-url=<value> Please enter the URL of the app you want to deploy.
154+
--hosting-type=<option> Choose a valid Hosting Type.
155+
<options: hosting-with-launch|custom-hosting>
156+
--launch-project=<option> Choose a new or an existing Launch project.
157+
<options: existing|new>
158+
--org=<value> Provide the organization UID to fetch the app details for the operation.
157159
158160
DESCRIPTION
159161
Deploy an app
@@ -172,22 +174,22 @@ EXAMPLES
172174
$ csdx app:deploy --org <UID> --app-uid <APP-UID-1> --hosting-type <hosting-with-launch> --launch-project <new> --config <config-path>
173175
```
174176

175-
_See code: [src/commands/app/deploy.ts](https://github.com/contentstack/apps-cli/blob/v1.3.4/src/commands/app/deploy.ts)_
177+
_See code: [src/commands/app/deploy.ts](https://github.com/contentstack/apps-cli/blob/v1.5.0/src/commands/app/deploy.ts)_
176178

177179
## `csdx app:get`
178180

179181
Get details of an app in developer hub
180182

181183
```
182184
USAGE
183-
$ csdx app:get [--app-uid <value>] [--app-type stack|organization] [-d <value>] [--org <value>]
185+
$ csdx app:get [--org <value>] [--app-uid <value>] [--app-type stack|organization] [-d <value>]
184186
185187
FLAGS
186-
-d, --data-dir=<value> Current working directory.
187-
--app-type=<option> [default: stack] Type of app
188-
<options: stack|organization>
189-
--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.
188+
-d, --data-dir=<value> Current working directory.
189+
--app-type=<option> [default: stack] Type of app
190+
<options: stack|organization>
191+
--app-uid=<value> Provide the app UID of an existing app.
192+
--org=<value> Provide the organization UID to fetch the app details for the operation.
191193
192194
DESCRIPTION
193195
Get details of an app in developer hub
@@ -202,15 +204,15 @@ EXAMPLES
202204
$ csdx app:get --org <value> --app-uid <value> --app-type organization
203205
```
204206

205-
_See code: [src/commands/app/get.ts](https://github.com/contentstack/apps-cli/blob/v1.3.4/src/commands/app/get.ts)_
207+
_See code: [src/commands/app/get.ts](https://github.com/contentstack/apps-cli/blob/v1.5.0/src/commands/app/get.ts)_
206208

207209
## `csdx app:install`
208210

209211
Install an app from the marketplace
210212

211213
```
212214
USAGE
213-
$ csdx app:install [--app-uid <value>] [--stack-api-key <value>] [--org <value>]
215+
$ csdx app:install [--org <value>] [--app-uid <value>] [--stack-api-key <value>]
214216
215217
FLAGS
216218
--app-uid=<value> Provide the app UID of an existing app.
@@ -228,15 +230,15 @@ EXAMPLES
228230
$ csdx app:install --org <UID> --app-uid <APP-UID-1> --stack-api-key <STACK-API-KEY-1>
229231
```
230232

231-
_See code: [src/commands/app/install.ts](https://github.com/contentstack/apps-cli/blob/v1.3.4/src/commands/app/install.ts)_
233+
_See code: [src/commands/app/install.ts](https://github.com/contentstack/apps-cli/blob/v1.5.0/src/commands/app/install.ts)_
232234

233235
## `csdx app:reinstall`
234236

235237
Reinstall an app from the marketplace
236238

237239
```
238240
USAGE
239-
$ csdx app:reinstall [--app-uid <value>] [--stack-api-key <value>] [--org <value>]
241+
$ csdx app:reinstall [--org <value>] [--app-uid <value>] [--stack-api-key <value>]
240242
241243
FLAGS
242244
--app-uid=<value> Provide the app UID of an existing app.
@@ -254,15 +256,15 @@ EXAMPLES
254256
$ csdx app:reinstall --org <UID> --app-uid <APP-UID-1> --stack-api-key <STACK-API-KEY-1>
255257
```
256258

257-
_See code: [src/commands/app/reinstall.ts](https://github.com/contentstack/apps-cli/blob/v1.3.4/src/commands/app/reinstall.ts)_
259+
_See code: [src/commands/app/reinstall.ts](https://github.com/contentstack/apps-cli/blob/v1.5.0/src/commands/app/reinstall.ts)_
258260

259261
## `csdx app:uninstall`
260262

261263
Uninstall an app
262264

263265
```
264266
USAGE
265-
$ csdx app:uninstall [--app-uid <value>] [--installation-uid <value>] [--uninstall-all] [--org <value>]
267+
$ csdx app:uninstall [--org <value>] [--app-uid <value>] [--installation-uid <value>] [--uninstall-all]
266268
267269
FLAGS
268270
--app-uid=<value> Provide the app UID of an existing app.
@@ -281,15 +283,15 @@ EXAMPLES
281283
$ csdx app:uninstall --org <UID> --app-uid <APP-UID-1> --installation-uid <INSTALLATION-UID-1>
282284
```
283285

284-
_See code: [src/commands/app/uninstall.ts](https://github.com/contentstack/apps-cli/blob/v1.3.4/src/commands/app/uninstall.ts)_
286+
_See code: [src/commands/app/uninstall.ts](https://github.com/contentstack/apps-cli/blob/v1.5.0/src/commands/app/uninstall.ts)_
285287

286288
## `csdx app:update`
287289

288290
Update the existing app in developer hub
289291

290292
```
291293
USAGE
292-
$ csdx app:update [--app-manifest <value>] [--org <value>]
294+
$ csdx app:update [--org <value>] [--app-manifest <value>]
293295
294296
FLAGS
295297
--app-manifest=<value> Path to the app manifest.json file:
@@ -304,5 +306,5 @@ EXAMPLES
304306
$ csdx app:update --app-manifest ./boilerplate/manifest.json
305307
```
306308

307-
_See code: [src/commands/app/update.ts](https://github.com/contentstack/apps-cli/blob/v1.3.4/src/commands/app/update.ts)_
309+
_See code: [src/commands/app/update.ts](https://github.com/contentstack/apps-cli/blob/v1.5.0/src/commands/app/update.ts)_
308310
<!-- commandsstop -->

0 commit comments

Comments
 (0)