frankendeploy env set
frankendeploy env set
Set an environment variable
Synopsis
Sets an environment variable on the server.
For secrets, prefer —from-stdin: the value never appears in your shell history nor in the remote command line. Interactively, the value is asked with a hidden prompt; in scripts, it is read from stdin.
Use —reload to apply changes immediately (restarts the container). Without —reload, changes take effect on next deployment.
Example: frankendeploy env set prod DATABASE_URL=“postgresql://user:pass@host/db” frankendeploy env set prod APP_SECRET —from-stdin openssl rand -hex 32 | frankendeploy env set prod APP_SECRET —from-stdin frankendeploy env set prod APP_SECRET=“my-secret-key” —reload
frankendeploy env set <server> <KEY=value | KEY --from-stdin> [flags]
Options
--from-stdin Read the value from stdin (keeps secrets out of shell history)
-h, --help help for set
--reload Restart container to apply changes immediately
Options inherited from parent commands
--config string Config file (default: frankendeploy.yaml)
-v, --verbose Show detailed logs
-y, --yes Skip confirmations (CI/CD mode)
SEE ALSO
- frankendeploy env - Manage environment variables on servers