drift Docs
Start
What is Drift?
The tour, if you are new here.
Why Drift?
The case for a smaller cloud.
Getting started
Nothing to deployed, in one command.
Architecture
How a slice is put together.
What it costs
The free grant, five unit prices, two rules.
Build
Canvas
Static sites, same origin as your API.
Tools
Operate
Auth
Accounts, tokens and scopes.
Security
Boundaries, sandboxing and hardening.

Atomic The CLI surface

Write and test locally:

Command What it does
drift atomic new [name]Scaffold a handler in any of the six languages, with its manifest. Flags make it non-interactive: -l python -m post, or -q jobs for a queue handler, -e ml to place it in an element.
drift atomic run <folder>Run one function locally with hot reload: every save kills the child, regenerates the wrapper and rebuilds.
drift atomic fetch [path]Resolve dependencies for every function under a path, in each language's own package manager.

Deploy and operate:

Command What it does
drift atomic deploy <folder>Build and deploy one function. --element/-e groups it.
drift atomic redeploy <name>Re-deploy the last artifact without rebuilding.
drift atomic listEvery deployed function, one line per method and path.
drift atomic element listElements and the functions inside them.
drift atomic logs <name>Recent log lines. -n to tail, -f to follow, logs purge to clear.
drift atomic metrics <name>Total and error request counts, error rate and average duration.
drift atomic history <name>Past deploys kept for rollback.
drift atomic rollback <name> <position>Restore one of them.
drift atomic delete <name>Remove a deployed function.
drift atomic authSet, list and revoke API keys; see Authentication.
drift atomic alertAdd, list and remove per-function alerts.
drift atomic egressInspect, test and refresh the outbound allowlist.
drift atomic triggerList and unregister triggers, or register a queue or schedule trigger directly against a target URL.

delete, redeploy, rollback and history all take --method/-m to disambiguate get:x from post:x at the same path. Or declare every function in a Driftfile and ship them all at once with drift project deploy.

Every drift atomic subcommand, with its flags and output, is in the CLI reference →