App ClI
npm install @contentstack/apps-cliContentstack 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.
``shell`
$ csdx plugins:install @contentstack/apps-cli
This plugin requires you to be authenticated using csdx auth:login.
`sh-session`
$ npm install -g @contentstack/apps-cli
$ csdx COMMAND
running command...
$ csdx (--version|-v)
@contentstack/apps-cli/1.6.1 darwin-arm64 node-v18.20.2
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
...
* csdx app
* csdx app:create
* csdx app:delete
* csdx app:deploy
* csdx app:get
* csdx app:install
* csdx app:reinstall
* csdx app:uninstall
* csdx app:update
Apps CLI plugin
`
USAGE
$ csdx app
DESCRIPTION
Apps CLI plugin
EXAMPLES
$ csdx app:create
$ csdx app:delete
$ csdx app:deploy
$ csdx app:get
$ csdx app:install
$ csdx app:reinstall
$ csdx app:uninstall
$ csdx app:update
`
_See code: src/commands/app/index.ts_
Create a new app in Developer Hub and optionally clone a boilerplate locally.
`
USAGE
$ csdx app:create [--org
[--boilerplate
FLAGS
-c, --config=
-d, --data-dir=
-n, --name=
--app-type=
DESCRIPTION
Create a new app in Developer Hub and optionally clone a boilerplate locally.
EXAMPLES
$ csdx app:create
$ csdx app:create --name App-1 --app-type stack
$ csdx app:create --name App-2 --app-type stack -d ./boilerplate
$ csdx app:create --name App-3 --app-type organization --org
$ csdx app:create --name App-4 --app-type organization --org
$ csdx app:create --name App-4 --app-type organization --org
$ csdx app:create --name App-4 --app-type organization --org
`
_See code: src/commands/app/create.ts_
Delete app from marketplace
`
USAGE
$ csdx app:delete [--org
FLAGS
--app-uid=
--org=
DESCRIPTION
Delete app from marketplace
EXAMPLES
$ csdx app:delete
$ csdx app:delete --app-uid
$ csdx app:delete --app-uid
`
_See code: src/commands/app/delete.ts_
Deploy an app
`
USAGE
$ csdx app:deploy [--org
[--app-url
FLAGS
-c, --config=
--app-uid=
--app-url=
--hosting-type=
DESCRIPTION
Deploy an app
EXAMPLES
$ csdx app:deploy
$ csdx app:deploy --org
$ csdx app:deploy --org
$ csdx app:deploy --org
$ csdx app:deploy --org
$ csdx app:deploy --org
`
_See code: src/commands/app/deploy.ts_
Get details of an app in developer hub
`
USAGE
$ csdx app:get [--org
FLAGS
-d, --data-dir=
--app-type=
--app-uid=
--org=
DESCRIPTION
Get details of an app in developer hub
EXAMPLES
$ csdx app:get
$ csdx app:get --org
$ csdx app:get --org
$ csdx app:get --org
`
_See code: src/commands/app/get.ts_
Install an app from the marketplace
`
USAGE
$ csdx app:install [--org
FLAGS
--app-uid=
--org=
--stack-api-key=
DESCRIPTION
Install an app from the marketplace
EXAMPLES
$ csdx app:install
$ csdx app:install --org
$ csdx app:install --org
`
_See code: src/commands/app/install.ts_
Reinstall an app from the marketplace
`
USAGE
$ csdx app:reinstall [--org
FLAGS
--app-uid=
--org=
--stack-api-key=
DESCRIPTION
Reinstall an app from the marketplace
EXAMPLES
$ csdx app:reinstall
$ csdx app:reinstall --org
$ csdx app:reinstall --org
`
_See code: src/commands/app/reinstall.ts_
Uninstall an app
`
USAGE
$ csdx app:uninstall [--org
FLAGS
--app-uid=
--installation-uid=
--org=
--uninstall-all Please select stacks from where the app must be uninstalled.
DESCRIPTION
Uninstall an app
EXAMPLES
$ csdx app:uninstall
$ csdx app:uninstall --org
$ csdx app:uninstall --org
`
_See code: src/commands/app/uninstall.ts_
Update the existing app in developer hub
`
USAGE
$ csdx app:update [--org
FLAGS
--app-manifest=
--org=
DESCRIPTION
Update the existing app in developer hub
EXAMPLES
$ csdx app:update
$ csdx app:update --app-manifest ./boilerplate/manifest.json
``
_See code: src/commands/app/update.ts_