Installing CQLAI
CQLAI is distributed as a single static binary with no dependencies. Choose the installation method that works best for the target environment.
Quick Install
Section titled “Quick Install”Using Go
Section titled “Using Go”With Go 1.21+ installed:
go install github.com/axonops/cqlai/cmd/cqlai@latestPre-compiled Binaries
Section titled “Pre-compiled Binaries”Download the appropriate binary for your platform from GitHub Releases.
Linux (x86-64):
curl -L https://github.com/axonops/cqlai/releases/latest/download/cqlai-linux-amd64 -o cqlaichmod +x cqlaisudo mv cqlai /usr/local/bin/Linux (ARM64):
curl -L https://github.com/axonops/cqlai/releases/latest/download/cqlai-linux-arm64 -o cqlaichmod +x cqlaisudo mv cqlai /usr/local/bin/macOS (Intel):
curl -L https://github.com/axonops/cqlai/releases/latest/download/cqlai-darwin-amd64 -o cqlaichmod +x cqlaisudo mv cqlai /usr/local/bin/macOS (Apple Silicon):
curl -L https://github.com/axonops/cqlai/releases/latest/download/cqlai-darwin-arm64 -o cqlaichmod +x cqlaisudo mv cqlai /usr/local/bin/Windows:
Download cqlai-windows-amd64.exe from the releases page and add it to your PATH.
Package Managers
Section titled “Package Managers”APT (Debian/Ubuntu)
Section titled “APT (Debian/Ubuntu)”# Add AxonOps repositorycurl -fsSL https://packages.axonops.com/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/axonops-archive-keyring.gpgecho "deb [signed-by=/usr/share/keyrings/axonops-archive-keyring.gpg] https://packages.axonops.com/apt stable main" | sudo tee /etc/apt/sources.list.d/axonops.list
# Install CQLAIsudo apt updatesudo apt install cqlaiYUM (RHEL/CentOS/Fedora)
Section titled “YUM (RHEL/CentOS/Fedora)”# Add AxonOps repositorysudo tee /etc/yum.repos.d/axonops.repo << 'EOF'[axonops]name=AxonOps Repositorybaseurl=https://packages.axonops.com/yumenabled=1gpgcheck=1gpgkey=https://packages.axonops.com/gpg.keyEOF
# Install CQLAIsudo yum install cqlaiHomebrew (macOS)
Section titled “Homebrew (macOS)”brew tap axonops/tapbrew install cqlaiDocker
Section titled “Docker”Using Pre-built Image
Section titled “Using Pre-built Image”# Pull the imagedocker pull axonops/cqlai:latest
# Run interactivelydocker run -it --rm axonops/cqlai --host your-cassandra-hostWith Docker Compose
Section titled “With Docker Compose”Add CQLAI to a Cassandra development environment:
version: '3.8'services: cassandra: image: cassandra:5.0 ports: - "9042:9042"
cqlai: image: axonops/cqlai:latest depends_on: - cassandra command: ["--host", "cassandra"] stdin_open: true tty: trueBuild from Source (Docker)
Section titled “Build from Source (Docker)”git clone https://github.com/axonops/cqlai.gitcd cqlaidocker build -t cqlai .docker run -it --rm cqlai --host your-cassandra-hostBuild from Source
Section titled “Build from Source”Prerequisites
Section titled “Prerequisites”- Go 1.21 or later
- Git
Build Steps
Section titled “Build Steps”# Clone the repositorygit clone https://github.com/axonops/cqlai.gitcd cqlai
# Install dependenciesgo mod download
# Buildgo build -o cqlai cmd/cqlai/main.go
# Or use Makemake build
# Install to $GOPATH/bingo install cmd/cqlai/main.goDevelopment Build
Section titled “Development Build”For development with race detection:
make build-devVerify Installation
Section titled “Verify Installation”# Check versioncqlai --version
# Show helpcqlai --help
# Test connection (requires running Cassandra)cqlai --host 127.0.0.1Expected output:
CQLAI v1.x.xModern CQL Shell for Apache CassandraSupported Platforms
Section titled “Supported Platforms”| Platform | Architecture | Status |
|---|---|---|
| Linux | x86-64 (amd64) | Supported |
| Linux | ARM64 (aarch64) | Supported |
| macOS | x86-64 (Intel) | Supported |
| macOS | ARM64 (Apple Silicon) | Supported |
| Windows | x86-64 | Supported |
Upgrading
Section titled “Upgrading”Using Go
Section titled “Using Go”go install github.com/axonops/cqlai/cmd/cqlai@latestUsing Package Manager
Section titled “Using Package Manager”# APTsudo apt update && sudo apt upgrade cqlai
# YUMsudo yum update cqlai
# Homebrewbrew upgrade cqlaiManual Upgrade
Section titled “Manual Upgrade”Download the latest binary from releases and replace the existing binary.
Uninstalling
Section titled “Uninstalling”Go Installation
Section titled “Go Installation”rm $(which cqlai)Package Manager
Section titled “Package Manager”# APTsudo apt remove cqlai
# YUMsudo yum remove cqlai
# Homebrewbrew uninstall cqlaiConfiguration Files
Section titled “Configuration Files”CQLAI stores configuration in:
~/.cqlai.json- Main configuration~/.cqlai/history- Command history~/.cqlai/ai_history- AI command history
To fully remove:
rm -rf ~/.cqlai ~/.cqlai.jsonNext Steps
Section titled “Next Steps”After installation:
- Quick Start Guide - Connect to Cassandra
- Configuration - Set up connections and AI
- Commands Reference - Learn available commands