Lium CLI
Command-line interface for managing GPU pods on the Lium platform.
Lium
Installation
pip install lium.io
Quick Start
lium init
lium ls
lium up 1
lium up --gpu A100
lium ps
lium scp 1 ./my_script.py
lium ssh <pod-name>
lium rm <pod-name>
Documentation
The SDK and decorator API ship with Sphinx-powered docs that are ready for Read the
Docs. Build them locally with:
pip install -e .[docs]
sphinx-build -b html docs docs/_build/html
The generated HTML lives in docs/_build/html. Publishing to Read the Docs only
requires connecting this repository; the .readthedocs.yaml file points RTD at
docs/conf.py.

Commands
Core Commands
lium init - Initialize configuration (API key, SSH keys)
lium ls [GPU_TYPE] - List available executors
lium up [EXECUTOR_ID] - Create a pod (use executor ID or filters like --gpu, --count, --country)
lium ps - List active pods
lium ssh <POD> - SSH into a pod
lium exec <POD> <COMMAND> - Execute command on pod
lium scp <POD> <LOCAL_FILE> [REMOTE_PATH] - Copy files to pods (add -d to download from pods)
lium rsync <POD> <LOCAL_DIR> [REMOTE_PATH] - Sync directories to pods
lium rm <POD> - Remove/stop a pod
lium reboot <POD> - Reboot a pod
lium update <POD> - Install Jupyter on a pod
lium templates [SEARCH] - List available Docker templates
lium fund - Fund account with TAO from Bittensor wallet
Volume Commands
lium volumes list - List all volumes
lium volumes new <NAME> - Create a new volume
lium volumes rm <VOLUME> - Remove a volume
Backup Commands
lium bk show <POD> - Show backup configuration for a pod
lium bk set <POD> <PATH> - Configure automatic backups
lium bk logs <POD> - View backup logs
lium bk now <POD> - Trigger immediate backup
lium bk restore <POD> <BACKUP_ID> - Restore from backup
lium bk rm <POD> - Remove backup configuration
Schedule Commands
lium schedules list - List scheduled terminations
lium schedules rm <POD> - Cancel scheduled termination
Configuration Commands
lium config show - Show all configuration
lium config get <KEY> - Get configuration value
lium config set <KEY> <VALUE> - Set configuration value
lium config unset <KEY> - Remove configuration key
lium config edit - Edit configuration file
lium config path - Show configuration file path
lium config reset - Reset all configuration
Other Commands
lium theme [THEME] - Get or set UI theme (light/dark/auto)
lium mine - Mining-related commands
Command Examples
lium ls H100
lium ls A100
lium up 1 --name my-pod --yes
lium up --gpu A100 --count 8 --name my-pod --yes
lium up --gpu H200 --country US
lium up 1 --template_id <TEMPLATE_ID> --yes
lium up 1 --volume id:<VOLUME_HUID>
lium up 1 --volume new:name=mydata,desc="My dataset"
lium up 1 --ttl 6h
lium up 1 --until "today 23:00"
lium up 1 --jupyter --yes
lium exec my-pod "nvidia-smi"
lium exec my-pod "python train.py"
lium scp my-pod ./script.py
lium scp 1 ./data.csv /root/data/
lium scp all ./config.json
lium scp 1,2,3 ./model.py /root/models/
lium scp my-pod /root/output.log ./downloads -d
lium reboot my-pod
lium reboot 1,2 --yes
lium reboot all
lium reboot my-pod --volume-id <VOLUME_ID>
lium rsync my-pod ./project
lium rsync 1 ./data /root/datasets/
lium rsync all ./models
lium rsync 1,2,3 ./code /root/workspace/
lium rm my-pod-1 my-pod-2
lium rm all
lium update my-pod
lium volumes list
lium volumes new mydata --description "My dataset"
lium volumes rm <VOLUME_HUID>
lium bk show my-pod
lium bk set my-pod /root/data --frequency 24 --retention 7
lium bk logs my-pod
lium bk now my-pod --name manual-backup
lium bk restore my-pod <BACKUP_ID> /root/restore
lium bk rm my-pod
lium schedules list
lium schedules rm my-pod
lium config show
lium config get api.api_key
lium config set ssh.key_path /path/to/key
lium config edit
lium theme
lium theme dark
lium theme auto
lium fund
lium fund -w default -a 1.5
lium fund -w mywal -a 0.5 -y
Features
- Pareto Optimization:
ls command shows optimal executors with ★ indicator
- Flexible Pod Creation: Use executor index or auto-select with filters (GPU type, count, country)
- Index Selection: Use numbers from
ls output in commands
- Full-Width Tables: Clean, readable terminal output
- Cost Tracking: See spending and hourly rates in
ps
- Interactive Setup:
init command for easy onboarding
- Volume Management: Create and attach persistent storage volumes
- Backup & Restore: Automated backups with configurable frequency and retention
- Auto-Termination: Schedule pods to terminate after duration or at specific time
- Jupyter Integration: One-command Jupyter installation on pods
- Theme Support: Light, dark, or auto-detect themes for better visibility
Configuration
Configuration is stored in ~/.lium/config.ini:
[api]
api_key = your-api-key-here
[ssh]
key_path = /home/user/.ssh/id_ed25519
You can also use environment variables:
export LIUM_API_KEY=your-api-key-here
Requirements
Development
git clone https://github.com/Datura-ai/lium-cli.git
cd lium-cli
pip install -e .
License
MIT License - see LICENSE file for details.