# Terminal command — CLI

Since **v1.0.0** there is a terminal command that works **from anywhere**. You don't need to know where the source
or `setup.sh` lives. You only need `setup.sh` for the **first installation**.

```bash
onionpod open            # open or unlock the box (like a double-click)   — also: onionpod start
onionpod lock            # close the window, the box keeps running (locked with a lock password)
onionpod stop            # quit the box completely (Tor + firewall too)
onionpod status          # running? locked? version, language, source   (-v: detailed)
onionpod check           # leak test (briefly starts the box if it is off)
onionpod update          # look for updates and install them
onionpod password        # set/change the lock password · --off · --reset
onionpod config -l       # settings
onionpod uninstall       # remove everything
onionpod help [command]  # help
```

The **Tab key** completes commands and settings: `onionpod up<Tab>` → `onionpod update`.

## Settings: `onionpod config`

```bash
onionpod config -l                      # show all
onionpod config --get lang              # read one value (short: onionpod config lang)
onionpod config --set lang en           # set
onionpod config --unset desktop-icon    # back to default
```

| Key | Values | What | Scope |
|---|---|---|---|
| `lang` | `de` · `en` | language for setup, starter and box | system (sudo) |
| `desktop-icon` | `on` · `off` | icon on the desktop | user |
| `tray` | `on` · `off` | 🧅 in the top bar | user |
| `session` | `on` · `off` | [Session messenger](session.md) in the box — switching rebuilds the box (on: one-time ~15–20 min; off: Session data is kept) | system (sudo) |
| `update.source` | path | where `onionpod update` gets the new version from | system (sudo) |
| `lock` | `on` · `off` | display only — change with `onionpod password` | — |

**Two places, on purpose:** anything security-related (box language, update source) is root-owned in
`/etc/onionpod/config`. No program running as your user can slip the box a different update source this way.
Pure convenience (desktop icon, top bar) lives in `~/.config/onionpod/`. **Passwords** can never be shown or set via
`config`.

## Where root is needed

`onionpod` runs as you. `update`, `uninstall`, `password` and system settings ask for sudo **themselves** — please
don't run `sudo onionpod …`. Box calls (`open`, `lock`, `stop`, `status`, `check`) use the same narrow sudo rule as
the starter, without a password prompt.
