CLI Reference

Complete reference for all seite CLI commands, flags, and options.

Tip

Run seite <command> --help for quick inline help on any command.

Overview

seite has eleven subcommands:

CommandDescription
initCreate a new site
buildBuild the site
serveDevelopment server with live reload
newCreate content files
agentAI assistant with site context
themeManage themes
deployDeploy to hosting platforms
workspaceManage multi-site workspaces
mcpMCP server for AI tool integration
upgradeUpdate project config to match current binary
self-updateUpdate the seite binary to the latest release

Global Flags

These flags work with any command:

FlagDescription
--site <name>Target a specific site in a workspace
--config <path>Path to config file
--dir <path>Project directory
--verboseEnable verbose logging
--jsonOutput results as JSON

seite init

Create a new site directory with scaffolded structure.

seite init <name> [options]
FlagDescription
--titleSite title
--descriptionSite description
--deploy-targetgithub-pages, cloudflare, or netlify
--collectionsComma-separated list: posts,docs,pages,changelog,roadmap

If flags are omitted, seite init prompts interactively.

# Non-interactive
seite init mysite --title "My Blog" --deploy-target github-pages --collections posts,pages

# Interactive
seite init mysite

seite build

Build the site from seite.toml in the current directory.

seite build [options]
FlagDescription
--draftsInclude draft content in the build
--strictTreat broken internal links as build errors

The build pipeline runs 12 steps: clean output, load templates, process collections, render pages, generate RSS, sitemap, discovery files, markdown output, search index, copy static files, process images, and post-process HTML. Per-step timing is shown in the output.

After building, seite build validates all internal links in the generated HTML. Broken links (e.g., links pointing to /posts/missing-slug) are reported as warnings by default. Use --strict to fail the build when broken links are found — useful in CI pipelines.

seite serve

Start a development server with live reload.

seite serve [options]
FlagDescription
--portStarting port (default: 3000, auto-increments if taken)
--draftsInclude drafts

The server injects a live-reload script that polls for changes. An interactive REPL accepts commands:

  • new <collection> "Title" — create content
  • agent [prompt] — launch AI agent
  • theme apply <name> — apply theme and rebuild
  • build — rebuild the site
  • status — show server info
  • stop — stop the server

seite new

Create a new content file with frontmatter.

seite new <collection> "Title" [options]
FlagDescription
--tagsComma-separated tags
--langLanguage code for translations (e.g., es, fr)
seite new post "My Post" --tags rust,web
seite new doc "API Guide"
seite new page "About"
seite new post "Mi Post" --lang es    # Spanish translation
seite new changelog "v1.0.0" --tags new,improvement
seite new roadmap "Dark Mode" --tags planned

seite agent

Launch an AI assistant with full site context.

seite agent [prompt]

Two modes:

  • Interactive: seite agent — opens a Claude Code session
  • One-shot: seite agent "write a blog post about Rust" — runs and exits

The agent receives your site config, content inventory, template list, and available CLI commands. It can read, write, and edit files. Requires Claude Code: npm install -g @anthropic-ai/claude-code.

seite collection

Manage site collections — add presets to an existing site or list current collections.

seite collection <subcommand>
SubcommandDescription
add <preset>Add a collection preset to the current site (updates seite.toml, creates content directory)
listList all collections in the current site with their configuration

Available presets: posts, docs, pages, changelog, roadmap, trust.

seite collection add changelog    # Add changelog collection
seite collection add roadmap      # Add roadmap collection
seite collection list             # Show all configured collections

seite theme

Manage site themes — list, apply, install, export, and generate.

seite theme <subcommand>
SubcommandDescription
listShow all available themes (bundled + installed)
apply <name>Apply a bundled or installed theme
create "<description>"Generate a custom theme with AI
install <url>Download and install a theme from a URL
export <name>Export the current theme as a shareable .tera file
seite theme list
seite theme apply dark
seite theme create "brutalist with neon green accents"
seite theme install https://example.com/themes/aurora.tera
seite theme install https://example.com/themes/aurora.tera --name my-aurora
seite theme export my-theme --description "My custom dark theme"

