# The commands an agent uses most MCP tool name first, then the command line (`sbctl` on Windows, `spacebackup` on macOS/Linux; add `--json`). **R** = read-only, **W** = changes something easy to take back, **D** = destructive or access-changing: only when the user asked for exactly that. Every command: `help` (or https://spacebackup.net/manual/cli/). ## State and history | Tool | Command | | What | |---|---|---|---| | `status` | `status [--watch --until-idle --for 5m]` | R | state, progress, warnings, last/next run | | `runs_list` | `runs list [--since T] [--folder P] [--limit N]` | R | every run: trigger, times, files, bytes, result | | `runs_show` | `runs show \|last` | R | one run in full: per destination, slowest and failed items | | `events` | `events [--since T] [--follow --for D]` | R | state changes, warnings, peers up/down, runs | | `tx` | `tx [--since T] [--path GLOB] [--result fail] [--kind K] [--limit N]` | R | one record per file operation | | `log` | `log [--tail N] [--follow --for D]` | R | the app log | | `transfers` / `queue` / `stats` | `transfers`, `queue`, `stats [--days N]` | R | moving now, waiting, speeds and errors | | `explain` | `explain ` | R | every copy of one file and why it was or was not copied | | `version` | `version` | R | app and protocol version, running or not | | `start` | `start` | W | start the app/daemon | ## Folders and runs | Tool | Command | | What | |---|---|---|---| | `folders_list` | `folders list` | R | folders, frequency, destinations, last/next run, size | | `folders_add` | `folders add [--frequency F] [--dest D] [--encrypt on\|off] [--plain-dest IDS] [--encrypted-dest IDS] [--keep N\|global]` | W | back up a folder (`plain-dest`: those drives get plain files, ids as in `dest list` separated by `\|`; `keep`: backups kept on each drive) | | `folders_set` | `folders set [--frequency F] [--dest D] [--encrypt on\|off] [--plain-dest IDS] [--encrypted-dest IDS] [--keep N\|global]` | W | change it (`encrypt`: every drive; `plain-dest` / `encrypted-dest`: those drives only; `keep`: its own number of backups on each drive or `global`; fewer: the oldest go at its next backup, the answer says how many) | | `folders_remove` | `folders remove ` | D | stop backing it up (existing backups stay) | | `now` | `now [paths…] [--wait]` | W | back up now (everything, or these paths) | | `cancel` | `cancel [--restore]` | D | cancel the running backup (or the running restores) | Frequency: `once`, `daily`, `weekly`, `monthly`, `monthly:[:HH:mm]`, `hourly`, `every:N` (hours), `daily:HH:mm`, `weekly::HH:mm`, `manual`, `global`. Destinations (`--dest`): `all`, `auto:N` (N copies on distinct PCs and disks), `selected:|` (ids from `dest_list`). Times (`--since`): `YYYY-MM-DD`, `"YYYY-MM-DD HH:mm"`, ISO 8601, `today`, `yesterday`, an age (`2h`, `7d`). Durations (`--for`): `30s`, `5m`, `1h`. ## Destinations, PCs, settings | Tool | Command | | What | |---|---|---|---| | `dest_list` | `dest list` | R | this PC's and the paired PCs' destinations: online, free, full, speed | | `dest_add` | `dest add ` | W | a drive or folder of this PC as a destination | | `dest_remove` / `dest_forget` | `dest remove ` / `dest forget ` | D | remove one (backups on it stay) / forget a gone PC's | | `peers_list` | `peers list` | R | paired PCs: version, address, reachability, last seen | | `settings_get` | `settings get [key]` | R | every setting (keys and values listed) | | `settings_set` | `settings set ` | W | change one | | `scrub` | `scrub [--status] [--now]` | W | integrity check of this PC's destinations | | `update_status` / `update_check` | `update status` / `update check` | R/W | auto-update | | `diag` | `diag [--out FILE.zip]` | W | support bundle without secrets | ## Restore and browse | Tool | Command | | What | |---|---|---|---| | `history` | `history [--folder P] [--dest ID] [--pc NAME]` | R | date folders per destination | | `browse` | `browse [--date D\|latest] [--pc NAME]` | R | what a folder held on a date | | `restore` | `restore [--date D] [--to DIR] [--skip\|--keep-both\|--overwrite] [--pc NAME]` | D | copy a backup back (use `--to` a new folder) | | `recover_list` / `recover_request` | `recover list` / `recover request ` | R/W | restore another PC's backups after approval | | `share_list` | `share list` | R | who may read whose backups | ## Photos and albums | Tool | Command | | What | |---|---|---|---| | `photos_search` | `photos search [--limit N]` | R | albums, devices, places, periods and photos matching | | `photos_list` | `photos list [--search T] [--type T] [--from D] [--to D] [--source K] [--limit N]` | R | photos and videos, newest first | | `photos_show` / `photos_details` | `photos show ` / `photos details ` | R | one item | | `photos_save` | `photos save … --to ` | W | copy originals into a folder | | `photos_restore` | `photos restore … [--to ]` | D | put originals back in place | | `albums_list` / `albums_show` | `albums list` / `albums show ` | R | albums and their items | | `albums_restore` | `albums restore --to ` | W | save a copy of an album | ## Account and company | Tool | Command | | What | |---|---|---|---| | `account_status` | `account status` | R | signed in as, company, role, key, encryption | | `devices_list` | `devices list` | R | the company's PCs | | `account_signin` / `account_code` | `account signin ` / `account code <6 digits>` | W | passwordless sign-in (the user reads the mail) | | `key_fingerprint` | `key fingerprint` | R | the company key's fingerprint (never the key) | | `notifications_list` | `notifications list [--unread]` | R | the app's notifications |