Installation
This guide covers the installation and initial setup of the Lium CLI.
Prerequisites​
System Requirements​
- Python: Version 3.9 or higher
- Operating System: Linux, macOS, or Windows with WSL
- Network: Internet connection for API access
Dependencies​
- lium-sdk >= 0.2.0 (automatically installed)
- SSH client for pod access
Installation Methods​
Using pip (Recommended)​
Install the latest version from PyPI:
pip install lium-cli
To upgrade to the latest version:
pip install --upgrade lium-cli
From Source​
For development or to get the latest features:
# Clone the repository
git clone https://github.com/Datura-ai/lium-cli.git
cd lium-cli
# Install in development mode
pip install -e .
Using Virtual Environment​
It's recommended to use a virtual environment to avoid conflicts:
# Create virtual environment
python -m venv lium-env
# Activate it
# On Linux/macOS:
source lium-env/bin/activate
# On Windows:
lium-env\Scripts\activate
# Install lium-cli
pip install lium-cli
Initial Configuration​
Running the Setup Wizard​
After installation, run the initialization command:
lium init
This interactive wizard will help you configure:
- API Key: Enter your Lium platform API key
- SSH Keys: Generate new keys or use existing ones
- Default Settings: Configure preferences
Manual Configuration​
You can also configure manually by editing ~/.lium/config.ini
:
[api]
api_key = your-api-key-here
[ssh]
key_path = /path/to/your/ssh/key
Environment Variables​
Alternatively, use environment variables:
export LIUM_API_KEY=your-api-key-here
export LIUM_SSH_KEY=/path/to/ssh/key
Verification​
Verify your installation:
# Check version
lium --version
# Test configuration
lium config show
# List available executors
lium ls
Getting Your API Key​
- Register at lium.io
- Navigate to your account settings
- Generate an API key in the API section
- Copy the key and use it during
lium init
SSH Key Setup​
Generating New SSH Keys​
If you don't have SSH keys, the CLI can generate them:
lium init
# Choose "Generate new SSH key pair" when prompted
Using Existing Keys​
To use existing SSH keys:
- Locate your key pair (typically in
~/.ssh/
) - During
lium init
, provide the path to your private key - The CLI will automatically upload the public key to Lium
Key Permissions​
Ensure proper permissions for your SSH keys:
chmod 600 ~/.ssh/id_ed25519
chmod 644 ~/.ssh/id_ed25519.pub
Next Steps​
- Quick Start Guide - Start using the CLI
- Command Reference - Learn all available commands