Skip to content
HomePagesHomePages template kit

template-kit dev

The `template-kit dev` command — its arguments, flags, exit codes and constraints.

Start the local preview server.

Terminal window
template-kit dev [template] [--port <n>] [--diagnostics-cmd <cmd>] [--no-auto-update]
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
Code When
0 the server is interrupted (Ctrl-C, SIGTERM) and shuts down cleanly
1 the server cannot start
  • Runs until interrupted — it is a server, not a one-shot command.
  • Serves every template in the invocation workspace, not only the named one.
  • Every command — the rest of the CLI’s surface.
  • This CLI drives any kit in ^9.0.0; template-kit --version prints the pair.