Skip to the page

agents / cli

The CLI

Everything the console does, from your terminal. One binary, macOS, Linux and Windows.

Install

macOS and Linux
curl -fsSL https://00b5e2.com/install.sh | bash
Windows, PowerShell
irm https://00b5e2.com/install.ps1 | iex

The script puts the 00b5e2 binary in your path and nothing else. It updates itself with 00b5e2 update.

Login

terminal
$ 00b5e2 login
→ opening login.00b5e2.com in your browser
■ logged in as aaangelmartin (aaangelmartin)

The browser asks for your passkey or code, like the console. On a machine without a browser, use a token instead.

Deploy

terminal
$ cd my-site
$ 00b5e2 link
$ 00b5e2 deploy
▲ building 3f9c2a1 ......... 41s
▪ web  https://my-site.00b5e2.dev
▪ api  https://api.my-site.00b5e2.dev
$ 00b5e2 deploy --prod
▪ web  https://my-site.00b5e2.app
▪ api  https://api.my-site.00b5e2.app

Deploys go to development by default. Production is always an explicit step, so an agent can't reach it by mistake.

Agents and JSON

Every command has a JSON mode that returns plain data with no colours or spinners. Exit codes are stable: 0 done, 1 failed, 2 not allowed.

terminal
$ 00b5e2 ls --json
[{"name":"my-site","env":"production","status":"live"}]

Commands

account

loginLogin through the browser, or with a token--token
logoutEnd the session on this machine
whoamiWho, or which token, is logged in
updateUpdate the CLI to the latest version
helpList every command, or explain one

projects

initCreate a project from the current folder--name
lsList projects and services
git connectDeploy a GitHub repo on every push<owner/repo>

services

services addAdd a site, API, worker, database, cron job or container; its address is reserved--name --dir --engine --address
services lsList the services of a project
services rmRemove a service and its development data--prod
services openOpen a service at its address; a database gets its own port<service> --allow --prod
services closeClose a service; only its project reaches it<service> --prod

deploys

deployDeploy to development, production or a preview--prod --preview
promoteMove a development deploy to production<deploy id>
rollbackGo back to a previous deploy--prod --to
previews lsList the previews of a project
previews rmRemove a preview<branch>

variables

env setSet or rotate a variable, value asked for--prod --redeploy
env lsList variables, never secret values--prod
env rmRemove a variable--prod
env importImport variables from a .env file--prod

databases

db createCreate a Postgres database. MySQL and Valkey coming next--engine --name --prod
db connectOpen a tunnel from your machine--port --prod
db shellOpen a database shell--prod
db backups lsList the nightly backups by date--prod
db backups createTake a backup now--prod
db restoreRestore a database to a date--date --into --prod

cron jobs

cron addAdd or change a cron job--schedule --command --prod
cron lsList cron jobs and their last run--prod
cron runStart a run now<name>
cron rmRemove a cron job--prod

domains

domains addAdd a domain to an open service (main site by default) and get its records<domain> --service
domains verifyCheck the records and issue HTTPS<domain>
domains lsList domains and their state
domains rmRemove a domain<domain>

network

network allowLet one project reach another of the organisation--to
network lsList the allowed paths

logs and metrics

logsRead or follow logs--prod --since --follow --level --grep --run
metricsRequests, latency, cpu, memory and disk--prod --since
alerts addAlert when a metric crosses a value--metric --above --for
alerts lsList alerts
alerts rmRemove an alert<id>

agents

tokens createCreate a scoped token, shown once--scope --project --expires
tokens lsList tokens and their scopes
tokens revokeRevoke a token at once<name>
auditWhat each token and person did--token --since
mcpRun the MCP server locally

organisation

members lsList members and their roles
members inviteInvite someone to the organisation or a project--role --project
members rmRemove a member and free the seat<name>
usageSeats and cubes of the organisation