Skip to content

Install

tonic is distributed as a CLI binary. The current project status is alpha, so prefer pinning versions in automation.

Terminal window
curl -fsSL https://tonic.fairlabs.dev/install.sh | sh

The installer verifies the release checksum and installs to ~/.local/bin. Pin a version or change the destination with environment variables:

Terminal window
curl -fsSL https://tonic.fairlabs.dev/install.sh | TONIC_VERSION=0.11.0 TONIC_INSTALL_DIR=./bin sh

Update a shell-installed binary with:

Terminal window
tonic update

The command reports when tonic is already current. Homebrew and Nix installations must be updated through their package manager.

Terminal window
brew tap fairlabs/tap https://forgejo.fairlabs.dev/fairlabs/homebrew-tap.git
brew install tonic
Terminal window
nix profile install git+https://forgejo.fairlabs.dev/fairlabs/tonic.git

Run without installing:

Terminal window
nix run git+https://forgejo.fairlabs.dev/fairlabs/tonic.git
Terminal window
tonic --version
tonic --help

The release build injects the current version. Local source builds may report dev (alpha).

Start with a local SQLite target so you can exercise the command surface without provisioning a remote database.

Terminal window
tonic connections add sqlite scratch --path ./scratch.db --local
tonic query ping --target scratch