Skip to content

CLI option reference

OptionShort formValueMain commandsBehavior
--template-tStringcreate, init, configTemplate name to use
--port-pNumberrun, default commandOverrides the listening port
--open-oFlagrun, default commandOpens a browser as if browser: true were set
--help-hFlagDefault commandDisplays help and exits
--version-vFlagDefault commandDisplays the package version and exits

Configuration precedence

CLI options are applied after the loaded tyoi*.config.js, so a CLI option takes precedence when both specify the same property. The CLI sets root last.

text
Default configuration
  → tyoi*.config.js
  → CLI options
  → root determined by the CLI

--open opens the local URL. There is no CLI option for selecting the network URL directly, so set browser: "lan" in the configuration file.