Installation
Install the Velocity CLI on macOS using Homebrew. Create and manage Go web applications with the velocity command line tool.
Install the Velocity CLI to create and manage Velocity projects.
Requirements
- Go 1.25 or higher - Required for building projects
- Node.js 18+ - Required for frontend asset compilation (Vite)
- Git - Required for project initialization
Install via Homebrew
The recommended way to install Velocity on macOS:
brew tap velocitykode/tap
brew install velocityVerify Installation
Check that the CLI is installed correctly:
velocity --versionYou should see output like:
velocity version 0.4.0Understanding the CLI Architecture
Velocity uses two CLI tools:
| Tool | Install Method | Purpose |
|---|---|---|
velocity | Homebrew (global) | Create projects, manage config |
vel | Built from source (per-project) | Run dev server, migrations, generators |
When you run velocity new myapp, it:
- Scaffolds a new project
- Installs dependencies
- Builds the
./velbinary from your project source - Starts development servers
Using vel in Projects
After creating a project, use ./vel for development commands:
cd myapp
./vel serve # Start dev server
./vel migrate # Run migrationsShell Function (Recommended)
Run this once to use vel instead of ./vel:
grep -q "vel()" ~/.zshrc || echo 'vel() { [ -x ./vel ] && ./vel "$@" || echo "vel: not found"; }' >> ~/.zshrc && source ~/.zshrcNow you can simply run:
vel serve
vel migrateGetting Help
View available commands:
velocity --help
./vel --helpGet help for a specific command:
velocity new --help
./vel serve --helpUpdating
Update Velocity Installer
brew upgrade velocityOr use the built-in self-update:
velocity self-updateRebuild vel
The vel binary is rebuilt automatically when source files change. To manually rebuild:
go build -o vel ./cmd/velUninstalling
Remove Velocity Installer
brew uninstall velocity
brew untap velocitykode/tapRemove vel
The vel binary is project-local and gitignored. Simply delete your project directory.
