Commands

SeedPage’s commands run in a terminal, in the folder where SeedPage is installed, as npm run <command>, with the options after --: npm run build -- --root <folderId> --out dist. npm start and npm test need no run. Most people only ever use npm start; the others are for sites kept in Google Drive, for publishing from CI and for working on SeedPage itself.

Using SeedPage

npm run start

Starts SeedPage on this computer and opens the list of sites in the browser. Keep its window open; Ctrl+C or Shut down in the list of sites stops it.

shell
npm start [-- --locale <tag>] [--no-open]
  --locale <tag>   language of these messages (default: LANG, then en)
  --no-open        do not open the browser

npm run wizard

The setup wizard alone, in the browser. npm start shows the same wizard from the list of sites.

shell
npm run wizard [-- --port <n>] [--locale <tag>]

npm run google

Google access from the terminal: keep your OAuth client, sign in, make a starter site in your Drive, put a Drive site online.

shell
usage: google-access.js client --file <json> | login | create --starter <name> | online --root <id> | status
  client --file <json>    keep the "Desktop app" OAuth client you downloaded from your own Google Cloud project
  login                   sign in with your Google account: SeedPage reads and writes your sites as you
  status                  how SeedPage reaches Google Drive here
  create --starter <name> [--name "<site name>"] [--language pt-BR] [--also en] [--parent <folderId>]
                          make a starter site in your Drive
  online --root <id>      put the site on GitHub Pages, or publish it again

npm run migrate

Converts a Drive site made before the current site model, in place.

shell
usage: npm run migrate -- --root <folderId> [--locale <tag>]
Converts a site made before the core model (site.config, template Docs, metadata tables) in place, with your Google sign-in.

npm run author:demo

The console and editors on a demo site kept in memory, or on a starter written to a temporary folder. Nothing reaches Google; changes last while it runs.

shell
npm run author:demo [-- --port <n>] [--starter <name>]

Building and publishing sites

npm run build

Builds one site from Google Drive (or the demo site) into a folder, and can publish that folder with git or keep watching Drive.

shell
usage: build-site.js --demo | --root <folderId> [options]
  --out <dir>      output directory (default: dist)
  --force          ignore the cache and rebuild everything
  --no-images      skip image processing
  --watch [sec]    watch Drive and rebuild (default: 60s)
  --publish        commit + push the output directory
  --branch <name>  publish branch (default: main)
  --dry-run        with --publish, show what would happen
  --credentials <file>  a service account key file (CI publishing)
  --cache <dir>    keep the Docs and Sheets read there; read again only what changed
  --locale <tag>   language of these messages (default: LANG, then en)

npm run build:demo

Builds the demo site, on a fake Drive in memory, into dist.

shell
npm run build:demo

npm run build:all

Builds several Drive sites listed in a JSON file ({"sites": [{"name", "root", "out"}]}).

shell
usage: build-all.js [--locale <tag>] <sites.json>

npm run serve

The service behind npm start without opening anything: previews kept up to date, the console, publishing and the MCP server. Its settings come from environment variables.

shell
SEEDPAGE_SITES_FILE=sites.json npm run serve

npm run serve:local

Starts that service with the settings of a file (created with defaults the first time) and the GitHub token of the GitHub CLI.

shell
npm run serve:local [-- <settings file>]

SeedPage’s own sites

npm run library

Builds the component library: every component, with every variant, in a theme.

shell
usage: build-library.js [--theme <name>] [--out <dir>] [--locale <tag>] [--address <url>]
  --theme <name>   theme to render the components with (default: base)
  --out <dir>      output directory (default: dist/library)
  --locale <tag>   language of the library and of these messages (default: LANG, then en)
  --address <url>  its public address, a path allowed (default: https://example.com)

npm run starters

Builds the gallery of starter sites, with a demo of each.

shell
usage: build-starters.js [--out <dir>] [--address <url>] [--demos <domain>] [--locale <tag>]
  --out <dir>      output directory (default: dist/starters)
  --address <url>  where the gallery is served (demos at <url>/<starter>/)
  --demos <domain> only the gallery, its cards to each starter's demo at <name>.<domain>
  --locale <tag>   language of these messages (default: LANG, then en)

npm run starter-repos

Writes a repository per starter site, ready to be published as a GitHub template.

shell
usage: build-starter-repos.js --out <dir> [--locale <tag>]
  --out <dir>      where each starter's repository is written (seedpage-starter-<name>)
  --locale <tag>   language of these messages (default: LANG, then en)

npm run thumbs

Takes the pictures of each starter that the setup wizard shows. Needs Chrome.

shell
npm run thumbs [-- --only <starter>]

npm run docs

Writes the generated pages of this documentation (components and reference) into a folder site. With the component library built (npm run library), each component page shows the HTML its example writes.

shell
npm run docs -- --out <site folder> [--library <address of the component library>] [--library-dir <the library, built>]

npm run docs:examples

Takes a picture of each component’s example in a built component library, for the component pages of this documentation. Needs Chrome.

shell
npm run docs:examples -- --library <built library> --out <site folder> [--only <name>]

npm run docs:shots

Takes the documentation’s screenshots of the console and the list of sites, with numbered marks. Needs Chrome.

shell
npm run docs:shots -- --out <folder> [--only <screen>] [--starter <name>]

Checks every link of a built site: pages that exist and parts of pages that exist. Fails when one is broken.

shell
npm run check-links -- <built folder> [--origin https://example.com]

npm run lighthouse

Builds the starter sites and measures their pages with Lighthouse. Fails under 100 in any category.

shell
npm run lighthouse [-- --out <folder>] [--only <starter>]

npm run preview

Writes one page of the demo site as a single HTML file, to look at.

shell
npm run preview [-- <path>]

Working on SeedPage

npm run test

Runs every test. No network.

shell
npm test

npm run test:coverage

Runs every test and fails when lines, functions or branches covered fall under 90%. Run it before every commit.

shell
npm run test:coverage

npm run bench:build

Times four builds of a generated site, on a folder and on a fake Drive.

shell
npm run bench:build [-- --pages <n>] [--reads-per-minute <n>]

For agents

node src/mcp-bridge.js is the MCP server for agents that start a command, such as Claude Desktop. It needs SeedPage running and SEEDPAGE_HOME set to SeedPage’s home folder; the AI section of the console shows the configuration to paste into each agent.