Installation
ChameleonDB CLI is available for Linux, macOS, and Windows. Choose your platform below.Prerequisites
Before installing ChameleonDB, ensure you have:- Go 1.21+ (for using ChameleonDB in your applications)
- PostgreSQL 14+ (as the backend database)
- Rust 1.75+ (only if building from source)
Quick Install
- Linux / macOS
- Windows
Manual Installation
Linux (Manual)
Linux (Manual)
Build from Source
For advanced users who want to build ChameleonDB from source:1
Install Prerequisites
You’ll need:
- Rust 1.75+: https://rustup.rs
- Go 1.21+: https://golang.org/dl
- Git: https://git-scm.com
- Make: Usually pre-installed on Linux/macOS
2
Clone Repository
3
Build Rust Core
libchameleon.so (Linux) or libchameleon.dylib (macOS).4
Install Shared Library
5
Build Go CLI
./bin/chameleon.6
Install CLI
7
Verify Installation
Using ChameleonDB as a Go SDK
If you want to use ChameleonDB in your Go application:Install the Package
Requirements
The Go package links tolibchameleon via cgo:
- Linux:
libchameleon.somust be in/usr/local/lib(or setCGO_LDFLAGS) - macOS:
libchameleon.dylibmust be in/usr/local/lib - Windows:
chameleon.dllmust be in the same directory as your.exe - Header:
chameleon.hshould be in/usr/local/include
Build from Monorepo
If building from the ChameleonDB monorepo:Custom Library Location
If you install the library in a non-standard location:Platform-Specific Notes
Linux
Linux
macOS
macOS
Docker
Official Docker images are coming soon. For now, you can build your own:
Dockerfile
Troubleshooting
command not found: chameleon
command not found: chameleon
The binary is not in your PATH.Solution:
- Check installation location:
which chameleon - Add to PATH:
export PATH="$PATH:/usr/local/bin" - Reinstall with sudo:
sudo mv chameleon /usr/local/bin/
cannot execute binary file
cannot execute binary file
You downloaded the wrong architecture.Solution:
- Check your architecture:
uname -m - Download the correct binary (amd64 or arm64)
Windows: The system cannot find the file specified
Windows: The system cannot find the file specified
chameleon.dll is not in the same directory as chameleon.exe.Solution:- Keep both files together
- Or add the DLL directory to your PATH
Next Steps
Quick Start
Get started with ChameleonDB in 5 minutes
CLI Reference
Learn all available commands
Getting Help
If you encounter installation issues:- GitHub Issues: Report a bug
- Discord: Join our community
- Documentation: Browse all docs