create-zship

Scaffold a standalone Nuxt tenant frontend that connects to an existing ZShip backend with one command.

create-zship is the official scaffolding CLI. It generates a standalone Nuxt tenant frontend — a trimmed monorepo (apps/web plus its workspace package closure) that connects to an existing, shared multi-tenant ZShip backend. Data stays isolated by app_key.

Not yet published to npm.pnpm create zship@latest and npx create-zship@latest will only work after the package is released. The commands below are the planned post-publish entry points — see Use from the monorepo for what works today.

Usage (after npm publish)

pnpm create zship@latest my-saas
# or
npx create-zship@latest my-saas

The interactive prompts ask for the app key, site name, and domain, then generate the project, run pnpm install, and optionally git init.

Use from the monorepo (today)

Until the package is published, run the CLI directly from a ZShip monorepo checkout:

node packages/create-zship/bin/create-zship.js my-saas --yes --skip-install --skip-git

What you get

IncludedNot included
Nuxt app (apps/web) + workspace package closureBackend Workers
Parameterized appKey / brand / wrangler nameAdmin tenant registration
.env.example, doctor, READMECloudflare resource provisioning
pnpm install + optional git initDeploy

The backend mode is fixed to existing: your new frontend talks to the shared multi-tenant ZShip services, and all data is scoped by app_key.

Flags

create-zship my-saas \
  --template nuxt \
  --app-key my-saas \
  --site-name "My SaaS" \
  --domain my-saas.example \
  --backend existing \
  --port 4323 \
  --skip-install \
  --skip-git
  • --yes — accept defaults, skip prompts
  • --skip-install / --skip-git — skip pnpm install / git init
  • --source-root <path> — copy from a local ZShip monorepo
  • --template-dir <path> — copy from a packed template directory

Next steps

Scaffolding only creates the frontend. To go live you still need to:

  1. Register the project (app_key) in the Admin Console
  2. Configure environment variables from .env.example
  3. Deploy the frontend to Cloudflare — see Frontend Apps

For the full tenant onboarding flow, read the repository guide docs/NEW_PROJECT_GUIDE.md; for CLI internals and the publish checklist, see packages/create-zship/README.md.