template-kit dev
The `template-kit dev` command — its arguments, flags, exit codes and constraints.
Start the local preview server.
Synopsis
Section titled “Synopsis”template-kit dev [template] [--port <n>] [--diagnostics-cmd <cmd>] [--no-auto-update]Arguments
Section titled “Arguments”| Argument | Required | What it does |
|---|---|---|
template |
no | Preselect one template in the UI. Every template in the workspace is served either way. |
| Flag | Type | Default | What it does |
|---|---|---|---|
--port <n> |
string | 5180 |
Port to serve on. A non-integer or non-positive value falls back to the default |
--diagnostics-cmd <cmd> |
string | — | Shell command the server runs to collect typecheck and lint diagnostics for the UI |
--no-auto-update |
boolean | false |
Skip the package refresh this command runs first when the workspace is behind the published release |
Exit codes
Section titled “Exit codes”| Code | When |
|---|---|
0 |
the server is interrupted (Ctrl-C, SIGTERM) and shuts down cleanly |
1 |
the server cannot start |
Constraints
Section titled “Constraints”- Runs until interrupted — it is a server, not a one-shot command.
- Serves every template in the invocation workspace, not only the named one.
See also
Section titled “See also”- Every command — the rest of the CLI’s surface.
- This CLI drives any kit in
^9.0.0;template-kit --versionprints the pair.