Scaffold a new Kide CMS project.
pnpm create kide-app my-projectThe CLI asks for:
- Project name — directory to create
- Starter template — Blank (default: one
pagescollection, no demo content) or a starter shipped with the template release, e.g. Marketing site (pages with blocks, blog, menu, contact form). Starters can seed example content into the local database. - Distribution mode — Package (recommended: thin project +
@kidecms/corenpm dependency;pnpm exec kide ejectconverts to embedded later, one-way) or Embedded (full CMS source insrc/cms/, yours to modify) - Deploy target — Local/Node.js or Cloudflare
Every prompt can be answered with a flag; supplied answers skip their prompts. Without a terminal (CI, agents) every answer must be supplied — a missing one fails with the flags to pass, before anything is created.
pnpm create kide-app my-app --starter=marketing --seed --mode=embedded --target=local --no-github --no-dev
pnpm create kide-app my-app --starter=blank --mode=package --target=cloudflare --cloudflare-setup --deploy --no-github| Flag | Values |
|---|---|
--starter= |
blank or a starter name from the template release |
--seed / --no-seed |
Seed example content (local target with a starter) |
--mode= |
package or embedded |
--target= |
local or cloudflare |
--cloudflare-setup / --no-cloudflare-setup |
Create the D1 database and R2 bucket and apply migrations (Cloudflare target) |
--deploy / --no-deploy |
Deploy after setup (Cloudflare target) |
--no-github |
Skip the GitHub repo prompt (skipped without a terminal) |
--no-dev |
Skip the dev-server prompt (skipped without a terminal) |
The template repo can be overridden with the KIDE_TEMPLATE_REPO env var (forks, local testing).
- Clones the latest Kide CMS release from GitHub (package mode then swaps the embedded runtime for the published
@kidecms/coreat the same version). - Applies target-specific configuration (Node.js adapter, or Cloudflare D1/R2/Workers).
- Installs dependencies with pnpm.
- Optionally creates a GitHub repo (if the
ghCLI is installed and authenticated). - Generates the CMS schema.
- For local: starts the dev server.
- For Cloudflare: logs into wrangler (if needed), creates a D1 database and R2 bucket, applies migrations, builds and deploys, and prints the live URL + admin URL.
- Node.js >= 22.23.4
pnpminstalledgiton PATH- Optional:
ghCLI authenticated (gh auth login) for GitHub repo creation - For Cloudflare: a Cloudflare account (the CLI runs
wrangler loginfor you)