---
sidebar_position: 60
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lium.io/llms.txt
> Use this file to discover all available pages before exploring further.

# `lium mine`

Bootstrap a Lium provider node end-to-end: install prereqs, clone `compute-subnet`, set up the executor environment, and bring it online.

```bash
lium mine [OPTIONS]
```

This is the same workflow that `https://lium.io/mine.sh` uses under the hood. Run it directly if you've already installed the CLI.

## Options

| Flag | Effect |
|------|--------|
| `--hotkey, -k SS58` | Miner hotkey SS58 address |
| `--dir, -d PATH` | Target directory (default: `compute-subnet`) |
| `--branch, -b NAME` | Branch to clone (default: `main`) |
| `--auto, -a` | Non-interactive — auto-detect GPU/IP and use defaults |
| `--verbose, -v` | Show the plan banner before executing |

## Examples

```bash
# One-shot installer (this is what mine.sh runs)
curl -fsSL https://lium.io/mine.sh | bash -s -- -k <your_provider_hotkey_ss58>

# Direct CLI invocation
lium mine -k <your_provider_hotkey_ss58>
lium mine -k <hotkey> --auto                  # No prompts
lium mine -k <hotkey> -b staging              # Use the staging branch
lium mine -k <hotkey> -d /opt/compute-subnet  # Custom install path
```

## See also

- [Provider node quickstart](/providers/nodes/quickstart) — full setup guide
- [`lium gpu-splitting`](./gpu-splitting.md) — enable multi-tenant rental on the same node
- [`lium provider`](./provider.md) — provider portal authentication and status