Six bundled themes: default, minimal, dark, docs, brutalist, bento. Installed themes are stored in templates/themes/ and listed alongside bundled themes. See the Theme Gallery for visual previews.

seite deploy

Deploy the built site.

seite deploy [options]
FlagDescription
--targetOverride deploy target (github-pages, cloudflare, netlify)
--dry-runPreview what would be deployed without deploying
--domainSet up a custom domain (prints DNS records, updates config, attaches to platform)
--setupRun guided deploy setup
--skip-checksSkip pre-flight checks
--base-urlOverride base URL for this deploy
--no-commitSkip auto-commit and push (overrides deploy.auto_commit)
seite deploy                          # Commit, push, build, and deploy
seite deploy --no-commit              # Deploy without auto-commit/push
seite deploy --dry-run                # Preview changes
seite deploy --target netlify         # Override target
seite deploy --target cloudflare --dry-run
seite deploy --domain example.com     # Set up custom domain
seite deploy --setup                  # Guided setup wizard

seite workspace

Manage multi-site workspaces. See the Workspaces guide for full details.

seite workspace <subcommand>
SubcommandDescription
init [name]Initialize a new workspace in the current directory
listList all sites in the workspace
add <name>Add a new site to the workspace
statusShow detailed workspace status

workspace add flags

FlagDescription
--pathSite directory path (default: sites/<name>)
--titleSite title
--collectionsComma-separated collections (default: posts,pages)
seite workspace init my-workspace
seite workspace add blog --collections posts,pages --title "Blog"
seite workspace add docs --collections docs --path sites/documentation
seite workspace list
seite workspace status

When inside a workspace, build, serve, and deploy operate on all sites by default. Use --site to target one:

seite build --site blog               # Build only the blog
seite serve --site docs               # Serve only the docs
seite deploy --site blog --dry-run    # Preview blog deploy

seite mcp

Start the MCP (Model Context Protocol) server for AI tool integration. Communicates over stdio using JSON-RPC.

seite mcp

This command is designed to be spawned automatically by Claude Code (or other MCP clients) as a subprocess. It is configured in .claude/settings.json during seite init and requires no manual invocation.

The server exposes resources (documentation, site config, content, themes) and tools (build, create content, search, apply theme, lookup docs). See the MCP Server guide for full details.

Info

You don't need to run this command manually. Claude Code starts it automatically when you open a page project. Use seite upgrade to add the MCP configuration to existing projects.

seite upgrade

Update project configuration files to match the current binary version. When you upgrade the seite binary, your existing project may lack new config entries (e.g., MCP server settings). This command detects what's outdated and applies additive, non-destructive changes.

seite upgrade [options]
FlagDescription
--forceApply all upgrades without confirmation
--checkCheck for needed upgrades without applying (exits with code 1 if outdated)
seite upgrade                # Interactive: shows changes, asks for confirmation
seite upgrade --force        # Apply all changes without prompting
seite upgrade --check        # CI mode: exit 1 if upgrades needed, 0 if current

Upgrade is additive and non-destructive:

  • Merges into .claude/settings.json — adds new entries, never removes yours
  • Appends to CLAUDE.md — adds new sections, never modifies existing content
  • Creates .seite/config.json if missing — tracks the project's config version
  • Each upgrade step is version-gated, so running it on a current project is a fast no-op
Tip

seite build will nudge you with a one-liner when your project config is outdated: "Run seite upgrade for new features." The build still succeeds — the nudge is informational only.

seite self-update

Update the seite binary itself to the latest release (or a specific version).

seite self-update [options]
FlagDescription
--checkCheck for updates without installing
--target-versionUpdate to a specific version (e.g., 0.2.0 or v0.2.0)
seite self-update                          # Update to latest release
seite self-update --check                  # Just check, don't install
seite self-update --target-version 0.2.0   # Pin a specific version

The command downloads the appropriate binary for your platform from GitHub Releases, verifies the SHA256 checksum, and replaces the running binary atomically.

Info

After updating the binary, run seite upgrade in each of your projects to bring their config files up to date.