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-storefrontnpx: 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:
- Download the latest Bagisto Headless template.
- Install all required NPM dependencies.
- Set up the initial directory structure.
Next Steps
- Understand the Generated project structure
- Explore Environment variables
- Check Repository reference
