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.

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

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 identity
  • X-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.