Skip to main content

CLI Reference

Complete reference for every lium command, grouped by what you're trying to do. Each command has its own page with arguments, options, and runnable examples.

If you're new, start at the Quickstart and circle back here once you know which command you need.

Global Options​

Available on every command:

FlagEffect
--helpShow help for the command
--versionPrint CLI version
--config PATHUse an alternate config file
--debugVerbose / debug output

Pods​

Day-to-day pod lifecycle, access, and observation.

CommandPurpose
lium lsList available GPU nodes
lium upCreate a new pod
lium psList your active pods
lium sshOpen an SSH session
lium execRun a command on a pod
lium scpCopy files to/from a pod
lium rsyncSync directories to a pod
lium rmStop / remove pods
lium rebootReboot one or more pods
lium logsStream or tail pod logs
lium updateUpdate a running pod (e.g. install Jupyter)
lium port-forwardForward a pod port to your local machine
lium schedulesList / cancel auto-termination schedules

Storage​

Persistent volumes and pod backups.

CommandPurpose
lium volumesManage persistent volumes (list / new / rm)
lium bkPod backups: create, schedule, restore, list, delete

Templates​

CommandPurpose
lium templatesList, search, create, update, delete templates

Account & Config​

CommandPurpose
lium initFirst-time setup (API key + SSH key)
lium configRead / write CLI configuration
lium themeChange CLI color theme
lium fundFund your account from a Bittensor wallet
lium ssh-keysList / sync SSH keys on your account

Providers​

Commands for users running provider nodes on Subnet 51. See also the Providers section for setup and architecture.

CommandPurpose
lium mineBootstrap a provider node end-to-end
lium gpu-splittingPrepare Docker storage for multi-tenant rental
lium providerFull provider-portal automation: portal session, node lifecycle, central-miner-server config, sync, billing, and machine-request queries

Patterns That Work Across Commands​

Pod selectors​

Most pod-targeting commands (ssh, exec, scp, rsync, rm, reboot) accept any of:

  • A pod name: lium ssh my-pod
  • An index from lium ps: lium ssh 1
  • A comma-separated list: lium exec 1,2,3 "uptime"
  • The keyword all: lium scp all ./config.json

Output formats​

Listing commands accept --format:

lium ls --format json | jq '.[] | .gpu_type'
lium ps --format csv > pods.csv

Environment variables​

Override config without editing files:

LIUM_API_KEY=xyz lium ls
LIUM_SSH_KEY=/tmp/key lium ssh my-pod

For provider commands, LIUM_PROVIDER_COLDKEY and LIUM_PROVIDER_HOTKEY set the wallet identity (or persist them via lium config set provider.coldkey ... / lium config set provider.hotkey ...). LIUM_PORTAL_URL overrides the portal base URL, and LIUM_PROVIDER_ACK=1 auto-confirms the persona gate on spend-affecting lium provider … subcommands. See lium provider for the full surface.

Exit codes​

CodeMeaning
0Success
1General error
2Configuration error
3API error
4SSH error
5Pod not found
6Permission denied

See also​

  • Quick Start — first pod in 5 minutes
  • Installation — install and authenticate
  • SDK — Python client used under the hood
  • OpenAPI — REST endpoints the CLI calls