Layerbeat

Command reference

Every layerbeat command, grouped by what it does.

Run layerbeat COMMAND --help for every option of a command. lb works in place of layerbeat everywhere.

Options for every command

OptionMeaning
--jsonPrint JSON (the API's own response shapes). The default when stdout is not a terminal
--no-inputNever prompt; fail instead
--yes, -yAnswer yes to purchase confirmations (scripts and agents). Without it, buying or renewing asks in a terminal and is refused elsewhere
--workspace ORG_IDAct on this workspace (signed-in sessions only)
--api-url URLUse another Layerbeat API instead of https://layerbeat.com (also LAYERBEAT_API_URL). Must be https://; http:// only for localhost, 127.0.0.1 or [::1]
-h, --help / -V, --versionHelp and version

Account and sign-in

CommandWhat it does
loginSign in through your browser (--no-browser over SSH); or save an API key piped on stdin
logoutSign out and forget the saved token
whoamiYou, your workspace, permissions and credit
doctorCheck configuration, connection and sign-in
statusCheck that the Layerbeat API is up
sessions ls / rmYour signed-in browsers and CLIs
keys ls / create / rmAPI keys for scripts and agents (signed-in sessions only)
account …Setup, currency, email, password and connected Google or GitHub sign-ins
notifications show / set / historyWhich emails you receive
org show / members / add-member / set-role / remove-member / auditYour workspace, its members and audit log
signupCreate an account (not on layerbeat.com, which needs the browser check)

Catalog

CommandWhat it does
regionsLocations
plans [--region R] [--family general|fast] [--os linux|windows]Configurations, with their system, prices and stock for a region
images [--region R] [--all]Operating systems and applications
quote --region R --plan P --image I [--term N]The exact total for a server

Servers

CommandWhat it does
new [NAME]Buy a server: asks in a terminal (OS or app, then the plans that fit it, term, login, then a yes), or takes flags (--os, --max-price, --idempotency-key, --yes, --wait…)
ls / get SERVERList servers / show one
start / stop / reboot SERVERPower (--wait to wait)
rm SERVER --confirm NAMEDelete permanently
renew SERVER --max-price AMOUNTExtend the prepaid term
renewal show / set SERVERRenewal prices and automatic renewal
metrics SERVER / traffic SERVERUsage in the last 24 hours / this month's transfer
metrics-access show / set SERVERWho may see a server's metrics
password reveal / forget SERVERThe first-login password
console SERVEROpen the browser console
operation OP / wait OPShow or wait for an operation

Access

CommandWhat it does
ssh SERVER [-- COMMAND]SSH in, or run one command
exec SERVER -- COMMANDRun a command without prompts; its exit status becomes the CLI's
cp FROM TOCopy files; server:path on either side, -r for folders
ssh-key ls / add NAME / rmYour SSH public keys

Disks and firewall

CommandWhat it does
volume prices / optionsPublic disk prices / sizes, terms and zones
volume new NAME --size GB [--server S]Buy a disk, attached and mounted, or unattached in a zone
volume ls / get / system-disksYour disks / one disk / servers' own disks
volume attach VOL SERVER / detach VOLMove a disk between servers in a zone
volume rename / renew / rm --confirmRename, extend or delete a disk
fw ls / add / rm SERVERA server's firewall rules

Templates

CommandWhat it does
template ls / show TThe catalog / one template
template deploy T --server SInstall it (--input, --ports or --accept-ports, --wait)
template deployments / status DWhat is deployed where / one deployment
template check / update / rm DHealth check, update or retry, remove (--delete-data)
template script T|DThe exact script that runs on the server

Credit

CommandWhat it does
creditYour USD and IDR balances
transactionsCredit history
payment-methodsWhat you can pay with
topup AMOUNT [--method M]Add credit; prints payment instructions
topup AMOUNT --pay x402|mpp [--payer PATH]An agent pays now from its own wallet (how)
payments / payment ID [--refresh]Your top-ups
affiliate …Referral and partner program

Agents and tools

CommandWhat it does
mcp serve [--allow-spend] [--allow-delete]Layerbeat as MCP tools for coding agents
api METHOD PATH [-d JSON] [-H HEADER]Call any API endpoint
completion SHELLShell completions for bash, zsh, fish, elvish or PowerShell

Environment

VariableMeaning
LAYERBEAT_API_KEYUse this API key (wins over a saved sign-in)
LAYERBEAT_API_URLUse another Layerbeat API (same rules as --api-url)
XDG_CONFIG_HOMEWhere the layerbeat settings folder lives (default ~/.config)