CLI
CLI
Command-line tools for the Dex framework, powered by a native Go CLI (cli/).
Native Go Architecture (v0.3.0)
In v0.3.0, the dex CLI is compiled from Go (cli/cmd/dex/main.go) with CGO_ENABLED=0 into a standalone ~6 MB binary with <5ms startup and zero runtime dependencies:
- Cross-compiled release targets:
- Linux:
dex-linux-x64,dex-linux-arm64 - macOS:
dex-darwin-x64,dex-darwin-arm64 - Windows:
dex-windows-x64.exe
- Linux:
- Workspace TypeScript package:
@dex/cli(framework/packages/cli) continues to be maintained as a TypeScript workspace package alongside the native Go binary. - Release integrity (
SHA256SUMS): Each GitHub Release publishes aSHA256SUMSmanifest alongside the binaries so downloaded executables can be verified before running.
Topics
- Scaffold — Create a new Dex project with
dex scaffold - Commands — Full CLI command reference (
template,sync,pie,update, etc.)
Installation
Linux / macOS
curl -fsSL https://raw.githubusercontent.com/patrickaigbogun/dex/master/install.sh | bashWindows (PowerShell)
irm https://raw.githubusercontent.com/patrickaigbogun/dex/master/install.ps1 | iexDex installs binaries to ~/.dex/versions/<version>/dex with an active symlink at ~/.dex/current and executable shim at ~/.dex/bin/dex (and ~/.local/bin/dex when ~/.local/bin exists).
Verifying Release Binaries with SHA256SUMS
curl -fsSLO https://github.com/patrickaigbogun/dex/releases/latest/download/SHA256SUMS
sha256sum -c SHA256SUMS --ignore-missingQuick Start
# Scaffold a new project
dex scaffold my-app
# Enter directory
cd my-app
# Start development server
dex startAvailable Commands
dex scaffold <dir>— Scaffold a new Dex project (--no-cache/--freshsupported)dex sync [--interactive]— Sync template changes with SHA-256 checksum verification anddeletedFilescleanupdex template <list|cache|diff>— Inspect official/cached templates, manage template cache, and view release diffsdex update [version] [--force]— Update the CLI to the latest (or specific) releasedex versions/dex list/dex ls— List all locally installed CLI versionsdex use <version>— Switch the active CLI versiondex pie generate [spec]— Generate a typed route-tree API client from JSON or YAML OpenAPI specsdex tag <patch|minor|major>— Bump and push SemVer git release tagsdex build— Build project for productiondex start [-p]— Run development (dex start) or production (dex start -p) serverdex -v/dex --version [-f]— Display CLI and template version info