Basecamp guide / Deploy
Secrets and environment
fli deploy:setup seeds the server's env file once from your local .env.production, and from then on the copy on the server is yours to edit. The env: commands read and write env files on your side, and fli env:push sends keys to the target.
fli deploy:setup # first run seeds the server's env file from .env.production
fli epush STRIPE_KEY # which keys would reach the target, never their values
fli epush STRIPE_KEY # add the key to the server's env file
What else it can do
deploy:setupnever overwrites an env file the server already holds, and writes it at mode 600ENCRYPTION_KEYgoes to its own file on the server at mode 400, not into the env file, and setup makes one in your local file when neither side has one- A deploy writes no env file on the target; it passes the
deploy.configurationvalues offrontier.config.jsto the container - A key named in
deploy.secretsis checked for presence in the server's env file and is never applied by a deploy fli epushleaves a key the target holds with another value alone and names it;--overwritereplaces it- With
BASECAMP_APP_IDset,fli epushwrites the App's Variables in Basecamp instead fli eset,eget,elistandedelchange and read a local env file;--globaluses~/.config/fli/.envfli elistmasks values unless you pass--valuesfli ecopywrites.env.examplewith the values stripped, safe to commitfli epull --fromfetches variables fromurl,gist,ssh,file,vaultwardenorsendfli esendshares keys as a one-read Vaultwarden Send link
In depth: deploy:setup, env:push, env:pull, env:send