Skip to content

Installation

Terminal window
curl -fsSL https://raw.githubusercontent.com/hlop3z/astroladb/main/install.sh | sh

If you have Go installed:

Terminal window
go install github.com/hlop3z/astroladb/cmd/alab@latest
Terminal window
alab --version

You should see output like:

alab version 0.x.x
RequirementDetails
OSLinux, macOS, Windows (WSL)
DatabasePostgreSQL 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.

If alab is not found after installation:

  1. Check if binary is in PATH:

    Terminal window
    which alab
  2. Add to PATH if needed:

    Terminal window
    export PATH=$PATH:/usr/local/bin
  3. For go install users: Ensure $GOPATH/bin is in your PATH:

    Terminal window
    export PATH=$PATH:$(go env GOPATH)/bin

If you get a permission error when running the install script:

Terminal window
# Run with sudo (Linux/macOS)
curl -fsSL https://raw.githubusercontent.com/hlop3z/astroladb/main/install.sh | sudo sh

If migrations fail to connect:

  1. Verify your database is running
  2. Check connection string in alab.yaml
  3. Test connection manually:
    Terminal window
    # PostgreSQL
    psql "postgres://user:pass@localhost:5432/mydb"
    # SQLite
    sqlite3 ./dev.db

After installation, proceed to Quick Start to initialize your first project.