istro

Reference

Command Reference

Every bistro command, from bistro help.

This is the output of bistro help.

bistro dev: look after this server from a terminal.

Overview
  bistro                     home: health score, problems and the fix for each, inbox, updates, disks
  bistro watch [SECONDS]     the home view and the busiest processes, redrawn every 2 seconds (q quits)
  bistro status              memory, disks, failed services, recent events
  bistro doctor              find problems and say how to fix them
  bistro search TEXT         search apps, services, schedules, settings, packages, logs, help;  --files TEXT: files by name
  bistro disk format DEV     erase one whole disk and make one data partition on it (prints the UUID for DATA_UUID)
  bistro ui lang|layout      language and Overview card order that follow you to any browser;  bistro ui get|set|reset NAME
  bistro plugin              list|inspect SRC|install SRC|remove|enable|disable NAME|new NAME: pages, apps and assistant tools by third parties
  bistro push                Web Push alerts to browsers: status|init|list|send LEVEL TITLE;  bistro notify set PUSH yes turns the channel on
  bistro ask "TEXT"          ask the assistant to check, fix or set something up
  bistro health              score 0-100 and the three fixes that help most
  bistro forecast            when each disk will be full, from its daily growth
  bistro big [PATH]          the 20 biggest files (100 MB and up)
  bistro dupes [PATH]        files stored more than once, and the space they waste
  bistro changes [diff DAYS] what changed: packages, services, ports, files in /etc
  bistro changes drift       settings files changed by hand since the last apply
  bistro review [--days N]   what happened this week, what was fixed, what is left
  bistro inbox               what needs you;  approve ID|approve-safe|dismiss ID|snooze ID HOURS
  bistro suggest             things Bistro proposes (Needs You on Overview);  accept ID|dismiss ID|sweep
  bistro uptime              status;  add NAME URL [CODE] | remove NAME | check   checked every 5 minutes, alert when down
  bistro certs [check HOST[:PORT]]   HTTPS certificates and the days left
  bistro logins [MINUTES]    failed SSH and Cockpit logins per address

Apps and services
  bistro apps                list apps;  install|start|stop|restart|update|logs|remove|open ID
  bistro app add ID --image IMG | --command CMD | --folder DIR [--web PORT ...]   add your own app
  bistro share NAME APP|PORT [HOURS]   public https link for a friend (stops after 24 h);  share stop NAME, share
  bistro proxy add NAME TARGET [--lan] [--auth USER] [--insecure]   any service behind a name with HTTPS;  proxy remove NAME
  bistro app set ID KEY VALUE;  bistro app show|doctor ID   options: restart health replicas domain logs memory cpu autoupdate boot
  bistro services [all]      list services;  status|start|stop|restart|enable|disable UNIT
  bistro logs [UNIT]         -f follow, -n N, -e errors only, -g TEXT, --since TIME
  bistro logs search TEXT    [--since 1h|24h|7d] [--unit U|--app ID] [--level err|warn]   journal and app log files at once
  bistro logs retention      [DAYS|SIZE|default]   how much journal is kept
  bistro dash                terminal dashboard: health, apps, inbox, network, events (q quits)
  bistro top [--mem]         busiest processes;  bistro kill PID [--force]
  bistro nice PID low|normal|high   change the priority of a process

Packages
  bistro update              refresh and install every update, all package managers
  bistro upgrade check|run   next Debian release (like 12 to 13): blockers first, snapshot, then apt full-upgrade
  bistro pkg                 status|refresh|outdated M|update [M]|clean|list M|search M TEXT|install M NAME|remove M NAME

Schedules and backups
  bistro sched               list|add NAME SCHEDULE -- COMMAND|run|enable|disable|remove NAME
  bistro snippet             saved commands: list | show NAME | save NAME [USER] (stdin) | remove NAME
  bistro backup              list|add NAME PATH...|run NAME|snapshots NAME|restore NAME SNAPSHOT [PATH]|delete NAME
  bistro offsite             encrypted off-site backup (restic): status | setup REPO (secrets on stdin) | run | test | snapshots
                             | restore ID [PATH] | paths PATH... | keep D W M | when SCHEDULE|off | remove

System
  bistro settings            get [KEY]|set KEY=VALUE...|apply|edit
                             export [FILE]|import FILE|undo-import   all settings in one file
  bistro storage | net       disks and folders | addresses, ports, remote access
  bistro hardware            CPU, memory, disks, network ports, temperatures
  bistro ports               which program, service and app listens on each port
  bistro wol NAME|MAC        wake a machine;  wol list | add NAME MAC | remove NAME
  bistro ddns                status|update|off|set KEY VALUE   dynamic DNS: PROVIDER (duckdns, cloudflare) NAME TOKEN ZONE
  bistro remote              status|tunnel|tailscale|forward add|remove PORT tcp|udp [NAME]
  bistro cluster ...         info|create NAME|join|code|leave|nodes|run HOST|auto USER
  bistro cluster k3s [status];  k3s join HOST agent|server   members' k3s roles; join the k3s cluster whose server is member HOST (server needs: bistro k3s install --ha there)
  bistro fleet               status: every member, health, apps, alerts, version
  bistro fleet join-script   one-line command for a new machine (Debian/Ubuntu/Pi); works once, for 1 hour
  bistro fleet run NODES|all [--dry-run] -- update | apps-update APP | restart-app APP | setting KEY=VALUE | reboot
  bistro fleet move APP NODE      copy an app and its data there, start it, stop it here
  bistro fleet failover on APP [STANDBY] | off APP | status   another member starts the app when this one is down
  bistro fleet template save NAME | apply NAME NODE | list | delete NAME   settings, apps and schedules
  bistro fleet backup pair NODE [PATH...] | unpair | run | status   daily copies to another member
  bistro clean               remove junk, caches and old logs
  bistro maint trim|shrink-logs   trim SSDs | cut the journal to 50 MB
  bistro events [N]          what Bistro recorded: alarms, cleanups, restarts
  bistro notify              status|test|set KEY VALUE   phone/chat alerts: NTFY_URL GOTIFY_URL GOTIFY_TOKEN
                             WEBHOOK_URL EMAIL_TO QUIET_START QUIET_END DIGEST
  bistro pi                  Raspberry Pi: status | set KEY VALUE (ssh, i2c, spi, fan, overclock ...) | keys
  bistro pi sensors          GPIO pins, 1-wire temperatures, I2C devices, BME280;  pi poe-fan show|default|set T0 T1 T2 T3 [--hat poe|poe-plus]
  bistro reboot|poweroff [--in MIN]   bistro power cancel
  bistro gui                 status;  on | off   show the dashboard on this machine's own monitor
  bistro sleep               status;  idle MINUTES|off | wake-at HH:MM|off | now   suspend when idle, wake on time or LAN
  bistro print               status;  setup | list | add NAME URI [PPD|everywhere] | remove NAME   share printers on the LAN
  bistro shares              list;  add NAME PATH [--smb] [--nfs] [--ro] [--user U] | remove NAME | status   Windows/Mac (Samba) and Linux (NFS) shares
  bistro shares link PATH    [--hours N] [--password-stdin] [--public]: a link to one file or folder;  links | revoke ID
  bistro fm                  list DIR | stat | mkdir | rename | move | copy | delete | zip | unzip | chmod | chown | read | write | roots   files in /srv/data and /home
  bistro dns                 status;  on [--suffix home] | off | add NAME TARGET | list | remove NAME | https on|off   names like jellyfin.home
  bistro launcher            status;  on [--name home] | off | set TITLE   one page of links to every app at home.local
  bistro migrate             scan;  plan | run [--dry-run] [--copy] [--source KIND] [--from DIR]   move apps from Synology, Unraid, CasaOS, Docker
  bistro portable            plan;  pack FILE [--passphrase-stdin] [--no-data] | check FILE | restore FILE | pull USER@HOST | undo [adapt]   move this whole machine to a new one
  bistro portable            verify [--manifest-from FILE] [--strict] | inventory | adapt [--dry-run] | status   check the new machine against the old one (add --json)
  bistro portable            usb pack [MOUNT] | usb find | adopt [--apply] | auto daily|weekly [DIR] [--keep N] [--data] | auto off|status|run   move file on a USB drive, or kept ready on a timer
  bistro portable            cluster plan | pack DIR | check DIR | restore DIR NODE | status   move a whole cluster (a password goes on stdin with --passphrase-stdin, plus --yes)
  bistro shield              status;  entropy on|off | harden on|off | defend on|off [AFTER [HOURS]] | bans | ban IP | unban IP | threats [HOURS]   active defense
  bistro tls                 status;  install CERT KEY | selfsign [NAME...] | caddy DOMAIN | remove   HTTPS certificate of this dashboard
  bistro load                status;  priority APP low|normal|high | auto on|off | history   keep one greedy app from starving the rest
  bistro surge               status;  on|off | tune [off] | swap | history   by itself on busy machines: limits, swap, memory leaks, out-of-memory, heat
  bistro capacity            status;  report | sample | sweep | history   RAM, CPU, swap and network trend, days until full, plain advice
  bistro restoretest         status;  run [NAME] | on|off | history   proves each backup restores (monthly, in a scratch folder)
  bistro dbcare              status;  run [ID] | slow ID | on|off | history   automatic database upkeep: vacuum, optimize, integrity, slow queries
  bistro tier                status;  on|off | slow PATH | add|remove PATH | age DAYS | run | restore PATH   move cold files to a slow disk, link left behind
  bistro edge                status;  on|off | limit NAME RATE | cache NAME on|off | flood on|off [N]   protect a busy public site
  bistro care                status;  on|off | apply | history   tunes the OS for this hardware; watches disk wear, memory errors, heat, old kernels, firmware, restarts
  bistro ha                  status;  on VIP [IFACE] | off | users [sync USER] | history   one dashboard address that follows a working machine
  bistro scale               status;  on|off | app ID on|min N|max N | restart ID weekly   more or fewer copies of an app as its CPU moves; weekly restarts
  bistro loadtest run URL    [--users N] [--seconds S]   can this site take N visitors?
  bistro incus               status;  setup | list | create NAME IMAGE [--vm] | start | stop | delete | console   LXC containers and VMs
  bistro k3s                 status;  steps | install [--agent URL | --server URL | --ha] | uninstall | kubeconfig | nodes | join-token   small Kubernetes
  bistro vm                  status;  list | isos | create NAME --ram MB --cpus N --disk GB --iso PATH | start | stop | console | snapshot | delete | gpu-attach

