CLI reference

Install it from Integrations → Command line; it's symlinked so bothy works in any terminal. Every command supports --json. Run bothy --help or bothy site --help for every flag.

bothy doctorHealth report: Homebrew, binaries, DNS resolver, PHP/DB versions, services
bothy up | down | statusStart everything, stop everything, show services with CPU/memory
bothy site add <name> [--php X.Y] [--db]Create a site
bothy site add <name> --git <url> --composerClone and install
bothy site open | remove | rename <name>Open in your browser, remove, or rename (changes the URL)
bothy site php <name> <X.Y>Switch a site's PHP version
bothy site ini <name> <key> <value>Per-site php.ini
bothy site env <name> <KEY> <value>Set an env var
bothy site xdebug <name> on|offToggle Xdebug
bothy site exec <name> -- <cmd>Run a command with the site's PHP
bothy site db <name> assign|unassign <db>Assign databases to a site
bothy site label | folder <name> …Display name; sidebar folder
bothy site export <name>Zip files, database dumps and config
bothy site purge <name>Flush the site's Redis db and Memcached
bothy php install | uninstall <X.Y>Manage PHP versions
bothy php ini <X.Y> <key> <value>Per-version php.ini
bothy db add-server <formula> --port <n>Add a MySQL/MariaDB server
bothy db create | drop <db>Create or drop a database
bothy db query <db> "<sql>"Run SQL
bothy db snapshot | restore | import <db> [file]Dump, restore, or load a .sql/.sql.gz/.zip
bothy service start|stop|restart <name>caddy, dnsmasq, php-8.3, mysql-8.4…
bothy stats [site] [--json]Server-wide or per-site stats
bothy logs <site|service> [--kind access|php|slow]Tail logs
bothy addon [enable|disable|php-ext] …Redis, Memcached, Node
bothy pma [db]Open phpMyAdmin
bothy mail [--list|--clear|--enable]Mailpit
bothy licence [activate KEY|deactivate]Show, activate or deactivate this Mac
bothy usage [on|off]Anonymous usage counts waiting to be sent; opt out or in