CLI
handoff push
Upload your local .env file to a Handoff environment.
Usage
handoff push [--env <name>] [--file <path>] [--yes]What it does
Reads a local .env file, encrypts each value with the organization key, and writes the result to the selected environment. Existing remote values are versioned: nothing is destroyed, and a rollback is always a dashboard click away.
By default push prints a diff of what will change and asks you to confirm.
Flags
| Flag | Default | Description |
|---|---|---|
-e, --env <name> | default env from .handoff/config.json | Target environment |
-f, --file <path> | .env | Local file to push |
-y, --yes | false | Skip the confirmation prompt |
Examples
Push to a non-default environment:
handoff push --env productionPush a non-standard file:
handoff push --file .env.localSkip the prompt (non-interactive contexts):
handoff push --env production --yes