Command Line Interface
Every command reports a failure as [inca] <command> failed (<code>): … — see Error Codes for what each one means.
inca dev
Watches your app and opens a live-reloading development window, reloading on every change. It stops before building if no host binary can be found. It exits with code 0 when you close the window and non-zero if the host crashes. See Error Codes.
Usage
sh
inca devOptions
| Flag | Description |
|---|---|
--experimental-hmr | Reloads only the changed module instead of the whole bundle. |
WARNING
--experimental-hmr is experimental. See the HMR guide for what it does differently and its known limitations.
inca build
Bundles your app for production, once, with no window opened. See Building for Production.
Usage
sh
inca buildinca package
Builds your app, then packages it with a prebuilt host binary into a distributable application: a .app on macOS, a plain directory on Linux. See Building for Production.
Usage
sh
inca packageEnvironment Variables
| Variable | Description |
|---|---|
INCA_HOST_BIN | Path to a specific host binary, used by dev and package in place of automatic resolution — e.g. on a custom or unpublished build. |
INCA_EXPERIMENTAL_HMR | Same as --experimental-hmr, for inca dev. See the HMR guide. |