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, second factor, tokens, members, delete it all.
- sliceCreate, resize, snapshot, link, gate, custom domains.
- fileLint it, apply it, run what it declares. Every Driftfile verb.
- atomicOne function at a time, scaffold to rollback.
- backboneReach into the data plane from your terminal.
- deedRead-only identity: status, Vault, Link, Pocket.
- canvasDeploy a static site. One verb, and pruning.
- migrateMove off another cloud, entirely locally.
- doctorExplain a failure code, offline, no account needed.
Session
Your login lives in ~/.drift/session.json, one profile per account you're logged in to, each with its own active slice, so switching accounts with drift account use never points a second account at the first one's slice. Every authenticated request carries:
Authorization: Bearer <jwt>, your identityX-Slice: <active-slice>, the target slice
Tokens are refreshed automatically on a 401 that means the session expired. If the refresh fails, you're prompted to log in again. Account has the file's shape and how to work as more than one account, and Authentication has 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.