Skip to content
HELiX

create-helix CLI

apps/docs/src/content/docs/getting-started/create-helix Click to copy
Copied! apps/docs/src/content/docs/getting-started/create-helix

Source of truth: This page describes the published create-helix package on npm (current: 0.8.0 — verify with npm view create-helix version). The implementation source lives at github.com/bookedsolidtech/create-helix-app, not in this monorepo. The packages/create-helix-app/ directory here is a placeholder stub reserved for a future consolidation — see its README for the gap explanation. Don’t validate this doc against the stub source.

create-helix is the official scaffolding CLI for HELiX web components. It generates a production-ready project for any supported framework in seconds.

  • Node.js 22 LTS or Node.js 24 (Node 20 reaches upstream EOL on 2026-04-30)
Terminal window
npx create-helix project-name
# or
npm create helix project-name

The CLI takes the new project’s directory name as its first positional argument, then prompts you interactively for a framework, component bundles, and optional features (TypeScript, ESLint, design tokens, dark mode). When done, it writes a ready-to-run project at ./project-name/.

create-helix’s interactive Q1 picker surfaces a curated set of production-tier templates by default — the flagship wc-storybook factory plus the app starters that have shipped beyond stub quality. Twelve more framework targets exist but are gated behind --show-experimental until they reach the same bar. Pass --template <id> to skip the prompt, or run the CLI without it for the interactive picker:

Terminal window
npx create-helix my-app --template react-next
# or
npx create-helix my-app # interactive picker

Production-tier templates (shown by default)

Section titled “Production-tier templates (shown by default)”
Template IDNameDescription
wc-storybookDesign System + Storybook 10Default — design-system factory. Lit 3, Storybook 10, brand-storytelling docs, AAA cards, ~99 hx-* auto-cataloged
react-nextReact + Next.js 16App Router, SSR-ready, full HELiX integration — recommended for new app projects
react-viteReact + ViteLightning fast dev, SPA-first, HELiX with @lit/react
astroAstro 5Islands + native web components, view transitions, theme toggle (promoted in the v0.8.0 release note; verify on the version you have installed)

Experimental templates (run --show-experimental to surface)

Section titled “Experimental templates (run --show-experimental to surface)”

These templates compile and emit a project skeleton, but their docs / examples / DX polish lag behind the curated production-tier set. Surface them via npx create-helix --show-experimental (or HELIX_SHOW_EXPERIMENTAL=1):

Template IDNameStatus
remixReact Router (Remix)Experimental
vue-nuxtVue + Nuxt 4Experimental
vue-viteVue + ViteExperimental
svelte-kitSvelteKitExperimental
angularAngular 18Experimental
solid-viteSolid.js + ViteExperimental
qwik-viteQwik + ViteExperimental
lit-viteLit + ViteExperimental
preact-vitePreact + ViteExperimental
stencilStencilExperimental
emberEmber.jsExperimental
vanillaVanilla (HTML + CDN)Experimental

These graduate out of --show-experimental as they reach the same bar as the production-tier set.

Choose which component groups to include. Each bundle is a curated set of HELiX components optimized for tree-shaking:

Bundle IDNameComponents
allAll ComponentsAll components — the full HELiX library
coreCore UIbutton, card, badge, text, icon, avatar, divider, tag, tooltip, popover
formsForm Componentstext-input, select, checkbox, radio, switch, textarea, field, combobox, date-picker
navigationNavigationnav, side-nav, tabs, breadcrumb, pagination, menu, tree-view
data-displayData Displaydata-table, stat, progress-bar, meter, counter, structured-list, rating
feedbackFeedback & Overlaysalert, toast, dialog, drawer, banner, skeleton, spinner
layoutLayoutgrid, stack, split-panel, accordion, carousel, container

Bundle selection is part of the same interactive flow — pick which bundles you want from the prompts after choosing a template.

For Drupal-first projects, the interactive prompts include a Drupal track that scaffolds a complete Drupal theme directory with:

  • Theme info and libraries YAML files
  • Single Directory Components (SDCs) with Twig templates
  • HELiX component CDN integration via helixui.libraries.yml
  • Drupal behaviors using the once() pattern
  • composer.json and package.json

The Drupal track exposes preset choices in the prompt:

PresetDescriptionSDC Count
standardCore Drupal SDCs for general-purpose themes7
blogStandard + blog-specific content components12
healthcareBlog + healthcare-specific components (HIPAA-aware)16
intranetStandard + employee portal components11
ecommerceEcommerce-optimized component set

The shipped binary parses subcommands and a full flag surface. Run npx create-helix --help for the exact list bundled with the version you have installed; the table below captures what create-helix@0.8.0 supports.

create-helix [project-name] [options]
create-helix list # list templates
create-helix info <template> # describe one template
create-helix doctor [--quick] # environment diagnostics
create-helix upgrade # update an existing project
create-helix config validate # validate a .helixrc config file

Scaffold options:

FlagDescription
--template <id>Framework template ID (see table above)
--bundles <list>Comma-separated bundle IDs
--output-dir <dir> / -oOutput directory (defaults to the project name)
--drupalTake the Drupal theme track instead of a framework template
--preset <name>Drupal preset: standard, blog, healthcare, intranet, ecommerce
--profile <name>Load a saved configuration profile
--config <path>Load options from a specific .helixrc file
--yes / -yAccept all interactive defaults non-interactively

Design-system options (used with wc-storybook):

FlagDescription
--ds-name <name>Design system / scaffold name
--token-prefix <prefix>CSS custom-property prefix (e.g. --my-)
--brand-tagline <text>Brand tagline used in the generated Storybook intro
--brand-verticals <list>Comma-separated brand verticals
--monorepo / --no-design-systemForce or disable monorepo / DS-only modes

Feature toggles (default enabled):

--typescript / --no-typescript, --eslint / --no-eslint, --tokens / --no-tokens, --dark-mode / --no-dark-mode.

Behavior flags:

--dry-run, --force, --no-install, --no-config, --skip-audit, --offline, --verbose, --quiet / -q, --json, --show-experimental.

Meta: --version / -v, --help / -h.

After scaffolding, cd into your project and start the dev server:

Terminal window
# Framework projects
cd my-app
npm install # or pnpm install / yarn
npm run dev
# Drupal theme
cd my-helix-theme
# Add the theme directory to your Drupal installation's themes/ directory

create-helix is part of the Booked Solid toolchain:

ToolPurpose
helix (@helixui/library)Enterprise web component library
helixir (@helixui/mcp)MCP server for AI-assisted development
create-helixProject scaffolding CLI