Skip to content

CLI Command

We provide a CLI tool to scaffold a new Bagisto Headless project in seconds.

Command

Run the following command in your terminal:

bash
npx -y @bagisto-headless/create my-storefront
  • npx: Executes the package without installing it globally.
  • -y: Automatically accepts default prompts (optional).
  • my-storefront: The name of the directory to be created.

What happens next?

The CLI will:

  1. Download the latest Bagisto Headless template.
  2. Install all required NPM dependencies.
  3. Set up the initial directory structure.

Next Steps

Released under the MIT License.