Volt v0.1 · TypeScript APIs on Bun · Get started
Docs/Getting Started/Volt CLI

Volt CLI

Use the commands implemented by the current CLI.

Install the CLI

The executable is provided by @voltts/cli. Run it through Bun:

bash
bun add --dev @voltts/cli
bunx --bun --package @voltts/cli volt --help

Scaffold and run

Choose the modular API or minimal template in the terminal. For non-interactive use, pass --template api or --template minimal.

bash
bunx --bun --package @voltts/cli volt new my-api --template api
cd my-api
bun install
bun run dev

Supported commands

CommandBehavior
volt new nameCreates a project directory with src/index.ts and package scripts
volt dev src/index.tsStarts Bun watch mode
volt routes src/app.tsImports the file and prints registered routes
volt versionPrints the CLI version
volt helpPrints command help

Inspect routes without starting a server

Route inspection imports your entry module. Export an app and guard listen with globalThis._importMeta_.main, as in Quick Start, to prevent side effects during inspection. The current executable has no build or generator commands; use Bun directly for bundling and write modules as shown in Modular Architecture.