Skip to content
Built with

CLI Reference ​

SDK Reference

void is a local binary that ships with the void package. Run it with your package manager, for example npx void.

On this pageFind the right command group · Use the cheat sheet for everyday commands · See global help and environment variables

Use this page to look up commands. New to the SDK? Start with Quickstart. Come back here for exact behavior and 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 an SDK platform
void cloudflare loginAuthenticate with Cloudflare through the SDK
void platform installInstall a company SDK platform in Cloudflare
void connect <url>Connect the CLI to an SDK platform; hostnames default to HTTPS
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 (SDK platform)
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 initSet up a new or existing project, including coding agents
void migrateConvert legacy void.json and root Wrangler JSON/JSONC into void.config.ts

Binary Invocation ​

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

You can also add ./node_modules/.bin to your PATH. You can then run void directly from your app's root folder.

⚠️ 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>

Run void --help for the command list. Run void deploy --help for one command. Help works without a sign-in or 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

Next steps ​

implemented.stream AI