dotenv-flow-cli
This is a cli executable for dotenv-flow.
Installing
Either install it globally:
$ npm install -g dotenv-flow-cli
or add to your project:
Yarn
$ yarn add dotenv-flow-cli
NPM
$ npm install dotenv-flow-cli
Usage
$ dotenv-flow <command with arguments>
This will load the variables from the .env*
files in the current working directory and then run the command (using the new set of environment variables).
For more information about how the .env*
files are loaded, please refer to dotenv-flow docs.
Custom path
You may specify a path where your .env*
files are located with the -p
option:
$ dotenv-flow -p path/to/project <command with arguments>
Arguments to the underlying command
Put --
separator before the command if it takes additional arguments, otherwise they might get lost.
$ dotenv-flow -- my-command -p something