# @contentstack/cli-cm-bootstrap

> Bootstrap contentstack apps

Latest version **2.0.1** (published 2026-09-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @contentstack/cli-cm-bootstrap
pnpm add @contentstack/cli-cm-bootstrap
yarn add @contentstack/cli-cm-bootstrap
bun add @contentstack/cli-cm-bootstrap
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2026-09-15 |
| First published | 2021-08-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=22.0.0 |
| Dependencies | 8 |
| Unpacked size | 51.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Contentstack |
| Maintainers | mynk, cloudaccounts |
| Keywords | contentstack, cli, plugin |

## Links

- npm: https://www.npmjs.com/package/@contentstack/cli-cm-bootstrap
- Repository: https://github.com/contentstack/cli-plugins
- Homepage: https://github.com/contentstack/cli
- Issues: https://github.com/contentstack/cli-plugins/issues
- npm.io page: https://npm.io/package/@contentstack/cli-cm-bootstrap

## Dependencies (8)

- [tar](https://npm.io/package/tar.md) ^7.5.22
- [mkdirp](https://npm.io/package/mkdirp.md) ^2.1.6
- [inquirer](https://npm.io/package/inquirer.md) 12.11.1
- [@oclif/core](https://npm.io/package/@oclif/core.md) ^4.11.14
- [@contentstack/cli-config](https://npm.io/package/@contentstack/cli-config.md) ~2.0.1
- [@contentstack/cli-cm-seed](https://npm.io/package/@contentstack/cli-cm-seed.md) ~2.0.1
- [@contentstack/cli-command](https://npm.io/package/@contentstack/cli-command.md) ~2.0.1
- [@contentstack/cli-utilities](https://npm.io/package/@contentstack/cli-utilities.md) ~2.0.1

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2026-09-15
- 1.19.10 (v1-x) — 2026-08-13
- 2.0.0-beta.25 (beta) — 2026-07-29
- 2.0.0 — 2026-08-12
- 1.19.9 — 2026-08-05
- 1.19.8 — 2026-07-29
- 2.0.0-beta.24 — 2026-07-20
- 2.0.0-beta.23 — 2026-07-13
- 2.0.0-beta.22 — 2026-07-06
- 2.0.0-beta.21 — 2026-06-29
- 1.19.7 — 2026-06-29
- 1.19.6 — 2026-06-10
- 2.0.0-beta.20 — 2026-06-08
- 1.19.5 — 2026-06-01
- 2.0.0-beta.19 — 2026-06-01
- … 95 more at https://npm.io/package/@contentstack/cli-cm-bootstrap/versions

## 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.

<!-- toc -->
* [Usage](#usage)
* [Commands](#commands)
<!-- tocstop -->

# Usage

<!-- usage -->
```sh-session
$ npm install -g @contentstack/cli-cm-bootstrap
$ csdx COMMAND
running command...
$ csdx (--version)
@contentstack/cli-cm-bootstrap/2.0.1 linux-x64 node-v22.23.2
$ csdx --help [COMMAND]
USAGE
  $ csdx COMMAND
...
```
<!-- usagestop -->

# Commands

<!-- commands -->
* [`csdx cm:bootstrap`](#csdx-cmbootstrap)

## `csdx cm:bootstrap`

Bootstrap contentstack apps

```
USAGE
  $ csdx cm:bootstrap [--app-name <value>] [--project-dir <value>] [-k <value> | --org <value> | -n <value>] [-y]
    [--run-dev-server] [-a <value>]

FLAGS
  -a, --alias=<value>          Alias of the management token
  -k, --stack-api-key=<value>  Provide stack API key to seed content
  -n, --stack-name=<value>     Name of the new stack that will be created.
  -y, --yes                    [Optional] Skip stack confirmation
      --app-name=<value>       App name, kickstart-next, kickstart-next-ssr, kickstart-next-ssg, kickstart-next-graphql,
                               kickstart-next-middleware, kickstart-nuxt, kickstart-nuxt-ssr
      --org=<value>            Provide organization UID to create a new stack
      --project-dir=<value>    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
      --run-dev-server         Automatically start the development server after setup

DESCRIPTION
  Bootstrap contentstack apps

EXAMPLES
  $ csdx cm:bootstrap

  $ csdx cm:bootstrap --project-dir <path/to/setup/the/app>

  $ csdx cm:bootstrap --app-name "kickstart-next" --project-dir <path/to/setup/the/app>

  $ csdx cm:bootstrap --app-name "kickstart-next" --project-dir <path/to/setup/the/app> --stack-api-key "stack-api-key"

  $ csdx cm:bootstrap --app-name "kickstart-next" --project-dir <path/to/setup/the/app> --org "your-org-uid" --stack-name "stack-name"

  $ csdx cm:bootstrap --app-name "kickstart-next" --project-dir <path/to/setup/the/app> --run-dev-server
```

_See code: [src/commands/cm/bootstrap.ts](https://github.com/contentstack/cli-plugins/blob/main/packages/contentstack-bootstrap/src/commands/cm/bootstrap.ts)_
<!-- commandsstop -->

---
_Source: https://npm.io/package/@contentstack/cli-cm-bootstrap · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
