Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contentstack/apps-cli

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contentstack/apps-cli

App ClI

  • 1.3.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
55
increased by5.77%
Maintainers
0
Weekly downloads
 
Created
Source

@contentstack/apps-cli

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.

How to install this plugin

$ csdx plugins:install @contentstack/apps-cli

How to use this plugin

This plugin requires you to be authenticated using csdx auth:login.

$ npm install -g @contentstack/apps-cli
$ csdx COMMAND
running command...
$ csdx (--version|-v)
@contentstack/apps-cli/1.3.2 darwin-arm64 node-v18.20.2
$ csdx --help [COMMAND]
USAGE
  $ csdx COMMAND
...

Commands

csdx app

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

csdx app:create

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

USAGE
  $ csdx app:create [-n <value>] [--app-type stack|organization] [-c <value>] [-d <value>] [--boilerplate
    <value>] [--org <value>]

FLAGS
  -c, --config=<value>    Path of the external config
  -d, --data-dir=<value>  Current working directory.
  -n, --name=<value>      Name of the app to be created
  --app-type=<option>     [default: stack] Type of app
                          <options: stack|organization>
  --boilerplate=<value>   Provide a boilerplate. <options: App Boilerplate|DAM App Boilerplate|Ecommerce App
                          Boilerplate>
  --org=<value>           Provide the organization UID to fetch the app details for the operation.

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 <UID> -d ./boilerplate -c ./external-config.json

  $ csdx app:create --name App-4 --app-type organization --org <UID> --boilerplate <App Boilerplate>

  $ csdx app:create --name App-4 --app-type organization --org <UID> --boilerplate <DAM App Boilerplate>

  $ csdx app:create --name App-4 --app-type organization --org <UID> --boilerplate <Ecommerce App Boilerplate>

See code: src/commands/app/create.ts

csdx app:delete

Delete app from marketplace

USAGE
  $ csdx app:delete [--app-uid <value>] [--org <value>]

FLAGS
  --app-uid=<value>  Provide the app UID of an existing app.
  --org=<value>      Provide the organization UID to fetch the app details for the operation.

DESCRIPTION
  Delete app from marketplace

EXAMPLES
  $ csdx app:delete

  $ csdx app:delete --app-uid <value>

  $ csdx app:delete --app-uid <value> --org <value> -d ./boilerplate

See code: src/commands/app/delete.ts

csdx app:deploy

Deploy an app

USAGE
  $ csdx app:deploy [--app-uid <value>] [--hosting-type Hosting with Launch|Custom Hosting] [--app-url <value>]
    [--launch-project existing|new] [-c <value>] [--org <value>]

FLAGS
  -c, --config=<value>       [optional] Please enter the path of the config file.
  --app-uid=<value>          Provide the app UID of an existing app.
  --app-url=<value>          Please enter the URL of the app you want to deploy.
  --hosting-type=<option>    Choose a valid Hosting Type.
                             <options: Hosting with Launch|Custom Hosting>
  --launch-project=<option>  Choose a new or an existing Launch project.
                             <options: existing|new>
  --org=<value>              Provide the organization UID to fetch the app details for the operation.

DESCRIPTION
  Deploy an app

EXAMPLES
  $ csdx app:deploy

  $ csdx app:deploy --org <UID> --app-uid <APP-UID-1>

  $ csdx app:deploy --org <UID> --app-uid <APP-UID-1> --hosting-type <Custom Hosting> --app-url <https://localhost:3000>

  $ csdx app:deploy --org <UID> --app-uid <APP-UID-1> --hosting-type <Hosting with Launch> --launch-project <existing>

  $ csdx app:deploy --org <UID> --app-uid <APP-UID-1> --hosting-type <Hosting with Launch> --launch-project <new>

  $ csdx app:deploy --org <UID> --app-uid <APP-UID-1> --hosting-type <Hosting with Launch> --launch-project <new> --config <config-path>

See code: src/commands/app/deploy.ts

csdx app:get

Get details of an app in developer hub

USAGE
  $ csdx app:get [--app-uid <value>] [--app-type stack|organization] [-d <value>] [--org <value>]

FLAGS
  -d, --data-dir=<value>  Current working directory.
  --app-type=<option>     [default: stack] Type of app
                          <options: stack|organization>
  --app-uid=<value>       Provide the app UID of an existing app.
  --org=<value>           Provide the organization UID to fetch the app details for the operation.

DESCRIPTION
  Get details of an app in developer hub

EXAMPLES
  $ csdx app:get

  $ csdx app:get --org <value> --app-uid <value>

  $ csdx app:get --org <value> --app-uid <value> --app-type stack

  $ csdx app:get --org <value> --app-uid <value> --app-type organization

See code: src/commands/app/get.ts

csdx app:install

Install an app from the marketplace

USAGE
  $ csdx app:install [--app-uid <value>] [--stack-api-key <value>] [--org <value>]

FLAGS
  --app-uid=<value>        Provide the app UID of an existing app.
  --org=<value>            Provide the organization UID to fetch the app details for the operation.
  --stack-api-key=<value>  API key of the stack where the app operation is to be performed.

DESCRIPTION
  Install an app from the marketplace

EXAMPLES
  $ csdx app:install

  $ csdx app:install --org <UID> --app-uid <APP-UID-1>

  $ csdx app:install --org <UID> --app-uid <APP-UID-1> --stack-api-key <STACK-API-KEY-1>

See code: src/commands/app/install.ts

csdx app:reinstall

Reinstall an app from the marketplace

USAGE
  $ csdx app:reinstall [--app-uid <value>] [--stack-api-key <value>] [--org <value>]

FLAGS
  --app-uid=<value>        Provide the app UID of an existing app.
  --org=<value>            Provide the organization UID to fetch the app details for the operation.
  --stack-api-key=<value>  API key of the stack where the app operation is to be performed.

DESCRIPTION
  Reinstall an app from the marketplace

EXAMPLES
  $ csdx app:reinstall

  $ csdx app:reinstall --org <UID> --app-uid <APP-UID-1>

  $ csdx app:reinstall --org <UID> --app-uid <APP-UID-1> --stack-api-key <STACK-API-KEY-1>

See code: src/commands/app/reinstall.ts

csdx app:uninstall

Uninstall an app

USAGE
  $ csdx app:uninstall [--app-uid <value>] [--installation-uid <value>] [--uninstall-all] [--org <value>]

FLAGS
  --app-uid=<value>           Provide the app UID of an existing app.
  --installation-uid=<value>  Provide the installation ID of the app that needs to be uninstalled.
  --org=<value>               Provide the organization UID to fetch the app details for the operation.
  --uninstall-all             Please select stacks from where the app must be uninstalled.

DESCRIPTION
  Uninstall an app

EXAMPLES
  $ csdx app:uninstall

  $ csdx app:uninstall --org <UID> --app-uid <APP-UID-1>

  $ csdx app:uninstall --org <UID> --app-uid <APP-UID-1> --installation-uid <INSTALLATION-UID-1>

See code: src/commands/app/uninstall.ts

csdx app:update

Update the existing app in developer hub

USAGE
  $ csdx app:update [--app-manifest <value>] [--org <value>]

FLAGS
  --app-manifest=<value>  Path to the app manifest.json file:
  --org=<value>           Provide the organization UID to fetch the app details for the operation.

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

Keywords

FAQs

Package last updated on 12 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc