Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 429 Bytes

using-variables-in-env-file-on-the-command-line.md

File metadata and controls

12 lines (8 loc) · 429 Bytes

Using variables in .env file on the command line

If you keep secrets in a .env file (or in any file with the normal KEY=value format), they can be temporarily exported to invoke a command:

$ (export $(cat .env | xargs) && MIX_ENV=prod mix release)

They will not be persisted outside of this command.

source