Hosting
  bistro apps bundle         list;  bundle install ID   several apps in one step: media, private-chatgpt, rag, dev ...
  bistro apps connect ID     how other apps reach it (databases: the connection string with the password)
  bistro apps analytics SITE umami|plausible|off   add visitor stats to a hosted site
  bistro preset              list;  show ID | apply ID [--dry-run] | history | undo   setup presets: media, ai, dev, family, web
  bistro s3                  show;  list | bucket add|remove NAME | key add|list|remove APP   object storage with a key per app
  bistro apps store          list;  store add NAME URL | store remove NAME   more app stores by URL
  bistro apps deploy ID GIT-URL [BRANCH] [PORT]   build a repo with a Dockerfile, or serve one with index.html
  bistro apps redeploy ID    pull and rebuild now (new commits also deploy nightly, rolled back if unhealthy)
  bistro apps rollback ID [COMMIT]   go back to the commit before the last deploy (or one from releases), pinned until redeploy
  bistro apps releases ID    the last 10 deploys
  bistro apps env ID list|set KEY [VALUE]|unset KEY   variables the app and its build get
  bistro apps build ID COMMAND [IMAGE]|off   build a git site first (a package.json build script is found by itself); build-log ID
  bistro apps preview ID BRANCH   a copy on its own branch; previews ID lists them, preview-rm PID removes one
  bistro apps hook ID on|off|show|previews on|off   push webhook (needs a domain): a push redeploys the app, or its preview
  bistro apps import [FILE] [PREFIX]   docker-compose file (or stdin): one app per service
  bistro apps prune-unticked [--yes]   remove what Settings no longer ticks (lists first; exports and snapshots first; data stays)
  bistro expose APP DOMAIN [--no-router]   on the internet: domain with HTTPS, router ports 80/443, DNS record
  bistro expose              status: exposed apps and whether DNS points here;  expose remove APP

Network
  bistro nettest             ping;  speed [--upload] | trace HOST | history [DAYS] | outages   ISP outages logged every 10 minutes
  bistro scan                look for devices;  scan list | name MAC NAME | forget MAC   new devices raise an alert
  bistro bandwidth           list;  limit APP RATE (like 20mbit) | unlimit APP   network use and speed caps per app
  bistro wg                  status;  setup [PORT] | add NAME [--qr] | remove NAME | list | show NAME [--qr]   WireGuard VPN
  bistro ddns record NAME    keep an app's domain on this IP too (Cloudflare);  ddns records

