npx @noverax/create-courier, item by item. What it does for you, and what it will not do, is on Create Courier.
Options
| Option | |
|---|---|
[dir] | The project's folder, or a new one to create (default: the working directory) |
--framework <name> | next, nuxt, sveltekit, astro, react-router, remix, solid-start, tanstack-start-react, tanstack-start-solid, expo, nestjs, fastify, hono, express, react, vue (default: found in package.json) |
--no-example | Set Courier up with no API yet: no example API, page, mock or hooks. --example beside --openapi is refused |
--openapi <spec> | Import your API from a specification, a URL or a file, in place of the example |
--name <name> | The imported API's name (default: from the specification) |
--no-studio | Leave Studio out, and with it the example's mock, which Studio runs |
--no-mocks | Leave the example's mock out. --mocks beside --no-example, --no-studio or --openapi is refused: the mock is the example's, and Studio runs it |
--mcp | Offer the API's reads to AI agents in your editor |
--agents-md | Point your editor's agent at the docs of the Courier you install: Courier's block in AGENTS.md, and @noverax/courier-docs |
--routes <mode> | plugin: pages take their routes from Courier's plugin for the app's build; file: from courier.routes.ts (default: plugin, or file where the project keeps one) |
--package-manager <name> | npm, pnpm, yarn or bun (default: the project's, or the one that started the command) |
--no-install | Write the files, and name the install commands |
--yes, -y | Go ahead without asking |
--allow-dirty | Go ahead with --yes where git has changes not committed |
--dry-run | Show the plan, and change nothing |
--json | Report the plan and what was done as one JSON document on standard output, asking nothing |
The JSON document
With --json the command asks nothing, and writes one JSON document to standard output as it ends; the install and the other programs it runs write to standard error. --yes and --dry-run mean what they mean without it: with neither, the document holds the plan and the status refused.
| Field | |
|---|---|
schemaVersion | 1. Within it, fields are only ever added |
status | applied, unchanged, dry-run, refused or failed |
exitCode | What the command exits with: 0, or 1 for a refusal or a failure |
newProject | The project it created, where it created one: its name, framework and how it was made |
plan | Its title; the files, each with its path, state (create, same, courier or kept) and purpose; the edits, with the lines each removes and adds; the packages; what is left to you, manual; what to run, next; what it leaves out and why, leftOut; what git says, git; the APIs your config declares, configured; and, where you asked for Courier's block, agentRules: AGENTS.md and CLAUDE.md, each with its path and state (create, append, update, same or kept) |
written, changed | The files it added, and the files of yours it changed |
install | Whether the install ran, and its commands: those left to you with --no-install |
warnings | Programs that write the types the added files read, such as astro sync, that failed |
typecheck | clean, errors with their lines, unchecked with its reason, or no-typescript |
undone | For a run that failed part way: the files it removed and putBack, and those it kept, each with why |
error | Its code and message: CONFIRMATION_REQUIRED, DECLINED, GIT_DIRTY, NODE_TOO_OLD, SPEC_CREDENTIALS_IN_URL or REFUSED for a refusal, which changed nothing; INSTALL_FAILED, INSTALL_TIMED_OUT, CANCELLED, FILE_APPEARED, FILE_CHANGED, WRITE_FAILED, PATH_OUTSIDE_PROJECT, IMPORT_FAILED, GENERATOR_FAILED, TYPECHECK_FAILED or UNEXPECTED_ERROR for a failure |
npx @noverax/courier-cli setup --json writes the same document, its command naming it.
How long a program may run
Each program the setup runs has its time: 20 minutes for an install or a framework's generator, 5 minutes for Studio's import, for TypeScript's check and for a program like astro sync or the build that writes a TanStack Start app's route types.