Dev

Quickstart

Create your first Nitrogen storefront — from the admin panel to a running local dev server in five minutes.

This walkthrough takes you from zero to a running headless storefront. No prior headless experience needed — every step shows exactly where to click and what to type.

Before you start

  • Install the CloudCart CLI: npm i -g @cloudcart/cli@latest
  • Have admin access to your CloudCart store

Open Nitrogen Storefronts in the admin

In your store admin, go to:

https://<your-store-domain>/admin/nitrogen

You'll see the Nitrogen Storefronts screen. Click Create Storefront (or Create Your First Storefront if the list is empty).

Nitrogen Storefronts — empty state

Name it and choose how to deploy

Give the storefront a name (e.g. My Headless Store) and pick a deployment mode:

Create Nitrogen Storefront wizard

  • GitHub (recommended) — CloudCart connects to a GitHub repository and deploys automatically on every push.
  • CI/CD or manual — you get a deploy token and push builds yourself with the CLI, from any machine or pipeline.

If you're not sure, pick GitHub — you can always deploy manually with the CLI too.

Connect a repository (GitHub mode)

Connect your GitHub account via the CloudCart GitHub App, then choose:

Connect a Repository

  • Create a new repository (recommended) — CloudCart creates a repo from the cloudcart/nitrogen-starter template with the GitHub Actions deploy workflow and all secrets pre-configured. Pick a name and visibility, done.
  • Connect an existing repository — for teams that already have a Nitrogen project.

Click Create Repository & Storefront.

Save your deploy token

The success screen shows your storefront URL and — if you chose CI/CD mode — a deploy token (cc_nova_…).

Storefront created — deploy token and next steps

Copy the token now

The deploy token is shown only once. Store it as a secret (e.g. CLOUDCART_NOVA_TOKEN in your CI). If you lose it, generate a new one from Storefront Settings.

Clone and run locally

git clone https://github.com/<your-account>/<your-repo>.git
cd <your-repo>
npm install

# Link this folder to the storefront you just created
cloudcart nitrogen link --storefront "My Headless Store"

# Pull environment variables (Storefront API token, endpoints) into .env
cloudcart nitrogen env pull

# Start the dev server
npm run dev

Open http://localhost:3000 — you're looking at your own headless storefront, running against your store's live catalog through the Storefront API.

Deploy

GitHub mode — just push:

git add . && git commit -m "First storefront" && git push

Every push to main triggers a production deployment. Any other branch creates a preview deployment.

CI/CD or manual mode:

cloudcart nitrogen deploy

Watch the deployment land on your *.cloudcart.dev URL. Custom domains are configured in Storefront Settings.

No store yet? Use mock mode

You can try Nitrogen without a CloudCart store at all:

cloudcart nitrogen init my-storefront --defaults
cd my-storefront && npm run dev

--defaults scaffolds a TypeScript project running against mock demo data — swap in a real store later with nitrogen link + env pull.

Next

On this page