Installation
The Algebras CLI can be installed using pip, pipx, or other Python package managers. Choose the method that works best for your environment.
Prerequisites
Section titled “Prerequisites”- Python 3.12 or higher
- pip (Python package installer)
Installation Methods
Section titled “Installation Methods”Method 1: Using pip (Recommended)
Section titled “Method 1: Using pip (Recommended)”pip install git+https://github.com/algebras-ai/algebras-cli.gitMethod 2: Using pipx (Isolated Environment)
Section titled “Method 2: Using pipx (Isolated Environment)”If you prefer to install CLI tools in isolated environments:
pipx install algebras-cliMethod 3: Using pip with —user flag
Section titled “Method 3: Using pip with —user flag”For user-only installation (no admin privileges required):
pip install --user algebras-cliMethod 4: From Source (Development)
Section titled “Method 4: From Source (Development)”If you want to install the latest development version:
git clone https://github.com/algebras-ai/algebras-cli.gitcd algebras-clipip install -e .Verify Installation
Section titled “Verify Installation”After installation, verify that the CLI is working:
algebras --versionYou should see output like:
algebras-cli version 1.0.0Getting Your API Key
Section titled “Getting Your API Key”Before you can use the Algebras CLI, you’ll need an API key to authenticate with the Algebras platform.
Step 1: Sign Up or Log In
Section titled “Step 1: Sign Up or Log In”- Visit the Algebras platform
- Sign up for a new account or log in to your existing account
Step 2: Create an API Key
Section titled “Step 2: Create an API Key”- Navigate to the API Keys page
- Click “Create API Key” or “New API Key”
- Give your API key a descriptive name (e.g., “CLI Development Key”)
- 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.
Step 3: Set Your API Key
Section titled “Step 3: Set Your API Key”Set the API key as an environment variable in your terminal:
Linux/macOS:
export ALGEBRAS_API_KEY=your_api_key_hereWindows (Command Prompt):
set ALGEBRAS_API_KEY=your_api_key_hereWindows (PowerShell):
$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):
echo 'export ALGEBRAS_API_KEY=your_api_key_here' >> ~/.bashrcsource ~/.bashrcLinux/macOS (zsh):
echo 'export ALGEBRAS_API_KEY=your_api_key_here' >> ~/.zshrcsource ~/.zshrcWindows (Permanent): Add it as a system environment variable through System Properties.
Platform-Specific Instructions
Section titled “Platform-Specific Instructions”Windows
Section titled “Windows”- Open Command Prompt or PowerShell
- Run:
pip install git+https://github.com/algebras-ai/algebras-cli.git - Verify:
algebras --version
- Open Terminal
- Run:
pip install git+https://github.com/algebras-ai/algebras-cli.git - Verify:
algebras --version
Linux (Ubuntu/Debian)
Section titled “Linux (Ubuntu/Debian)”- Open Terminal
- Run:
pip install git+https://github.com/algebras-ai/algebras-cli.git - Verify:
algebras --version
Troubleshooting Installation
Section titled “Troubleshooting Installation””command not found: algebras”
Section titled “”command not found: algebras””Cause: The CLI wasn’t added to your PATH.
Solutions:
- Restart your terminal after installation
- Add pip user bin to PATH:
Terminal window echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrcsource ~/.bashrc - Use full path:
Terminal window python -m algebras --version
Permission Denied Errors
Section titled “Permission Denied Errors”Cause: Insufficient permissions to install packages globally.
Solutions:
- Use —user flag:
Terminal window pip install --user algebras-cli - Use virtual environment:
Terminal window python -m venv algebras-envsource algebras-env/bin/activate # On Windows: algebras-env\Scripts\activatepip install git+https://github.com/algebras-ai/algebras-cli.git
Python Version Issues
Section titled “Python Version Issues”Cause: Using an outdated Python version.
Solutions:
- Check Python version:
Terminal window python --version - Upgrade Python to version 3.8 or higher
- Use specific Python version:
Terminal window python -m pip install git+https://github.com/algebras-ai/algebras-cli.git
Next Steps
Section titled “Next Steps”Once you have the CLI installed:
- Configure your project - Set up your
.algebras.config - Learn the commands - Understand available CLI commands
- Try advanced features - Explore glossaries, batch processing, and more
Uninstalling
Section titled “Uninstalling”To remove the Algebras CLI:
pip uninstall algebras-cliOr if installed with pipx:
pipx uninstall algebras-cli