Stedefast

Deployment

CLI Reference

1 min read

stedefast build

Build the full static site.

stedefast build [options]

Options:
  --config <path>   Path to stedefast.config.ts (default: ./stedefast.config.ts)
  --outdir <path>   Override output directory
  --drafts          Include draft content in build

stedefast dev

Start the development server with live reload.

stedefast dev [options]

Options:
  --config <path>   Path to stedefast.config.ts (default: ./stedefast.config.ts)
  --port <number>   Port for dev server (default: 3000)
  --host <host>     Host for dev server (default: localhost)

stedefast deploy

Build and deploy to Cloudflare Pages.

stedefast deploy [options]

Options:
  --config <path>   Path to stedefast.config.ts (default: ./stedefast.config.ts)
  --env <env>       Deployment environment (default: production)
  --skip-build      Skip build step, deploy existing dist/

stedefast scaffold

Generate theme component stubs.

stedefast scaffold template <name>    # theme/templates/<name>.tsx
stedefast scaffold template <name> --liquid  # theme/templates/<name>.liquid
stedefast scaffold layout <name>      # theme/layouts/<name>.tsx
stedefast scaffold partial <name>     # theme/partials/<name>.tsx
stedefast scaffold island <name>      # theme/islands/<name>.tsx
stedefast scaffold type <name>        # content-types/<name>.ts

stedefast init

Create a new Stedefast site interactively.

stedefast init [directory] [options]

Options:
  --template <name>   Template to use (blog, docs, portfolio)
  --theme <name>      Theme to use (minimal, hacker)
  --list              Print available theme x template combinations