CLI
create-foundry CLI usage, options, and templates.
Overview
create-foundry scaffolds a new Foundry project from a template. It wraps nuxt init with Foundry-specific starter templates.
Installation
No installation needed. Run directly with your package manager:
# pnpm
pnpm create foundry
# npm
npm create foundry
# npx
npx create-foundry
Usage
create-foundry [directory] [options]
Arguments
| Argument | Default | Description |
|---|---|---|
directory | my-project | Project directory name |
Options
| Option | Alias | Default | Description |
|---|---|---|---|
--template | -t | default | Starter template to use |
Examples
# Create with defaults (./my-project, default template)
pnpm create foundry
# Specify directory
pnpm create foundry my-saas-project
# Specify template
pnpm create foundry my-project -t default
Templates
default
Minimal starter with a landing page and signal capture. Includes:
- Landing page with hero, benefits, FAQ, and email capture sections
- Content files in YAML/Markdown (not hardcoded)
- Webhook integration for lead capture
- Umami analytics pre-configured
- Dockerfile for container deployment
vercel.jsonfor Vercel deployment
What You Get
my-project/
├── app/
│ └── app.config.ts # Your app config overrides
├── content/
│ ├── config/
│ │ ├── site.yml # Business info
│ │ └── navigation.yml # Header/footer navigation
│ ├── pages/
│ │ └── index.md # Landing page (MDC sections)
│ └── data/
│ └── faq.yml # FAQ items
├── content.config.ts # Content collection definitions
├── nuxt.config.ts # Nuxt config (extends layer)
├── package.json
├── Dockerfile
└── .env.example
After Scaffolding
cd my-project
pnpm install
pnpm dev
Then:
- Edit
content/config/site.ymlwith your business details - Edit
content/pages/index.mdto customize your landing page - Set
NUXT_WEBHOOK_URLin.envto start capturing leads - Deploy — see Deployment
Development
If you're contributing to the CLI itself:
# From the monorepo root
pnpm cli:build # Build CLI to dist/
pnpm cli:publish # Publish to npm
The CLI source lives in cli/ and uses:
How It Works
Under the hood, create-foundry runs:
nuxt init [directory] -t gh:incubrain/foundry/.starters/{template}
This clones the starter template from the Foundry monorepo's .starters/ directory and initializes a fresh project.