Help us shape the future of Go! Take the 2026 Go Developer Survey

velocity-installer

command module
v0.22.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 10 Imported by: 0

README

Velocity Installer

The official installer CLI for Velocity Go web framework.

Installation

Homebrew (macOS)
brew tap velocitykode/tap
brew install velocity

Installs both velocity and vel. Update both with brew upgrade --cask velocity.

Commands

velocity new <name>     # Create a new Velocity project
velocity init           # Initialize Velocity in existing project
velocity config         # Manage CLI configuration

vel <command>           # Run a command in the current project (vel serve, vel migrate, vel gen ...)

Quick Start

# Install
brew install velocitykode/tap/velocity

# Create a new project
velocity new myapp

# Project is ready with dev servers running
# Go server: http://localhost:4000
# Vite: http://localhost:5173

Architecture

Velocity uses two CLI tools:

Tool Install Purpose
velocity Homebrew Create projects, manage config
vel Homebrew (ships with velocity) Run project commands: dev server, migrations, generators

vel is a thin launcher. It finds the enclosing project (nearest go.mod requiring the framework), builds that project's own ./vel with go build, and hands it the command line. Every command lives in the project's framework version, so updating vel never changes how a project behaves. If the build fails, vel runs the last good ./vel and says so. Without the installer, ./vel <command> or go run . <command> work the same.

When you run velocity new, it:

  1. Scaffolds a new project
  2. Installs dependencies
  3. Runs migrations
  4. Builds the ./vel binary
  5. Starts development servers

Configuration

Set defaults for new projects:

velocity config set default.database postgres
velocity config set default.cache redis
velocity config set default.auth true

Configuration stored in ~/.vel/config.yaml.

Documentation

Full documentation at velocity.velocitykode.com/docs

License

MIT License - See LICENSE for details.

Documentation

Overview

Velocity installer - creates and manages Velocity projects

Directories

Path Synopsis
cmd
vel command
vel runs a command in the enclosing Velocity project: it builds the project's own CLI and hands the command line to it.
vel runs a command in the enclosing Velocity project: it builds the project's own CLI and hands the command line to it.
internal
launcher
Package launcher implements the global `vel` command.
Package launcher implements the global `vel` command.
tui
Package tui drives the interactive "velocity new" wizard using prism prompts.
Package tui drives the interactive "velocity new" wizard using prism prompts.
ui
Package ui holds installer-specific output helpers that have no SDK equivalent.
Package ui holds installer-specific output helpers that have no SDK equivalent.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL