Options Reference

All CLI prompts, flags, and commands.

Commands

CommandDescription
npx create-scn-stackScaffold a new registry project
npx create-scn-stack initAdd a registry to an existing project
npx create-scn-stack add-component <name>Add a component to an existing registry
npx create-scn-stack add-hook <name>Add a hook to an existing registry
npx create-scn-stack add-block <name>Add a block to an existing registry

Prompts

When you run npx create-scn-stack, you'll be guided through these options:

PromptDescriptionDefault
Registry nameIdentifier for your registry (e.g., my-ui)my-ui
Project locationFolder to create the registry in./<registry-name>
Styleshadcn/ui style variantNew York
HomepageURL where the registry will be hostedhttps://<name>.com
FrameworkWeb framework for the projectNext.js
DocumentationDocs engine to includeFumadocs
Starter componentsPre-built example componentsButton, Card, Badge
NamespaceRegistry namespace for @name/component installs@<name>
Package managerPackage manager to useAuto-detected
AI skillsInstall shadcn skill + registry skillYes

Flags

All prompts can be pre-filled via flags. Use --yes to skip prompts entirely.

npx create-scn-stack my-ui --yes
npx create-scn-stack my-ui --framework nextjs --docs fumadocs --pm pnpm
npx create-scn-stack my-ui --yes --no-skills
FlagValues
--name <name>Registry name
--directory <path>Project location
--style <style>new-york | default
--homepage <url>Registry homepage URL
--framework <fw>nextjs | vite | react-router | tanstack-start
--docs <engine>fumadocs | mintlify | starlight | none
--components <set>essentials | minimal | none
--namespace <ns>Namespace (e.g., @my-ui)
--pm <pm>pnpm | npm | yarn | bun
--skillsInclude AI skills
--no-skillsSkip AI skills
-y, --yesSkip all prompts, use defaults
-h, --helpShow help

add-component

Add a component to an existing registry project:

npx create-scn-stack add-component input
npx create-scn-stack add-component dialog -d "A modal dialog component."

This creates:

  • Component source in registry/<style>/ui/<name>.tsx
  • Entry in registry/<style>/ui/registry.json (detects include pattern)
  • Doc page in content/docs/components/<name>.mdx
  • Updates meta.json navigation
FlagDescription
--description, -dComponent description

add-hook

Add a hook to an existing registry project:

npx create-scn-stack add-hook use-toggle
npx create-scn-stack add-hook use-media-query -d "A media query hook."

This creates:

  • Hook source in registry/<style>/hooks/<name>.ts
  • A registry/<style>/hooks/registry.json (created if needed)
  • Updates root registry.json include array to reference hooks registry
  • Doc page in content/docs/hooks/<name>.mdx
  • Updates meta.json navigation

Hook names must start with use-.

FlagDescription
--description, -dHook description

add-block

Add a block to an existing registry project:

npx create-scn-stack add-block login-form
npx create-scn-stack add-block dashboard-header -d "A dashboard header block."

This creates:

  • Block source in registry/<style>/blocks/<name>.tsx
  • A registry/<style>/blocks/registry.json (created if needed)
  • Updates root registry.json include array to reference blocks registry
  • Doc page in content/docs/blocks/<name>.mdx
  • Updates meta.json navigation
FlagDescription
--description, -dBlock description

Framework Options

FrameworkDescription
Next.jsApp Router with Tailwind v4. Recommended for most registries.
ViteReact + Vite with Tailwind v4. Lightweight, fast builds.
React RouterReact Router v7 with SSR support.
TanStack StartTanStack Start with file-based routing.

Docs Engine Options

EngineDescription
FumadocsStandard for shadcn registries. Full docs with MDX, search, dark mode. Requires Next.js.
MintlifyHosted docs platform. Works with any framework.
StarlightAstro-based docs. Separate docs/ directory. Works with any framework.
NoneRegistry only, no documentation site.

Style Options

StyleDescription
New YorkDefault shadcn/ui style. Smaller, compact components.
DefaultOriginal shadcn/ui style. Slightly larger components.

Starter Components

SetComponentsIncludes
EssentialsButton, Card, BadgeSource files, registry entries, doc pages with live previews
MinimalButton onlySource file, registry entry, doc page with preview
NoneEmpty registryJust the scaffold, add your own

AI Skills

SkillWhat it does
shadcn skillInstalls the official shadcn skill via skills add shadcn/ui. Gives AI assistants knowledge of shadcn components, CLI, theming, and registry authoring.
Registry skillGenerates .agents/skills/registry/SKILL.md — teaches AI how to add components, hooks, blocks, write docs, update registry.json, and follow conventions for your specific project.