Skip to content

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 dev

Options ​

FlagDescription
--experimental-hmrReloads 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 build

inca 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 package

Environment Variables ​

VariableDescription
INCA_HOST_BINPath 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_HMRSame as --experimental-hmr, for inca dev. See the HMR guide.

Released under the MIT or Apache-2.0 license.