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 dependency manifest, and print the function block to declare it with in your Driftfile. Flags make it non-interactive: -l python -m post, or -q jobs for a queue handler, -b ml to place it in a backend, -a apikey to include an auth block in the printed declaration. |
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. |
Shipping is drift apply, which builds and uploads every function and worker whose source or declaration changed and leaves the rest alone. Operate what is live:
| Command | What it does |
|---|---|
drift atomic redeploy <name> | Re-deploy the last artifact without rebuilding. |
drift atomic list | Every deployed function, one line per method and path. |
drift atomic backend list | Backends 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 auth | Set, list and revoke API keys outside the Driftfile; see Authentication. |
drift atomic alert | List the alerts a slice holds. They are declared in the Driftfile; see Limits and alerts. |
drift atomic egress | Inspect, test and refresh the outbound allowlist. |
drift atomic trigger | List 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 apply, after drift plan has shown what it will change.
Every drift atomic subcommand, with its flags and output, is in the CLI reference →