Skip to content
brought to you byVoidZero

CLI Reference ​

void is a local binary from the installed void package.

Use this page as a command reference. If you are setting up a project for the first time, start with Quickstart and come back here when you need exact command behavior or flags.

Command Groups ​

Command groupReference
init, prepare, info, migrateProject setup
connect, auth, account, cloudflareConnections and authentication
projectProjects, teams, logs, and rollback
deployDeployment
dbDatabase
genCode generation
secret, envSecrets and environment
github, buildGitHub and builds
domainCustom domains
emailEmail
platformPlatform installation and administration

Cheat Sheet ​

CommandPurpose
void deployBuild and deploy to the configured platform
void prepareGenerate .void artifacts without starting Vite
void info [--json]Inspect persistent resource names before moving their code
void gen model <name> [cols...]Scaffold a Drizzle table and API routes
void gen route <path>Create an API route
void db pushApply schema directly without migration files
void db generateGenerate SQL migrations from schema changes
void db statusShow local/remote migration status
void db resetDrop and re-apply all migrations
void db seedReset + seed local database
void db execute <sql>Run SQL against the database (--remote for deployed)
void db studioOpen Drizzle Studio (--remote for a deployed external database)
void secret put <name=value>Set a production secret
void secret listList production secrets
void secret sync <file>Bulk upload secrets from dotenv file
void env check [--remote]Validate env.ts schema
void env typesRegenerate .void/env.d.ts from env.ts
void auth loginAuthenticate with the project’s saved destination, or choose one
void account loginAuthenticate with a Void platform
void cloudflare loginAuthenticate with Cloudflare through Void
void platform installInstall a company Void platform in Cloudflare
void connect <url>Connect the CLI to a Void platform
void project linkLink directory to a project
void project logsShow runtime logs from deployed project
void project requestsShow request-level traffic (status, method, timing)
void project rollbackRoll back to a previous deployment
void project cancelCancel an active deployment
void project zero-trustInspect or override project Zero Trust protection
void project purge-cachePurge all cached pages
void build logsStream, tail, or download build logs
void email statusShow email readiness on your own Cloudflare account (--platform cloudflare)
void email setupSet email up on your own Cloudflare account, without deploying
void email usageShow monthly recipient attempts, inbound receipts, and quota
void email logsShow recent email delivery activity
void email destinationsList verified recipient addresses
void email allow <address>Add a recipient and send a verification email
void email disallow <address>Remove a recipient from the allowlist
void email domainSend and receive at your own domain on a Cloudflare zone
void initSetup wizard for new or existing projects
void migrateConvert legacy void.json and root Wrangler JSON/JSONC into void.config.ts

Binary Invocation ​

The docs use void for brevity. Outside package scripts, run it with your package manager: npx void, pnpm void, yarn void, or bunx void.

Alternatively, you can add ./node_modules/.bin to your PATH so that you can invoke void directly when you are in the root directory of your app.

⚠️ Prefer local install

Install void in your project so the CLI and runtime use the same version.

Help ​

void --help
void help
void help <command>
void help <group> <command>
void <command> --help
void <group> <command> --help
void <group> help <command>

Use void --help for the command list, or void deploy --help for a specific command. Help is available without signing in or setting up a project.

Environment variables ​

VariablePurposeDefault
VOID_TOKENAuth token override instead of saved confignone
VOID_PROJECTDefault project slug for deploy, secret, domain, and cache purge commandsnone