Installation
The Trix CLI is available for macOS, Linux, and Windows. Choose your platform below:
macOS
# Using Homebrew (current)
brew install devghost/taps/trix
# Planned rename (ADR-144): brew install trixdb/taps/trix
# Or download directly
curl -sSL https://install.trixdb.com | sh
# Verify installation
trix versionLinux
# Download and install (recommended)
curl -sSL https://install.trixdb.com | sh
# Or download the binary manually
wget https://github.com/trix/trix-cli/releases/latest/download/trix-linux-amd64
chmod +x trix-linux-amd64
sudo mv trix-linux-amd64 /usr/local/bin/trix
# Verify installation
trix versionWindows
# Using Scoop (current)
scoop bucket add trix https://github.com/devghost/scoop-bucket
scoop install trix
# Planned rename (ADR-144): scoop bucket add trix https://github.com/trixdb/scoop-bucket
# Verify installation
trix versionThe installation script automatically adds Trix to your PATH. You may need to restart your terminal for changes to take effect.
First Run Setup
After installation, run the interactive setup wizard:
# Interactive setup wizard
trix init
# The wizard will:
# 1. Check for updates
# 2. Prompt for authentication
# 3. Configure default settings
# 4. Set up shell completion (optional)
# 5. Test the connectionThe init command guides you through the entire setup process. Highly
recommended for first-time users!
Shell Completion
Enable tab completion for your shell to make the CLI easier to use:
# Add to ~/.bashrc
source <(trix completion bash)
# Or install permanently
trix completion bash > /etc/bash_completion.d/trix# Add to ~/.zshrc
source <(trix completion zsh)
# Or add to fpath
trix completion zsh > "${fpath[1]}/_trix"# Add to Fish completions
trix completion fish > ~/.config/fish/completions/trix.fish# Add to $PROFILE
trix completion powershell | Out-String | Invoke-ExpressionShell completion provides dynamic suggestions for commands, spaces, memory IDs, and tags. Restart your shell after enabling completion.
Updating the CLI
# Check for updates
trix version --check
# Update to latest version
trix update
# View changelog
trix open changelogUninstalling
# Uninstall CLI (keeps config and data)
trix uninstall
# Or remove everything including config
trix uninstall --purge
# Manual removal
# macOS/Linux: rm /usr/local/bin/trix
# Windows: scoop uninstall trixUninstalling the CLI does not delete your memories or account. It only removes the CLI tool itself and optionally your local configuration.
Troubleshooting
Permission denied
If you get permission errors during installation:
# Linux/macOS: Use sudo for system-wide install
sudo curl -sSL https://install.trixdb.com | sh
# Or install to user directory
curl -sSL https://install.trixdb.com | sh -s -- --prefix ~/.localCommand not found
If trix is not found after installation:
# Check if trix is in PATH
which trix
# Add to PATH (Linux/macOS)
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# Windows: Add to PATH via System PropertiesDiagnostic tool
# Run diagnostics
trix doctor
# Shows:
# - CLI version
# - API connectivity
# - Authentication status
# - Configuration issues
# - Network connectivityNext Steps
- Authentication - Login and connect to your account
- Configuration - Customize CLI settings and defaults
- Memory Commands - Start storing and retrieving memories
- CLI Overview - Return to overview