testsha-cm-bootstrap
v1.1.8
Published
Bootstrap contentstack apps
Downloads
6
Readme
Contentstack CLI’s “Bootstrap” plugin enables you to automate the process of setting up projects for sample and starter apps in Contentstack.
This means that all the required steps such as stack, environment, and content type creation, entry and asset publishing are performed just by using a single command.
Usage
$ npm install -g testsha-cm-bootstrap
$ csdx COMMAND
running command...
$ csdx (-v|--version|version)
testsha-cm-bootstrap/1.1.8 linux-x64 node-v16.18.1
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
...
$ npm install -g testsha-cm-clone
$ csdx COMMAND
running command...
$ csdx --help [COMMAND]
USAGE
$ csdx COMMAND
...
Commands
csdx cm:bootstrap
Bootstrap contentstack apps
USAGE
$ csdx cm:bootstrap
OPTIONS
-k, --stack-api-key=stack-api-key Provide stack API key to seed content
-n, --stack-name=stack-name Name of a new stack that will be created.
-y, --yes=yes
--app-name=app-name App name, reactjs-starter, nextjs-starter, gatsby-starter, angular-starter,
nuxt-starter, vue-starter, stencil-starter
--org=org Provide organization UID to create a new stack
--project-dir=project-dir Directory to setup the project. If directory name has a space then provide the path
as a string or escap the space using back slash eg: "../../test space" or
../../test\ space
EXAMPLES
$ csdx cm:bootstrap
$ csdx cm:bootstrap --project-dir <path/to/setup/the/app>
$ csdx cm:bootstrap --app-name "reactjs-starter" --project-dir <path/to/setup/the/app>
$ csdx cm:bootstrap --app-name "reactjs-starter" --project-dir <path/to/setup/the/app> --stack-api-key "stack-api-key"
$ csdx cm:bootstrap --app-name "reactjs-starter" --project-dir <path/to/setup/the/app> --org "your-org-uid"
--stack-name "stack-name"
See code: src/commands/cm/bootstrap.ts