My App

Cli Flags

CLI Flags

All command-line options for Dex CLI and tooling.

Dex CLI (dex)

dex scaffold <dir>

dex scaffold <dir> [options]
FlagDefaultDescription
--repo <owner/repo>patrickaigbogun/dexGitHub repository containing release templates
--tag <tag|latest>latestRelease tag to download template from
--packages-repo <owner/repo>(template repo)GitHub repository containing dex-package-*.tgz assets
--packages-tag <tag|latest>(template tag)Release tag for framework packages
--template <path>—Local template .tgz archive path (skips GitHub API)
--template-url <url>—URL to template .tgz archive (skips GitHub API)
--no-installfalseSkip running bun install after scaffolding

dex sync

dex sync [options]
FlagDefaultDescription
--interactivefalseInteractively select files to sync
--repo <owner/repo>Metadata repoTemplate repository
--tag <tag>Metadata releaseTag / latestRelease tag to sync

dex start

dex start [-p]
FlagDefaultDescription
-pfalseRun production server (NODE_ENV=production)

Version Flags

FlagDescription
-v, --versionPrint CLI version
--version -f, -v -fPrint CLI version and template version from .dex/metadata.json

Router CLI (dex-router)

bunx dex-router generate [options]
bunx dex-router watch [options]
FlagDefaultDescription
--pagesDirweb/pagesPages directory containing route components
--layoutsDirweb/layoutsLayouts directory containing layout modules
--outRoutesTscore/router/.generated/routes.tsOutput path for generated TypeScript routes file
--outRoutesJsoncore/router/.generated/manifest.jsonOutput path for generated JSON route manifest
--outLayoutsTscore/router/.generated/layouts.tsOutput path for generated TypeScript layouts map

Dev CLI

bun run dev [options]
FlagDefaultDescription
--port7990Server port
--pagesDirweb/pagesPages directory
--no-hotfalseDisable hot reload

Build CLI

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

Precedence

CLI flags override config file values, which override defaults.

On this page