CLI
starboard works on the project that holds the working directory: it looks
for starboard.yaml there, then in each parent directory. Every example on
this page runs, as written, in Starboard’s tests: the commands that need a
project against a copy of examples/travel-app, and init in an empty
directory.
starboard --helpUsage: starboard [--dir D] <command> [flags]
Commands: init [--platform P]... Write a new project: starboard.yaml, docs/flows and .gitattributes lines. fmt [--check] Rewrite the project's files in canonical form, listing each one. lint [--json] [--fix] [--strict] Check the project and report its errors and warnings. rules [--json] List every lint rule: its ID, kind, default severity and summary. generate [--check] Write <content>/generated: the app map, the screen catalog and the wireframes. render [--form-factor F] [-o FILE] <screen-id> Print one screen's wireframe SVG. schema <config|screens> Print the JSON Schema for starboard.yaml (config) or screens.yaml (screens). skills install [--agent A]... [--dry-run] Install the skills for each agent the project uses, or each --agent. skills list List the skills this release carries. skills hooks <agent|pre-commit> Print configuration that runs fmt and lint after edits; edits nothing. version Print starboard's version.
Flags: --dir D work in directory D (default: the working directory)
Exit status: 0 clean, 1 findings, 2 usage error or no project.starboard <command> --help prints one command’s usage and flags. Flags
may come before or after a command’s arguments.
Global flags
Section titled “Global flags”| Flag | Meaning |
|---|---|
--dir D |
Work in directory D instead of the working directory. It comes before the command. |
starboard --dir app lint--dir changes where the project is looked for, not how paths you type are
read: render -o is still relative to the working directory.
Exit status
Section titled “Exit status”| Status | Meaning |
|---|---|
0 |
The command succeeded, with nothing to report. |
1 |
Findings: lint found errors (or warnings, with --strict); fmt --check or generate --check would change files; fmt or generate found errors in the project; or fmt could not format a file. |
2 |
A usage error, no starboard.yaml in the directory or any parent, or a command that could not run. |
starboard init
Section titled “starboard init”starboard [--dir D] init [--platform P]...Writes a new project in the directory: starboard.yaml,
docs/flows/README.md, docs/flows/screens.yaml with one example screen,
docs/flows/flows/example.md, the generated pages, and lines in
.gitattributes that keep the files’ line endings the same on every
operating system. It lists every file it writes. It refuses, changing
nothing, if any of the files it would write already exists.
| Flag | Meaning |
|---|---|
--platform P |
Add platform P; ios, android and web get suggested settings. Repeat it for each platform. |
starboard init --platform macos --platform webversion: 1platforms: macos: {} web: formFactors: [web-narrow, web-wide] screenFiles: ['**/*.{tsx,svelte,vue}']areas: [home]A platform other than ios, android and web starts with no settings;
add its formFactors, roots and screenFiles yourself. See
Your first project.
starboard fmt
Section titled “starboard fmt”starboard [--dir D] fmt [--check]Rewrites starboard.yaml, screens.yaml and every flow file in canonical
form, and lists each file it changed. Canonical form fixes key order,
indentation and the order of screens; it keeps comments. Formatting a
formatted file changes nothing, and a file whose only difference is CRLF
line endings counts as formatted.
Errors in the project are printed to stderr and make fmt exit 1, but every
file that can be formatted still is. A file fmt cannot format safely is
reported as cannot format <path>: <reason>.
| Flag | Meaning |
|---|---|
--check |
List the files fmt would change, change nothing, and exit 1 if any. |
starboard fmtstarboard fmt --checkstarboard lint
Section titled “starboard lint”starboard [--dir D] lint [--json] [--fix] [--strict]Checks the project and prints each finding, then a count. Correctness
findings are always errors; quality findings are warnings unless
starboard.yaml sets their severity. lint exits 1 when there is an error.
It includes the checks fmt --check and generate --check make, as the
rules not-formatted and
generated-stale.
| Flag | Meaning |
|---|---|
--json |
Print the findings as a versioned JSON report. See JSON output. |
--fix |
First format the sources and regenerate <content>/generated, listing each file, then lint. A project with errors that stop it loading is not fixed. With --json, the list goes to stderr. |
--strict |
Exit 1 on warnings as well as errors. |
starboard lintstarboard lint --strictstarboard lint --fixstarboard lint --jsonA finding reads <file>:<line>: <severity> <rule>: <message>, with the
line left out when there is none. Each rule has a page at
https://starboard.c65llc.com/rules/<rule>/; JSON output
lists them all.
starboard rules
Section titled “starboard rules”starboard [--dir D] rules [--json]Lists every lint rule: its ID, whether it is a correctness or a quality rule, its default severity and a one-sentence summary. It needs no project.
| Flag | Meaning |
|---|---|
--json |
Print the rules as a versioned JSON report, each with its documentation page. |
starboard rulesstarboard rules --jsonstarboard generate
Section titled “starboard generate”starboard [--dir D] generate [--check]Writes <content>/generated/: app-map.md, screens.md and one wireframe
per screen per form factor under wireframes/. It writes only files whose
content changes, prints wrote <path> for each, and removes, printing
removed <path>, a wireframe it no longer generates, such as a deleted
screen’s. It never touches other files under generated/. A project with
errors that stop it loading is refused, with exit status 1.
| Flag | Meaning |
|---|---|
--check |
List what generate would write or remove, change nothing, and exit 1 if anything. |
starboard generatestarboard generate --check--check prints would write <path> and would remove <path>.
starboard render
Section titled “starboard render”starboard [--dir D] render [--form-factor F] [-o FILE] <screen-id>Prints one screen’s wireframe as SVG, the same bytes generate writes for
it. It is for trying out a layout without regenerating everything.
| Flag | Meaning |
|---|---|
--form-factor F |
Draw form factor F (default: the screen’s first). Any configured form factor works, not only the screen’s own. |
-o FILE |
Write the SVG to FILE, an .svg path relative to the working directory or absolute, instead of stdout. |
starboard render trip.timeline --form-factor web-wide -o timeline.svgwrote timeline.svg-o must end in .svg, so it can never overwrite a source file, and it
writes the file whole or not at all. An unknown screen or form factor is a
usage error, exit 2.
starboard schema
Section titled “starboard schema”starboard [--dir D] schema <config|screens>Prints the JSON Schema for starboard.yaml (config) or screens.yaml
(screens). It needs no project. See JSON Schemas.
starboard schema configstarboard schema screensstarboard skills install
Section titled “starboard skills install”starboard [--dir D] skills install [--agent A]... [--dry-run]Installs Starboard’s agent skills for each coding agent the project already
uses, or for each --agent. Without --agent, it detects the agents from
files at the project root, such as .claude/ or AGENTS.md, and stops if
it finds none. Files you have edited since Starboard installed them are
kept, and the new version is staged under .starboard/pending/.
Working with coding agents covers the details.
| Flag | Meaning |
|---|---|
--agent A |
Install for agent A: claude-code, cursor, copilot, codex, gemini or aider. Repeat it for each agent. |
--dry-run |
List what install would write or stage, and change nothing. |
starboard skills install --agent claude-code --dry-runstarboard skills install --agent claude-codestarboard skills list
Section titled “starboard skills list”starboard [--dir D] skills listLists the skills this release carries, with what each is for.
starboard skills liststarboard Use when reading or editing a project's Starboard reference (screens.yaml, flow files or starboard.yaml), so every edit stays formatted, lint-clean and in step with the generated pages.starboard-adopt Use when adding Starboard to an existing app, to bootstrap the screen registry and flows from the code area by area, keeping starboard lint passing at every commit.starboard-implement Use when building proposed Starboard screens, regions or flows on one named platform, to implement them in that platform's code and mark them shipped in the same change.starboard-propose Use when planning a new or changed screen, region or user flow, to express the change in the Starboard reference as proposed items for review before any platform code is written.starboard skills hooks
Section titled “starboard skills hooks”starboard [--dir D] skills hooks <agent|pre-commit>Prints configuration that runs starboard fmt and starboard lint after
edits, and edits no file: a Claude Code hook for claude-code, a git hook
script for pre-commit, and for cursor, copilot, codex, gemini and
aider, which have no edit hook, a paragraph for the agent’s instructions
file. A note on where to put it goes to stderr.
starboard skills hooks claude-codestarboard skills hooks pre-commitstarboard skills hooks codexstarboard version
Section titled “starboard version”starboard [--dir D] versionPrints starboard and the version: the release’s for a release binary,
the module’s for go install, and dev for a build from a source checkout.
starboard versionInternal commands
Section titled “Internal commands”starboard hook claude-code is not in the usage: it is the command the
Claude Code hook that starboard skills hooks claude-code prints runs
after each edit. It reads the hook’s input on stdin, and exits 2 with the
findings when the edited file breaks the reference, which Claude Code hands
back to the agent. See
Working with coding agents.