CLI Reference
One page per noun, each with every verb, flag and output it carries. The binary's own three commands (drift, --version and upgrade) are on the CLI overview.
The commands
- accountSign up, log in, reset a password, delete it all.
- sliceCreate, resize, snapshot, link, custom domains.
- projectDeploy what the Driftfile declares, or diff it first.
- fileLint, explain, format and scaffold a Driftfile.
- atomicOne function at a time, scaffold to rollback.
- backboneReach into the data plane from your terminal.
- deedOne read-only status command.
- canvasDeploy a static site. One verb, and pruning.
- migrateMove off another cloud, entirely locally.
Session
Your login and active slice live in ~/.drift/session.json. The active slice is preserved across logins. Every authenticated request carries:
Authorization: Bearer <jwt>, your identityX-Slice: <active-slice>, the target slice
Tokens are refreshed automatically on a 401. If the refresh fails, you're prompted to log in again. Account has the file modes and Authentication the token lifetimes.
Bare drift opens the terminal dashboard.
It runs over the same data with slices down the side, and Atomic / Backbone / Canvas panes for browsing functions, documents and sites.