Skip to content

Installation

The Algebras CLI can be installed using pip, pipx, or other Python package managers. Choose the method that works best for your environment.

  • Python 3.12 or higher
  • pip (Python package installer)
Terminal window
pip install git+https://github.com/algebras-ai/algebras-cli.git

Method 2: Using pipx (Isolated Environment)

Section titled “Method 2: Using pipx (Isolated Environment)”

If you prefer to install CLI tools in isolated environments:

Terminal window
pipx install algebras-cli

For user-only installation (no admin privileges required):

Terminal window
pip install --user algebras-cli

If you want to install the latest development version:

Terminal window
git clone https://github.com/algebras-ai/algebras-cli.git
cd algebras-cli
pip install -e .

After installation, verify that the CLI is working:

Terminal window
algebras --version

You should see output like:

algebras-cli version 1.0.0

Before you can use the Algebras CLI, you’ll need an API key to authenticate with the Algebras platform.

  1. Visit the Algebras platform
  2. Sign up for a new account or log in to your existing account
  1. Navigate to the API Keys page
  2. Click “Create API Key” or “New API Key”
  3. Give your API key a descriptive name (e.g., “CLI Development Key”)
  4. Copy your API key immediately - you won’t be able to see it again!

Keep your API key secure! Never commit it to version control or share it publicly. Treat it like a password.

Set the API key as an environment variable in your terminal:

Linux/macOS:

Terminal window
export ALGEBRAS_API_KEY=your_api_key_here

Windows (Command Prompt):

Terminal window
set ALGEBRAS_API_KEY=your_api_key_here

Windows (PowerShell):

Terminal window
$env:ALGEBRAS_API_KEY="your_api_key_here"

Step 4: Make Your API Key Persistent (Optional)

Section titled “Step 4: Make Your API Key Persistent (Optional)”

To avoid setting the API key every time you open a new terminal:

Linux/macOS (bash):

Terminal window
echo 'export ALGEBRAS_API_KEY=your_api_key_here' >> ~/.bashrc
source ~/.bashrc

Linux/macOS (zsh):

Terminal window
echo 'export ALGEBRAS_API_KEY=your_api_key_here' >> ~/.zshrc
source ~/.zshrc

Windows (Permanent): Add it as a system environment variable through System Properties.

  1. Open Command Prompt or PowerShell
  2. Run: pip install git+https://github.com/algebras-ai/algebras-cli.git
  3. Verify: algebras --version
  1. Open Terminal
  2. Run: pip install git+https://github.com/algebras-ai/algebras-cli.git
  3. Verify: algebras --version
  1. Open Terminal
  2. Run: pip install git+https://github.com/algebras-ai/algebras-cli.git
  3. Verify: algebras --version

Cause: The CLI wasn’t added to your PATH.

Solutions:

  1. Restart your terminal after installation
  2. Add pip user bin to PATH:
    Terminal window
    echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
    source ~/.bashrc
  3. Use full path:
    Terminal window
    python -m algebras --version

Cause: Insufficient permissions to install packages globally.

Solutions:

  1. Use —user flag:
    Terminal window
    pip install --user algebras-cli
  2. Use virtual environment:
    Terminal window
    python -m venv algebras-env
    source algebras-env/bin/activate # On Windows: algebras-env\Scripts\activate
    pip install git+https://github.com/algebras-ai/algebras-cli.git

Cause: Using an outdated Python version.

Solutions:

  1. Check Python version:
    Terminal window
    python --version
  2. Upgrade Python to version 3.8 or higher
  3. Use specific Python version:
    Terminal window
    python -m pip install git+https://github.com/algebras-ai/algebras-cli.git

Once you have the CLI installed:

  1. Configure your project - Set up your .algebras.config
  2. Learn the commands - Understand available CLI commands
  3. Try advanced features - Explore glossaries, batch processing, and more

To remove the Algebras CLI:

Terminal window
pip uninstall algebras-cli

Or if installed with pipx:

Terminal window
pipx uninstall algebras-cli