drift Docs
Start
What is Drift?
The tour, if you are new here.
Use cases
Whether Drift does your thing.
Getting started
Nothing to deployed, in one command.
Architecture
How a slice is put together.
What it costs
The free grant, four unit prices, two rules.
Build
Canvas
Static sites, same origin as your API.
Tools
Operate
Auth
Route gates, API keys and your account.
Teams
More than one person on one account.
Security
Boundaries, sandboxing and hardening.
Troubleshooting
Error codes
What went wrong, and what to do about it.
Legal
Acceptable use
What a slice may not be used for.
Data processing
The DPA, and every sub-processor.

CLI

The CLI is the product. Declare a slice in a Driftfile, see what applying it would change and cost, apply it, read its logs and roll it back without leaving the terminal. There is no dashboard to open and no console to configure. Most commands are drift <noun> <verb>, and the nouns are the platform's own: a slice, a function, your data. The three that act on a whole Driftfile, drift plan, drift apply and drift size, are verbs on their own.

Where to go

One binary

Three commands are the binary talking about itself rather than about your account. They need no login and, apart from upgrade, no network.

Command Description
driftWith no arguments in a terminal, opens a full-screen interactive dashboard (a btop/k9s-style TUI) over your slices, functions, and Backbone data; see The dashboard. In a pipe or CI (no TTY) it prints --help instead. drift portal opens the same screen explicitly.
drift --versionThree lines, offline: this binary's version, the Driftfile format it was built to implement (driftfile format implemented), and the format this machine has cached from the platform (driftfile format on this machine). They move independently, so a Driftfile the platform accepts and this CLI rejects is visible here. The format number belongs to the platform's schema; it is not written in your Driftfile.
drift upgrade [version]Update the CLI. It detects how this copy was installed: a Homebrew binary is upgraded with brew upgrade drift, a go install one is reinstalled in place. Pass a version to pin or roll back.

Installing it for the first time is the first step of Getting started.

The whole project

Three commands read the Driftfile in the current directory and work on the one slice it declares. Each is documented on the drift file page, beside the commands that lint, format, explain and run the file.

Command Description
drift plan [environment]Compare the Driftfile with the live slice and print every difference: what is added, changed and removed, the monthly price before and after, whether the slice restarts, and what data a removal could lose. Changes nothing. See drift plan.
`drift apply [environment \plan.json]`Make the slice what the Driftfile says: create it or resize it, then deploy what runs on it. Asks before the price moves, before anything is removed and before data could be lost. See drift apply.
drift sizeWrite what each Function and Worker has measured into the Driftfile's memory lines. See drift size.

Nothing here needs a browser.

There is no exception and no browser surface. A slice's shape is a block in a file, priced by drift plan in your terminal; a slice made without a file is drawn in a form in the terminal, the same as everything else here: signup, deploys, secrets, snapshots, rollbacks. Every one of them is a command.