Skip to main content
This tutorial guides you through the steps to create a new component, preview it while you develop, deploy it to your store, and assign it to a position (a slot, as we call it) in your checkout.

Prerequisites

1

Node.js 22+

Download Node.js if not installed. The Ollie Shop CLI requires Node.js 22 or newer.
2

VS Code

Download VS Code - Recommended editor
3

Git

4

Ollie Shop Store

You have created a Store in Ollie Shop and you know its Store ID. It is the UUID in the Admin URL when you open the store: https://admin.ollie.shop/dashboard/store/<store-id>.

Step 1: Create a Hello World Component

In your terminal, use the create-ollie-shop command to scaffold a new project with our Hello World component.
1

Create Your Project

Run the creation command
You’ll be prompted for:
  • Project directory the folder to create. Defaults to my-checkout.
  • Store ID required. Paste the UUID of your store (see Prerequisites). The scaffold stops with Invalid store ID format if it is empty or not a UUID.
  • Version ID optional. Press Enter to skip; the CLI then works against the store’s default version.
You can also pass both as flags and skip the prompts: npx create-ollie-shop --store-id <uuid> --version-id <uuid>.A complete run looks like this:
The scaffold downloads the Ollie Shop agent skill from GitHub, so it needs network access to github.com.
2

Navigate to Project

Replace [your-project-directory] with the directory you chose
3

Meet your AI assistant

The project arrives with the Ollie Shop skill already installed, plus an AGENTS.md that points your coding agent at it. There is nothing to set up. Your assistant knows the CLI, the SDK hooks, and the slot catalog from your first prompt.Try it:
Prompt

Step 2: Install Dependencies

After creating the project, set up your development environment.
1

Open in VS Code

2

Install Project Dependencies

Developing with Ollie Shop requires Node.js and npm.In the VS Code terminal, run:
This installs the Ollie Shop CLI and SDK as dev dependencies of your project, so you do not need a global install.

Step 3: Develop Your Component

Now let’s build a checkout component using the Ollie Shop SDK.
1

Open Component File

Open components/HelloWorld/index.tsx in VS Code.This file contains your component code that will be deployed to your checkout.
2

Add Checkout Features

Replace the code in the index.tsx file with the code below.You’ll now use the useCheckoutSession hook from the @ollie-shop/sdk package to access checkout session data.
index.tsx
Your component now accesses real checkout session data!

Step 4: Preview Locally with Studio

Run the dev server and preview your component live in the checkout.
1

Start the Dev Server

In your VS Code terminal, start the dev server (hot reload):
This runs ollieshop start: it serves your components on http://localhost:4000, watches for changes, and opens Studio in your browser for your store.
Pass flags through npm when you need them: npm start -- --no-open keeps the browser closed, and npm start -- --browser-logs streams the checkout’s console output to your terminal.
2

Find your component in Studio

With the dev server running, HelloWorld appears in the Components tab of Studio and renders live in the checkout preview once it has a slot. Editing your code hot-reloads the preview automatically.The component is still unlinked: it has a temporary studio-HelloWorld id because nothing in your store knows about it yet.
Studio showing the local HelloWorld component

HelloWorld listed in the Components tab and rendered at the top of the cart

Step 5: Choose a Slot and Publish

Studio registers and deploys an unlinked component in one step.
1

Pick a slot

Open the HelloWorld card in the Components tab. In the Slot field, choose where the component renders (for example cart_header_full_page, above the cart content). The preview updates as soon as a slot is set.See Slots to understand what a slot is.
Studio props panel with the Publish button

The props panel: pick the slot, then Publish

2

Publish

Click Publish. Studio creates the component in your store version, bundles your code, uploads it, and shows the build status. The button stays disabled until a slot is set.When the build succeeds, the CLI records the new component id in your project’s ollie.json under components, so the folder stays linked from now on.
3

View on your live store

Visit your store’s checkout to see your component live!
You can also create the component record yourself and link it to the folder before deploying.
  1. In the Admin, open your store, click Components in the sidebar, then Create Component.
    Component Create
  2. Fill in Name, Active, Slot, and Version, then click Create Component.
    Component New Create Form
  3. Copy the Component ID from the configuration page.
    Component Get Id
  4. Link the folder in ollie.json:
    ollie.json
  5. Deploy from Studio (the card now shows a Deploy action) or from the terminal:
Prefer the command line? The CLI is documented separately under CLI Reference.
You’ve successfully created and deployed your first Ollie Shop component! Your custom checkout enhancement is now live.

Next Steps

Integrate our skills into your project

Which coding agents pick the skill up on their own, how to install it where it’s missing, and how to keep it current

Build Your First Component

A deeper walkthrough: a free shipping progress bar, from folder to deploy