Installation
Quick Install
Section titled “Quick Install”curl -fsSL https://raw.githubusercontent.com/hlop3z/astroladb/main/install.sh | shGo Install
Section titled “Go Install”If you have Go installed:
go install github.com/hlop3z/astroladb/cmd/alab@latestVerify Installation
Section titled “Verify Installation”alab --versionYou should see output like:
alab version 0.x.xSystem Requirements
Section titled “System Requirements”| Requirement | Details |
|---|---|
| OS | Linux, macOS, Windows (WSL) |
| Database | PostgreSQL 12+ or SQLite 3.35+ |
| Go (optional) | 1.21+ (only for go install method) |
The quick install script automatically detects your architecture and places the
binary in /usr/local/bin.
Troubleshooting
Section titled “Troubleshooting”Command Not Found
Section titled “Command Not Found”If alab is not found after installation:
-
Check if binary is in PATH:
Terminal window which alab -
Add to PATH if needed:
Terminal window export PATH=$PATH:/usr/local/bin -
For
go installusers: Ensure$GOPATH/binis in your PATH:Terminal window export PATH=$PATH:$(go env GOPATH)/bin
Permission Denied
Section titled “Permission Denied”If you get a permission error when running the install script:
# Run with sudo (Linux/macOS)curl -fsSL https://raw.githubusercontent.com/hlop3z/astroladb/main/install.sh | sudo shDatabase Connection Issues
Section titled “Database Connection Issues”If migrations fail to connect:
- Verify your database is running
- Check connection string in
alab.yaml - Test connection manually:
Terminal window # PostgreSQLpsql "postgres://user:pass@localhost:5432/mydb"# SQLitesqlite3 ./dev.db
Next Steps
Section titled “Next Steps”After installation, proceed to Quick Start to initialize your first project.