@dotenvx/dotenvx
Advanced tools
Comparing version 1.32.0 to 1.32.1
@@ -5,4 +5,10 @@ # Changelog | ||
[Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.32.0...main) | ||
[Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.32.1...main) | ||
## [1.32.1](https://github.com/dotenvx/dotenvx/compare/v1.32.0...v1.32.1) | ||
### Changed | ||
* remove duplicated help messages ([#504](https://github.com/dotenvx/dotenvx/pull/504)) | ||
## [1.32.0](https://github.com/dotenvx/dotenvx/compare/v1.31.3...v1.32.0) | ||
@@ -9,0 +15,0 @@ |
{ | ||
"version": "1.32.0", | ||
"version": "1.32.1", | ||
"name": "@dotenvx/dotenvx", | ||
@@ -4,0 +4,0 @@ "description": "a better dotenvโfrom the creator of `dotenv`", |
@@ -83,3 +83,3 @@ [![dotenvx](https://dotenvx.com/better-banner.png)](https://dotenvx.com) | ||
<details><summary>or with windows ๐ช</summary><br> | ||
<details><summary>or windows ๐ช</summary><br> | ||
@@ -431,3 +431,3 @@ ```sh | ||
[dotenvx][info] loading env (1) from .env | ||
[dotenvx@1.X.X] injecting env (1) from .env.production | ||
Hello World | ||
@@ -509,3 +509,3 @@ ``` | ||
$ dotenvx run -f .env.production -- node index.js | ||
[dotenvx][info] loading env (1) from .env.production | ||
[dotenvx@1.X.X] injecting env (1) from .env.production | ||
Hello production | ||
@@ -525,3 +525,3 @@ > ^^ | ||
$ dotenvx run -f .env.local -f .env -- node index.js | ||
[dotenvx][info] loading env (1) from .env.local,.env | ||
[dotenvx@1.X.X] injecting env (1) from .env.local,.env | ||
Hello local | ||
@@ -540,3 +540,3 @@ ``` | ||
$ dotenvx run -f .env.local -f .env --overload -- node index.js | ||
[dotenvx][info] loading env (1) from .env.local,.env | ||
[dotenvx@1.X.X] injecting env (1) from .env.local,.env | ||
Hello World | ||
@@ -553,3 +553,3 @@ ``` | ||
[dotenvx][verbose] HELLO set | ||
[dotenvx][info] loading env (1) from .env.production | ||
[dotenvx@1.X.X] injecting env (1) from .env.production | ||
Hello production | ||
@@ -573,3 +573,3 @@ ``` | ||
[dotenvx][debug] HELLO set to production | ||
[dotenvx][info] loading env (1) from .env.production | ||
[dotenvx@1.X.X] injecting env (1) from .env.production | ||
Hello production | ||
@@ -648,3 +648,3 @@ ``` | ||
$ dotenvx run -- node index.js | ||
[dotenvx] injecting env (2) from .env | ||
[dotenvx@1.X.X] injecting env (2) from .env | ||
Hello World | ||
@@ -662,3 +662,3 @@ ``` | ||
$ DOTENV_PRIVATE_KEY_PRODUCTION="<.env.production private key>" dotenvx run -- node index.js | ||
[dotenvx] injecting env (2) from .env.production | ||
[dotenvx@1.X.X] injecting env (2) from .env.production | ||
Hello Production | ||
@@ -678,3 +678,3 @@ ``` | ||
$ DOTENV_PRIVATE_KEY_CI="<.env.ci private key>" dotenvx run -- node index.js | ||
[dotenvx] injecting env (2) from .env.ci | ||
[dotenvx@1.X.X] injecting env (2) from .env.ci | ||
Hello Ci | ||
@@ -694,3 +694,3 @@ ``` | ||
$ DOTENV_PRIVATE_KEY="<.env private key>" DOTENV_PRIVATE_KEY_PRODUCTION="<.env.production private key>" dotenvx run -- node index.js | ||
[dotenvx] injecting env (3) from .env, .env.production | ||
[dotenvx@1.X.X] injecting env (3) from .env, .env.production | ||
Hello World | ||
@@ -712,7 +712,7 @@ ``` | ||
$ DOTENV_PRIVATE_KEY_CI="<app1/privat ci key>,<app2/private ci key>" dotenvx run -f app1/.env.ci -f app2/.env.ci -- node index.js | ||
[dotenvx] injecting env (2) from app1/.env.ci,app2/.env.ci | ||
[dotenvx@1.X.X] injecting env (2) from app1/.env.ci,app2/.env.ci | ||
Hello app1 | ||
$ DOTENV_PRIVATE_KEY_CI="<app1/privat ci key>,<app2/private ci key>" dotenvx run -f app1/.env.ci -f app2/.env.ci --overload -- node index.js | ||
[dotenvx] injecting env (2) from app1/.env.ci,app2/.env.ci | ||
[dotenvx@1.X.X] injecting env (2) from app1/.env.ci,app2/.env.ci | ||
Hello app2 | ||
@@ -764,3 +764,3 @@ ``` | ||
$ dotenvx run --debug -- node index.js | ||
[dotenvx] injecting env (2) from .env | ||
[dotenvx@1.X.X] injecting env (2) from .env | ||
DATABASE_URL postgres://username@localhost/my_database | ||
@@ -784,3 +784,3 @@ ``` | ||
$ dotenvx run --debug -- node index.js | ||
[dotenvx] injecting env (1) from .env | ||
[dotenvx@1.X.X] injecting env (1) from .env | ||
DATABASE_URL postgres://yourusername@localhost/my_database | ||
@@ -810,3 +810,3 @@ ``` | ||
$ dotenvx run -f .env.local -f .env -- node index.js | ||
[dotenvx] injecting env (1) from .env.local, .env | ||
[dotenvx@1.X.X] injecting env (1) from .env.local, .env | ||
Hello local | ||
@@ -825,3 +825,3 @@ ``` | ||
$ dotenvx run --env HELLO=String -f .env -- node index.js | ||
[dotenvx] injecting env (1) from .env, and --env flag | ||
[dotenvx@1.X.X] injecting env (1) from .env, and --env flag | ||
Hello String | ||
@@ -841,3 +841,3 @@ ``` | ||
$ dotenvx run -f .env.local -f .env --overload -- node index.js | ||
[dotenvx] injecting env (1) from .env.local, .env | ||
[dotenvx@1.X.X] injecting env (1) from .env.local, .env | ||
Hello World | ||
@@ -858,3 +858,3 @@ ``` | ||
$ DOTENV_PRIVATE_KEY="122...0b8" dotenvx run -- node index.js | ||
[dotenvx] injecting env (2) from .env | ||
[dotenvx@1.X.X] injecting env (2) from .env | ||
Hello encrypted | ||
@@ -875,3 +875,3 @@ ``` | ||
$ DOTENV_PRIVATE_KEY_PRODUCTION="122...0b8" dotenvx run -- node index.js | ||
[dotenvx] injecting env (2) from .env.production | ||
[dotenvx@1.X.X] injecting env (2) from .env.production | ||
Hello production encrypted | ||
@@ -894,3 +894,3 @@ ``` | ||
$ DOTENV_PRIVATE_KEY_CI="122...0b8" dotenvx run -- node index.js | ||
[dotenvx] injecting env (2) from .env.ci | ||
[dotenvx@1.X.X] injecting env (2) from .env.ci | ||
Hello ci encrypted | ||
@@ -915,7 +915,7 @@ ``` | ||
$ DOTENV_PRIVATE_KEY="122...0b8" DOTENV_PRIVATE_KEY_PRODUCTION="122...0b8" dotenvx run -- node index.js | ||
[dotenvx] injecting env (3) from .env, .env.production | ||
[dotenvx@1.X.X] injecting env (3) from .env, .env.production | ||
Hello encrypted | ||
$ DOTENV_PRIVATE_KEY_PRODUCTION="122...0b8" DOTENV_PRIVATE_KEY="122...0b8" dotenvx run -- node index.js | ||
[dotenvx] injecting env (3) from .env.production, .env | ||
[dotenvx@1.X.X] injecting env (3) from .env.production, .env | ||
Hello production encrypted | ||
@@ -938,3 +938,3 @@ ``` | ||
HELLO set | ||
[dotenvx] injecting env (1) from .env.production | ||
[dotenvx@1.X.X] injecting env (1) from .env.production | ||
Hello production | ||
@@ -959,3 +959,3 @@ ``` | ||
HELLO set to production | ||
[dotenvx] injecting env (1) from .env.production | ||
[dotenvx@1.X.X] injecting env (1) from .env.production | ||
executing process command [node index.js] | ||
@@ -1034,3 +1034,3 @@ expanding process command to [/opt/homebrew/bin/node index.js] | ||
$ dotenvx run --convention=nextjs -- node index.js | ||
[dotenvx] injecting env (1) from .env.development.local, .env.local, .env.development, .env | ||
[dotenvx@1.X.X] injecting env (1) from .env.development.local, .env.local, .env.development, .env | ||
Hello development local | ||
@@ -1763,3 +1763,3 @@ ``` | ||
$ dotenvx run -- node index.js | ||
[dotenvx] injecting env (1) from .env | ||
[dotenvx@1.X.X] injecting env (1) from .env | ||
Hello World | ||
@@ -1933,3 +1933,3 @@ ``` | ||
$ node index.js | ||
[dotenvx@1.24.5] injecting env (1) from .env | ||
[dotenvx@1.X.X] injecting env (1) from .env | ||
Hello World | ||
@@ -1964,3 +1964,3 @@ ``` | ||
$ node index.js | ||
[dotenvx@1.24.5] injecting env (1) from .env.local, .env | ||
[dotenvx@1.X.X] injecting env (1) from .env.local, .env | ||
Hello Me | ||
@@ -1993,3 +1993,3 @@ ``` | ||
$ node index.js | ||
[dotenvx@1.24.5] injecting env (1) from .env.local, .env | ||
[dotenvx@1.X.X] injecting env (1) from .env.local, .env | ||
Hello World | ||
@@ -2039,3 +2039,3 @@ ``` | ||
$ node index.js | ||
[dotenvx@1.24.5] injecting env (1) from .env.local, .env | ||
[dotenvx@1.X.X] injecting env (1) from .env | ||
Hello World | ||
@@ -2042,0 +2042,0 @@ ``` |
@@ -62,3 +62,3 @@ #!/usr/bin/env node | ||
.option('-o, --overload', 'override existing env variables') | ||
.option('--strict', 'process.exit(1) on any errors (default: false)', false) | ||
.option('--strict', 'process.exit(1) on any errors', false) | ||
.option('--convention <name>', 'load a .env convention (available conventions: [\'nextjs\'])') | ||
@@ -82,3 +82,3 @@ .option('--ignore <errorCodes...>', 'error code(s) to ignore (example: --ignore=MISSING_ENV_FILE)') | ||
.option('-o, --overload', 'override existing env variables') | ||
.option('--strict', 'process.exit(1) on any errors (default: false)', false) | ||
.option('--strict', 'process.exit(1) on any errors', false) | ||
.option('--convention <name>', 'load a .env convention (available conventions: [\'nextjs\'])') | ||
@@ -105,3 +105,3 @@ .option('--ignore <errorCodes...>', 'error code(s) to ignore (example: --ignore=MISSING_ENV_FILE)') | ||
.option('-fk, --env-keys-file <path>', 'path to your .env.keys file (default: same path as your env file)') | ||
.option('-c, --encrypt', 'encrypt value (default: true)', true) | ||
.option('-c, --encrypt', 'encrypt value', true) | ||
.option('-p, --plain', 'store value as plain text', false) | ||
@@ -108,0 +108,0 @@ .action(function (...args) { |
243967
146