CLI

One command, everything

zinc help lists the commands and zinc help run describes one. A misspelt command names the closest one.

I want to...Command
start a project from one of 13 templates (game, 3D, dashboard, IoT, e-ink, service...)zinc new game my-game
run it, with Fast Refresh and a DevTools inspectorzinc run | zinc dev
run plain JavaScript (three.js, PixiJS, Phaser) as it iszinc run app.js --engine quickjs
set breakpoints in VS Code or Chromezinc debug --dap | zinc debug --cdp
understand an errorzinc explain Z0104
test on the interpreter, in native code, on QuickJS or a simulated devicezinc test --runner aot
try it on a device I do not havezinc run --simulate hp-touchpad
build a native executable, for this machine or anotherzinc build | zinc build --target aarch64-linux
flash a boardzinc flash --target esp32
drive a Pi or a Mac from my desk (shell, files, apps, logs)zinc agent (on it), zinc device (here)
ship a .app, a single executable or a .zappzinc export | zinc pack
publish a version and signed updateszinc publish
add a plugin from the signed indexzinc add <plugin>
capture frames, measure speedzinc capture | zinc bench

Useful environment

VariableEffect
ZINC_HEADLESS=1no window
ZINC_DETERMINISTIC=1deterministic run
ZINC_FRAMES=nstop after n frames
ZINC_SHOT=file.pngsave a frame
ZINC_HOMEtoolchains and caches, default ~/.zinc

Get started · Developer guide