My App

Commands

CLI Commands

All Dex CLI commands.

dex create

Scaffold a new project.

bunx dex create <project-name>
OptionDescription
--templateUse a specific template
--typescriptUse TypeScript (default)

dex-router

Router CLI for route generation.

bunx dex-router generate [options]
OptionDefaultDescription
--pagesDirweb/pagesPages directory
--layoutsDirweb/layoutsLayouts directory
--outTscore/router/.generated/routes.tsRoutes output

bun run dev

Start development server.

bun run dev [options]
OptionDefaultDescription
--port7990Server port
--no-hotfalseDisable hot reload

bun run build

Build for production.

bun run build [options]
OptionDefaultDescription
--outDirbuildOutput directory
--minifytrueMinify output

bun run start

Run production server.

cd build
bun run start

Or directly:

./build/server

See Also

On this page