# sot

> Without a subcommand, sot opens the live dashboard. Subcommands open their own view, or print and exit when given flags or when not run in a terminal.

Web page: https://anistark.github.io/sot/commands/

## `sot --help`

```text
usage: sot [--help] [--version] [--log LOG] [--net NET] [--disk [DISK]]
           [--config-path] [--keys] [--theme THEME]
           {info,bench,disk,clean,ps,update,upgrade} ...

Command-line System Observation Tool ≈

commands: {info,bench,disk,clean,ps,update,upgrade}
    info                Print system information (the System view is key 4)
    bench               Disk benchmarking view; flags run it without the TUI
    disk                Disks view; --list prints a table instead
    clean               Clean caches, logs and temp files; --dry-run only
                        reports
    ps                  Processes view: processes, listening ports, dev
                        environments
    update              Move to the newest minor or patch release of this
                        major version
    upgrade             Move to the newest release, major versions included

options:
  --help, -H            Show this help message and exit.
  --version, -V         Display version information with styling
  --log, -L LOG         Debug log file path (enables debug logging)
  --net, -N NET         Network interface to display (default: auto-detect
                        best interface)
  --disk, -D [DISK]     Disk mountpoint to display (use without value for
                        interactive selection)
  --config-path         Print where sot reads its config file from
  --keys                List every key binding id, for the [keymap] config
                        table
  --theme, -T THEME     Color theme: classic, cyberpunk (default: $SOT_THEME,
                        config, or classic)
```

## Commands

| Command | Opens | Without the TUI |
| --- | --- | --- |
| `sot` | Overview (`1`) | |
| [`sot ps`](https://anistark.github.io/sot/commands/ps/index.html.md) | Processes (`2`) | |
| [`sot disk`](https://anistark.github.io/sot/commands/disk/index.html.md) | Disks (`3`) | `--list` prints a table |
| [`sot info`](https://anistark.github.io/sot/commands/info/index.html.md) | | Always prints; the System view is `4` |
| [`sot bench`](https://anistark.github.io/sot/commands/bench/index.html.md) | Bench (`5`) | `--disk` or `--output` run it without the TUI |
| [`sot clean`](https://anistark.github.io/sot/commands/clean/index.html.md) | Clean (`6`) | `--dry-run`, `--daemon` and `--scheduled` print |
| [`sot update`](https://anistark.github.io/sot/commands/update/index.html.md), `sot upgrade` | | Always prints |

Everything that opens a screen opens the same app, so the number keys move between views from any of them.

## Options

| Flag | What it does |
| --- | --- |
| `--theme`, `-T` | Colour theme: `classic` (follows your terminal) or `cyberpunk` (neon) |
| `--net`, `-N` | Network interface for the overview, e.g. `sot -N en0` (default: auto-detect) |
| `--disk`, `-D` | Volume for the overview, e.g. `sot -D /Volumes/External`; with no value, pick one in sot |
| `--log`, `-L` | Write a debug log to this file |
| `--keys` | List every key binding and its id, for the [`[keymap]`](https://anistark.github.io/sot/keys/index.html.md#remap-a-key) config table |
| `--config-path` | Show where the [config file](https://anistark.github.io/sot/configuration/index.html.md) lives, with a commented template |
| `--version`, `-V` | Show the version |
| `--help`, `-H` | Show help (`sot <command> -h` for a command's flags) |

## Theme

Switch theme while running with `Ctrl+P` → Theme; graphs and selections are kept and the choice is remembered. `SOT_THEME=cyberpunk` sets the default. Flags win over `SOT_THEME`, which wins over the config file.

```sh
SOT_THEME=cyberpunk sot
sot --theme classic
```

