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 list | Every deployed function, one line per method and path. |
drift atomic element list | Elements 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; see Authentication. |
drift atomic alert | Add, list and remove per-function 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 project deploy.
Every drift atomic subcommand, with its flags and output, is in the CLI reference →