Storage
  bistro domain              status: DNS provider connected, kept names;  connect PROVIDER | disconnect | zones | records ZONE | add-record ZONE TYPE NAME CONTENT | check [NAME]
                             providers: cloudflare, porkbun, namecheap, desec; the token comes from a prompt or stdin, never the command line
  bistro mail check DOMAIN   mail records (MX, SPF, DKIM, DMARC) live in DNS?;  setup DOMAIN | records DOMAIN | relay set HOST PORT USER | relay show | relay off
  bistro mail mta-sts DOMAIN [testing|enforce|off]   secure delivery: policy served by Caddy plus the _mta-sts and _smtp._tls records (off until asked)
  bistro sso                 single sign-on status;  setup authelia|authentik [DOMAIN] | protect APP | unprotect APP | user add|remove|list | tailnet key|nodes|add-node
  bistro registry            image cache status;  registry mirror on [HOST:PORT] | off (Podman and Docker pull through the cache)
  bistro trash               list;  put PATH... | restore ID [--to PATH] | empty [--older DAYS] | size   kept TRASH_DAYS (30)
  bistro archive             list;  add NAME SRC DEST tar.gz|tar.zst|zip|7z daily|weekly|monthly [KEEP] | remove NAME | run NAME | once SRC DEST FORMAT
  bistro usb                 list;  attach DEV | detach DEV|MOUNTPOINT   USB drives mount at /media/bistro
  bistro usb backup-drive    list;  add UUID [FOLDER...] | remove UUID   plug the drive in to back up
  bistro snap                status;  snapshot [NOTE] | list | delete N | rollback N | prune [KEEP] | diff N   Btrfs root
  bistro snap zfs            status;  snapshot DATASET [NOTE] | list-snapshots | scrub POOL | replicate DATASET HOST [--dry-run]

  bistro pool                list;  status NAME | mirror create NAME DEV DEV | merge create NAME MOUNT DIR... | parity setup NAME PARITY DATA...
                             replace NAME OLD NEW | parity-run [--force]   mirror (RAID1), merge (mergerfs), parity (SnapRAID)
  bistro luks                status;  tpm enroll DEV | tang add DEV URL [--yes] | remove-unlock DEV tpm|tang   unlock encrypted disks at boot

Security
  bistro firewall            status;  enable|disable | allow|deny PORT[/tcp|udp] [from CIDR|lan|any] [NAME] | remove N
  bistro firewall block-country CC | unblock-country CC | geoip-update CC | apply   block a country, reload rules
  bistro firewall fail2ban on|off|status | unban IP   ban after 5 failed ssh/Cockpit logins in 10 minutes
  bistro vault               secrets;  set NAME (value on stdin) | get NAME | remove NAME | grant|revoke NAME APP | rotate-key
  bistro secaudit            security check and score;  fix ID | inbox
  bistro users               people and roles;  add NAME admin|operator|readonly | role NAME ROLE | remove NAME
  bistro users 2fa NAME on|off | folder PATH NAME r|rw|none   2FA codes at login, access to folders in /srv/data

Hardware and AI
  bistro gpu                 status;  list | procs | check | setup [--dry-run] | limit INDEX WATTS   GPUs, load/temp/power, driver fixes
  bistro gpu assign GPU APP|vm:NAME [--share PERCENT]   give an app or VM one GPU;  unassign TARGET | assignments
  bistro vfio                status;  check | bind DEVICE [--dry-run] | unbind DEVICE [--dry-run]   hand a PCI device to a VM at next boot
  bistro accel               status;  setup [--dry-run] | assign APP [coral|hailo|npu] | unassign APP   Coral, Hailo, NPU, eGPU
  bistro gpujobs             list;  add NAME --gpu N [--when cheap] -- CMD | cancel|pause|resume ID | logs ID   one job per GPU at a time
  bistro infer               status;  plan MODEL | start MODEL [--dry-run] | stop | route | borrow [HOST|auto]|--off   big models across nodes
  bistro finetune            list;  add NAME --base M --data DIR --engine unsloth|axolotl | run|logs|cancel|result ID | image|command ENGINE
  bistro advisor             run|buy   which AI model sizes fit this machine, and what to upgrade
  bistro builtin             list;  on ID | off ID   the services that ship with Bistro (Caddy, Samba, NFS, Fail2ban, Incus, ...)
  bistro rightsize           report;  apply app ID [MB] | apply vm NAME [MB]   what each app and VM uses against what it holds, and a better size
  bistro metrics             list;  query METRIC [--since 1h|24h|7d|30d|365d] | prom | export grafana   history, Prometheus/Grafana
  bistro bench               history [KIND];  cpu | disk [PATH] | net HOST | model MODEL | compare KIND
  bistro power               status;  cost [DAYS] | spindown DEV MIN | spindown list | apply   watts, cost, disk sleep

