CLI
Install the voxal CLI and learn the commands for scaffolding, previewing, and shipping an app
voxal is the developer CLI for building and deploying voxal apps. It scaffolds projects,
runs them locally with live reload, bundles and validates them, and ships them to the
platform.
Install
The CLI ships as the npm package voxalsh and requires Node.js 20 or newer.
npm install -g voxalshpnpm add -g voxalshyarn global add voxalshbun add -g voxalshIt installs two binaries, voxal and voxalsh, that run the same program. This
documentation uses voxal throughout. Run voxal with no arguments, or voxal --help, to
print usage at any time.
Fastest start
You do not need a global install to begin. Run npm create voxal-app <name> to scaffold a
React starter that already lists voxalsh as a local dependency, so npm run dev,
npm run build, and npm run deploy work out of the box. See voxal init for
the difference between the two scaffolds.
A typical session
voxal init myapp # scaffold an app and link a project
cd myapp && npm install
voxal dev # iterate locally with live reload
voxal deploy # ship it
ssh myapp@voxal.sh # anyone can connectCommands
Create and run
voxal init
Scaffold a new app and link it to a project.
voxal dev
Run the app locally in your terminal, reload on save.
voxal build
Bundle and validate the app to disk, offline.
Ship
Account and projects
Authentication
login, logout, and whoami.
Projects
List or delete your projects.
Configuration
voxal.json and the files the CLI reads.
Command conventions
A few rules hold across every command.
- Positional arguments come without a dash.
voxal init myappandvoxal deploy ./dirpass the name and directory positionally. - Flags accept either
--key valueor--key=value. A value flag with no value is a usage error. - Most commands need no flags. The everyday flags are documented on each command's page:
--namefor deploy,--outfor build, and--no-browserfor login.
An unknown command exits with a non-zero status and points you at voxal --help.