dotenv-cli
Advanced tools
Comparing version 5.1.0 to 6.0.0
@@ -20,3 +20,3 @@ #!/usr/bin/env node | ||
' -p <variable> print value of <variable> to the console. If you specify this, you do not have to specify a `command`', | ||
' -c [environment] support cascading env variables from `.env`, `.env.local`, `.env.<environment>`, `.env.<environment>.local` files', | ||
' -c [environment] support cascading env variables from `.env`, `.env.<environment>`, `.env.local`, `.env.<environment>.local` files', | ||
' command `command` is the actual command you want to run. Best practice is to precede this command with ` -- `. Everything after `--` is considered to be your command. So any flags will not be parsed by this tool but be passed to your command. If you do not do it, this tool will strip those flags' | ||
@@ -45,3 +45,3 @@ ].join('\n')) | ||
typeof argv.c === 'string' | ||
? [`${path}.${argv.c}.local`, `${path}.${argv.c}`, `${path}.local`, path] | ||
? [`${path}.${argv.c}.local`, `${path}.local`, `${path}.${argv.c}`, path] | ||
: [`${path}.local`, path] | ||
@@ -48,0 +48,0 @@ ), []) |
{ | ||
"name": "dotenv-cli", | ||
"description": "A global executable to run applications with the ENV variables loaded by dotenv", | ||
"version": "5.1.0", | ||
"version": "6.0.0", | ||
"author": "entropitor", | ||
@@ -6,0 +6,0 @@ "bin": { |
@@ -40,3 +40,3 @@ # dotenv-cli | ||
### Cascading env variables | ||
Some applications load from `.env`, `.env.local`, `.env.development` and `.env.development.local` | ||
Some applications load from `.env`, `.env.development`, `.env.local`, and `.env.development.local` | ||
(see [#37](https://github.com/entropitor/dotenv-cli/issues/37) for more information). | ||
@@ -43,0 +43,0 @@ `dotenv-cli` supports this using the `-c` flag for just `.env` and `.env.local` and `-c development` for the ones above. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8191