CLI

CLI overview

Every command in the Handoff CLI, at a glance.

Commands

CommandWhat it does
handoff initCreate a new project and write .handoff/config.json
handoff loginAuthenticate this machine against your Handoff account
handoff logoutClear the stored credential
handoff whoamiShow the user and organization the CLI is signed in as
handoff pushUpload a local .env to a remote environment
handoff pullDownload a remote environment to a local .env.<env>
handoff diffCompare your local .env to the remote version
handoff runRun a command with secrets injected as env vars

Run any command with --help for its full flag list.

Where things live

PathContents
./.handoff/config.jsonProject ID + default environment, committed with your repo
~/.config/handoff/auth.jsonYour login token (created by handoff login)

Environment variables

VariableUsed byPurpose
HANDOFF_TOKENrunAuth token, overrides auth.json (use in CI)
HANDOFF_API_URLallOverride the API base URL (local dev / self-host)