@dotenvx/dotenvx 1.45.1 β 1.45.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -1
- package/README.md +28 -123
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
-
[Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.45.
|
|
5
|
+
[Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.45.2...main)
|
|
6
|
+
|
|
7
|
+
## 1.45.2
|
|
8
|
+
|
|
9
|
+
## Changed
|
|
10
|
+
|
|
11
|
+
* Minor README updates
|
|
6
12
|
|
|
7
13
|
## 1.45.1
|
|
8
14
|
|
package/README.md
CHANGED
|
@@ -2234,10 +2234,37 @@ Use dotenvx directly in code.
|
|
|
2234
2234
|
Hello World
|
|
2235
2235
|
```
|
|
2236
2236
|
|
|
2237
|
+
</details>
|
|
2238
|
+
* <details><summary>`config(quiet: true)` - quiet</summary><br>
|
|
2239
|
+
|
|
2240
|
+
Suppress all output (except errors).
|
|
2241
|
+
|
|
2242
|
+
```ini
|
|
2243
|
+
# .env
|
|
2244
|
+
HELLO="World"
|
|
2245
|
+
```
|
|
2246
|
+
|
|
2247
|
+
```js
|
|
2248
|
+
// index.js
|
|
2249
|
+
require('@dotenvx/dotenvx').config({path: ['.env.missing', '.env'], quiet: true})
|
|
2250
|
+
|
|
2251
|
+
// esm
|
|
2252
|
+
// import dotenvx from "@dotenvx/dotenvx";
|
|
2253
|
+
// dotenvx.config({path: ['.env.missing', '.env'], quiet: true});
|
|
2254
|
+
|
|
2255
|
+
console.log(`Hello ${process.env.HELLO}`)
|
|
2256
|
+
```
|
|
2257
|
+
|
|
2258
|
+
```sh
|
|
2259
|
+
$ node index.js
|
|
2260
|
+
Error: [MISSING_ENV_FILE] missing .env.missing file (/path/to/.env.missing)
|
|
2261
|
+
Hello World
|
|
2262
|
+
```
|
|
2263
|
+
|
|
2237
2264
|
</details>
|
|
2238
2265
|
* <details><summary>`config(strict: true)` - strict</summary><br>
|
|
2239
2266
|
|
|
2240
|
-
|
|
2267
|
+
Exit with code `1` if any errors are encountered - like a missing .env file or decryption failure.
|
|
2241
2268
|
|
|
2242
2269
|
```ini
|
|
2243
2270
|
# .env
|
|
@@ -2382,128 +2409,6 @@ Use dotenvx directly in code.
|
|
|
2382
2409
|
|
|
2383
2410
|
</details>
|
|
2384
2411
|
|
|
2385
|
-
### Pro π
|
|
2386
|
-
|
|
2387
|
-
> Dotenvx Pro is a commercial extension for [dotenvx](https://github.com/dotenvx/dotenvx).
|
|
2388
|
-
|
|
2389
|
-
*Secrets Manager for Env Files.*
|
|
2390
|
-
|
|
2391
|
-
* <details><summary>`pro keypair`</summary><br>
|
|
2392
|
-
|
|
2393
|
-
Print fully managed public/private keys for `.env` file.
|
|
2394
|
-
|
|
2395
|
-
```sh
|
|
2396
|
-
$ echo "HELLO=World" > .env
|
|
2397
|
-
$ dotenvx encrypt
|
|
2398
|
-
|
|
2399
|
-
$ dotenvx pro push
|
|
2400
|
-
|
|
2401
|
-
$ dotenvx pro keypair
|
|
2402
|
-
{"DOTENV_PUBLIC_KEY":"<publicKey>","DOTENV_PRIVATE_KEY":"<privateKey>"}
|
|
2403
|
-
```
|
|
2404
|
-
|
|
2405
|
-
</details>
|
|
2406
|
-
* <details><summary>`pro keypair -f`</summary><br>
|
|
2407
|
-
|
|
2408
|
-
Print fully managed public/private keys for `.env.production` file.
|
|
2409
|
-
|
|
2410
|
-
```sh
|
|
2411
|
-
$ echo "HELLO=Production" > .env.production
|
|
2412
|
-
$ dotenvx encrypt -f .env.production
|
|
2413
|
-
|
|
2414
|
-
$ dotenvx pro push
|
|
2415
|
-
|
|
2416
|
-
$ dotenvx pro keypair -f .env.production
|
|
2417
|
-
{"DOTENV_PUBLIC_KEY_PRODUCTION":"<publicKey>","DOTENV_PRIVATE_KEY_PRODUCTION":"<privateKey>"}
|
|
2418
|
-
```
|
|
2419
|
-
|
|
2420
|
-
</details>
|
|
2421
|
-
* <details><summary>`pro keypair DOTENV_PRIVATE_KEY`</summary><br>
|
|
2422
|
-
|
|
2423
|
-
Print specific fully managed keypair for `.env` file.
|
|
2424
|
-
|
|
2425
|
-
```sh
|
|
2426
|
-
$ echo "HELLO=World" > .env
|
|
2427
|
-
$ dotenvx encrypt
|
|
2428
|
-
|
|
2429
|
-
$ dotenvx pro push
|
|
2430
|
-
|
|
2431
|
-
$ dotenvx pro keypair DOTENV_PRIVATE_KEY
|
|
2432
|
-
<privateKey>
|
|
2433
|
-
```
|
|
2434
|
-
|
|
2435
|
-
</details>
|
|
2436
|
-
* <details><summary>`pro settings org`</summary><br>
|
|
2437
|
-
|
|
2438
|
-
Print organization.
|
|
2439
|
-
|
|
2440
|
-
```sh
|
|
2441
|
-
$ dotenvx pro settings org
|
|
2442
|
-
motdotla
|
|
2443
|
-
```
|
|
2444
|
-
|
|
2445
|
-
</details>
|
|
2446
|
-
* <details><summary>`pro settings orgpublickey`</summary><br>
|
|
2447
|
-
|
|
2448
|
-
Print organization public keyβused for encrypting project private keys.
|
|
2449
|
-
|
|
2450
|
-
```sh
|
|
2451
|
-
$ dotenvx pro settings orgpublickey
|
|
2452
|
-
02761eccd2a442ebbfa14ac2e72762d885a1e96b8949428deea62db305947d6408
|
|
2453
|
-
```
|
|
2454
|
-
|
|
2455
|
-
</details>
|
|
2456
|
-
* <details><summary>`pro settings orgprivatekey`</summary><br>
|
|
2457
|
-
|
|
2458
|
-
Print masked organization private keyβused for decrypting project private keys.
|
|
2459
|
-
|
|
2460
|
-
```sh
|
|
2461
|
-
$ dotenvx pro settings orgprivatekey
|
|
2462
|
-
322c004*********************************************************
|
|
2463
|
-
```
|
|
2464
|
-
|
|
2465
|
-
</details>
|
|
2466
|
-
* <details><summary>`pro settings orgprivatekey --unmask`</summary><br>
|
|
2467
|
-
|
|
2468
|
-
Print unmasked organization private keyβused for decrypting project private keys.
|
|
2469
|
-
|
|
2470
|
-
```sh
|
|
2471
|
-
$ dotenvx pro settings orgprivatekey --unmask
|
|
2472
|
-
322c004271ac6ad1b548df3f316ff4e8f08e17e0b15f459db64f3f3b48b0efb7
|
|
2473
|
-
```
|
|
2474
|
-
|
|
2475
|
-
</details>
|
|
2476
|
-
* <details><summary>`pro settings orgteam`</summary><br>
|
|
2477
|
-
|
|
2478
|
-
Print team status in tabular format.
|
|
2479
|
-
|
|
2480
|
-
```sh
|
|
2481
|
-
$ dotenvx pro settings orgteam
|
|
2482
|
-
βββββββββββββ€βββββββββ
|
|
2483
|
-
β username β synced β
|
|
2484
|
-
βββββββββββββΌβββββββββ’
|
|
2485
|
-
β motdotla β β β
|
|
2486
|
-
βββββββββββββΌβββββββββ’
|
|
2487
|
-
β motdotenv β β β
|
|
2488
|
-
βββββββββββββ§βββββββββ
|
|
2489
|
-
```
|
|
2490
|
-
|
|
2491
|
-
</details>
|
|
2492
|
-
* <details><summary>`pro settings storetree`</summary><br>
|
|
2493
|
-
|
|
2494
|
-
Print encrypted store treeβbacking your dotenvx pro installation.
|
|
2495
|
-
|
|
2496
|
-
```sh
|
|
2497
|
-
$ dotenvx pro settings storetree
|
|
2498
|
-
ββ .env
|
|
2499
|
-
ββ pro.dotenvx.com
|
|
2500
|
-
ββ user-1-organization-1.json
|
|
2501
|
-
ββ user-1-private-key.json
|
|
2502
|
-
ββ user-1.json
|
|
2503
|
-
```
|
|
2504
|
-
|
|
2505
|
-
</details>
|
|
2506
|
-
|
|
2507
2412
|
|
|
2508
2413
|
|
|
2509
2414
|
## Whitepaper
|
package/package.json
CHANGED