Records
  bistro pkghist [DAYS] [--pkg NAME]   package changes (apt, flatpak, snap);  pkghist show PKG | rollback PKG [VERSION]
  bistro timers [calendar [DAYS]]   every scheduled job: systemd timers, cron, Bistro schedules;  calendar groups the next 7 days
  bistro audit [--source S] [--days N] [--grep TEXT]   who did what from the UI, CLI, assistant, MCP;  audit export
  bistro ups                 status;  setup [DRIVER] [PORT] | test   UPS on battery alerts and clean shutdown (NUT)

Assistant
  bistro ai                  list|add|default ID|remove ID|shell on|off|tools
  bistro notes               notes for this server;  notes set (stdin) | notes append TEXT
  bistro facts               what the assistant remembers;  bistro remember TEXT | bistro forget N|TEXT
  bistro undo                list what the assistant changed;  undo ID [--force]   put it back
  bistro heal                status;  history | diagnose UNIT | fix ID [ARG]   find why a service failed, apply a safe fix
  bistro chatops             status;  setup telegram|discord|matrix|ntfy | link | test | unlink ID | remove   run the server from your phone
  bistro explain             log UNIT|FILE [--lines N] | file PATH | config PATH [--offline]   plain-words summary, secrets removed first
  bistro conf                list;  show|validate|diff PATH | save PATH (text on stdin) | history PATH | restore PATH [N]   safe config editor
  bistro gitops              status;  init URL|DIR | export | push | pull | sync | auto on|off | remove   keep settings in a git repo
  bistro api                 status; enable | disable; token add|list|remove | hook add|list|remove | serve   HTTP API, MCP over HTTP (/mcp), webhooks (docs: /usr/share/bistro/integrations)
  bistro aiperm              perm list | perm set TOOL read|ask|allow | perm reset TOOL | rule add "TEXT" | rule list | rule remove N
  bistro runbook             show;  write | path   one page: what this server is and how to bring each part back
  bistro models              list;  dedupe [--dry-run] | offload MODEL DIR | prune --unused DAYS   model files of every engine
                             search TEXT | fit MODEL | pull ollama NAME|hf ORG/REPO [--quant Q] [--bg] | progress | rm MODEL   find, check and download models
  bistro vram                status;  keep MODEL on|off | unload MODEL | idle MINUTES | check MODEL   GPU memory for Ollama
  bistro gateway             models;  keys add NAME [--rpm N] [--budget USD] | keys list | keys remove NAME | usage [--since 24h|7d|30d]
                             cloud allow|deny PROVIDER | cloud list | sync   one AI key per app (LiteLLM), cloud only when allowed
                             usage --by key|model|app | logs on|off|status|show | publish on --domain D [--allow CIDR...] [--rpm N] | publish off | publish status
  bistro evals               list;  add NAME FILE | run NAME MODEL... [--judge M] [--via gateway] | show NAME | remove NAME   same prompts, side by side
  bistro rag                 list;  add NAME FOLDER | reindex NAME | query NAME TEXT | remove NAME | serve on|off|key   search your documents with a local model
  bistro mcphub              list;  catalog | add NAME [--ARG VALUE] | perm NAME read|ask|allow|expose|private | config NAME [--ssh HOST|--http] | remove NAME   host MCP servers
  bistro privacy             status;  on APP | off APP | report APP   the app may reach the LAN, never the internet

Autopilot
  bistro auto                status: mode, last check, fixes today;  auto pause HOURS, auto resume
  bistro health [history [DAYS]]   health score and what lowers it;  the daily score for the trend

Add --json for machine-readable output, --yes to skip questions. bistro help TOPIC shows one command.
Verbs are the same everywhere: list, add, remove, show, set.