Installation
Get started with toni in just a few steps. No complex dependencies, no Docker containers—just Go.Prerequisites
- Go 1.21 or later
- A terminal that supports ANSI colors (most modern terminals work)
Installation Methods
Install from Source
The recommended way to install toni is using This will install the
go install:toni binary to your $GOPATH/bin directory (typically ~/go/bin).Clone and Build Manually (Alternative)
If you prefer to build from source:Then move the binary to a directory in your
PATH:Command-Line Flags
Fromcmd/root.go:20-31:
Available Flags
| Flag | Description | Default |
|---|---|---|
--version | Show version and exit | - |
--db | Path to SQLite database file | ~/.toni/toni.db |
--yelp-key | Yelp Fusion API key | env: YELP_API_KEY |
Database Location
By default, toni stores your data in~/.toni/toni.db. The directory is created automatically on first run.
Custom Database Path
Multiple Databases
You can maintain separate databases for different purposes:Backing Up Your Data
Since toni uses a single SQLite file, backups are simple:Environment Variables
toni supports.env and .env.local files in your current directory:
.env
Environment variables are loaded in this order of precedence:
- Command-line flags (
--yelp-key) - Environment variables (
YELP_API_KEY) .env.localfile.envfile- Stored API key in
~/.toni/yelp_api_key
Verify Installation
Check that toni is installed correctly:Next Steps
Quickstart Guide
Launch toni and log your first visit