This site counts visits with analytics cookies only if you accept. Read the consent

Skip to content

Getting StartedCreate Courier Reference

Create Courier Reference

Every option of npx @noverax/create-courier, the JSON document it writes with --json for CI and for agents, and how long each program it runs may take.

3 min readUpdated both modes

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-exampleSet 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-studioLeave Studio out, and with it the example's mock, which Studio runs
--no-mocksLeave 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
--mcpOffer the API's reads to AI agents in your editor
--agents-mdPoint 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-installWrite the files, and name the install commands
--yes, -yGo ahead without asking
--allow-dirtyGo ahead with --yes where git has changes not committed
--dry-runShow the plan, and change nothing
--jsonReport 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
schemaVersion1. Within it, fields are only ever added
statusapplied, unchanged, dry-run, refused or failed
exitCodeWhat the command exits with: 0, or 1 for a refusal or a failure
newProjectThe project it created, where it created one: its name, framework and how it was made
planIts 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, changedThe files it added, and the files of yours it changed
installWhether the install ran, and its commands: those left to you with --no-install
warningsPrograms that write the types the added files read, such as astro sync, that failed
typecheckclean, errors with their lines, unchecked with its reason, or no-typescript
undoneFor a run that failed part way: the files it removed and putBack, and those it kept, each with why
errorIts 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.