---
title: CLI reference
description: Herdr commands for sessions, workspaces, tabs, panes, notifications, agents, waits, integrations, and status.
---
Herdr’s CLI talks to the running server over the same local socket API used by integrations and agents.
Most commands print JSON responses. Use them from scripts when you want deterministic automation.
## Launch and status
```bash
herdr # launch or attach to the default session
herdr --session work # launch or attach to a named session
herdr --remote workbox # attach through SSH, using local keybindings
herdr --remote workbox --remote-keybindings server
herdr --remote workbox --handoff
herdr --no-session # single-process escape hatch
herdr --default-config # print default config
herdr update # download and install from the configured channel
herdr update --handoff # opt into live handoff for supported running servers
herdr channel show # print stable or preview
herdr channel set preview # opt into preview builds
herdr channel set stable # return Linux/macOS direct installs to stable
herdr --version # print version
```
Status commands:
```bash
herdr status
herdr status server
herdr status client
```
## Server
```bash
herdr server
herdr server stop
herdr server reload-config
herdr server agent-manifests [--json]
herdr server update-agent-manifests [--json]
herdr server reload-agent-manifests
```
`herdr server` runs the headless server explicitly. Use it for supervised or service-style setups. `reload-config` applies reloadable settings without restarting panes. `agent-manifests` shows the active agent detection manifest sources, cached remote versions, and last remote update results. `update-agent-manifests` fetches remote manifest updates immediately, reloads them into the running server, and prints the updated manifest status; pass `--json` for the raw status response. `reload-agent-manifests` reloads agent detection manifests into the running server after local override edits.
## Notifications
```bash
herdr notification show
[--body TEXT] [--position top-left|top-right|bottom-left|bottom-right] [--sound none|done|request]
```
`notification show` uses the configured `[ui.toast]` delivery. `--position` only affects in-app Herdr toasts. `--sound` defaults to `none`; `done` and `request` play the existing finished and needs-attention sounds only when the notification is shown.
## Sessions
```bash
herdr session list [--json]
herdr session attach
herdr session stop [--json]
herdr session delete [--json]
```
Use `default` as the session name when you need to stop the default session explicitly.
## Workspaces
```bash
herdr workspace list
herdr workspace create [--cwd PATH] [--label TEXT] [--focus] [--no-focus]
herdr workspace get
herdr workspace focus
herdr workspace rename