# CLI Reference (/cli-reference)



Use command help for the flags supported by the installed version:

```bash
mlab --help
mlab <command> --help
mlab <command> <subcommand> --help
```

## Markets [#markets]

```bash
mlab markets [--provider mmt] --exchange <exchange> [--hip <1|4>] [--refresh] [--symbol <symbol>]
```

Hyperliquid requires `--hip 1` for Spot discovery or `--hip 4` for outcome discovery.
HIP-4 listings also accept `--search`, `--deployer`, and `--testnet`. BULK listings accept `--testnet` for the public testnet catalog.

See [Markets](/market-data/markets).

## Source [#source]

```bash
mlab source <source> [flags]
```

Sources: `orderbook`, `trades`, `candles`, `volumes`, `vd`, `oi`, `funding`, `stats`.

See [Sources](/market-data/sources).

## Study [#study]

```bash
mlab study <study> [flags]
```

Studies: `spread`, `depth`, `imbalance`, `slippage`, `vamp`, `cvd`.

See [Studies](/market-data/studies).

## Execution [#execution]

```bash
mlab trade long <symbol> [flags]
mlab trade short <symbol> [flags]
mlab trade buy <pair> [flags]
mlab trade sell <pair> [flags]

mlab positions [flags]
mlab orders [flags]
mlab fills [flags]
mlab cancel <symbol> <order-id> [flags]
mlab close <symbol> [flags]
```

See [Execution](/execution).

## Outcome Actions [#outcome-actions]

```bash
mlab outcome split <outcome-id> --amount <amount>
mlab outcome merge <outcome-id> [--amount <amount>]
mlab outcome merge-question <question-id> [--amount <amount>]
mlab outcome negate <question-id> <outcome-id> --amount <amount>
```

See [Hyperliquid outcomes](/providers-execution/hyperliquid#outcome-markets).

## Strategy [#strategy]

```bash
mlab strategy run <twap|vwap|oiwap> <symbol> [flags]
mlab strategy jobs
mlab strategy status <job-id>
mlab strategy logs <job-id> --follow
mlab strategy stop <job-id>
```

See [Strategies](/strategies).

## Bot [#bot]

```bash
mlab bot run <mid-price|volume-mid|grid> <symbol> [flags]
mlab bot jobs
mlab bot status <job-id>
mlab bot logs <job-id> --follow
mlab bot stop <job-id>
```

See [Bots](/bots).

## Notebook [#notebook]

```bash
mlab notebook [--python <path>] [--no-browser]
```

Starts a local JupyterLab research session with Market Lab history and study helpers. See [Jupyter Notebook](/scripting-v2/notebook).

## Script [#script]

```bash
mlab script backtest <path> [flags]
mlab script run <path> [flags]
mlab script jobs
mlab script status <job-id>
mlab script logs <job-id> --follow
mlab script stop <job-id>
mlab script runs list
mlab script runs show <run-id>
```

See [Python Scripting V2](/scripting-v2) or [JavaScript Scripting](/scripting).

## Auth [#auth]

```bash
mlab auth set <provider>
mlab auth status
mlab auth remove <provider>
```

See [Authentication](/authentication).

## Configuration [#configuration]

```bash
mlab <command> --config ./marketlab.toml
```

See [Configuration](/configuration).

## Daemon [#daemon]

```bash
mlab daemon backend [native|docker]
mlab daemon start
mlab daemon status
mlab daemon events
mlab daemon stop
```

See [Daemon](/daemon).

## Transport [#transport]

```bash
mlab remote use <user@host|local>
mlab remote list
mlab remote status
mlab remote test <user@host>
mlab remote remove <user@host>
mlab --remote <user@host|local> <command>
```

See [Transport](/transport).

## Health and Status [#health-and-status]

```bash
mlab health [--provider mmt] --exchange <exchange>
mlab status
```

## Upgrade [#upgrade]

```bash
mlab upgrade --check
mlab upgrade
```

See [Installation](/installation#upgrade).

## Common Output Flags [#common-output-flags]

```bash
--output terminal
--output json
--output jsonl
--yes
```

See [JSON Output](/json-output).
