@dotenvx/dotenvx 1.51.4 → 1.52.0
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 +50 -41
- package/package.json +1 -1
- package/src/lib/helpers/executeDynamic.js +0 -3
- package/src/lib/main.js +6 -0
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.
|
|
5
|
+
[Unreleased](https://github.com/dotenvx/dotenvx/compare/v1.52.0...main)
|
|
6
|
+
|
|
7
|
+
## [1.52.0](https://github.com/dotenvx/dotenvx/compare/v1.51.4...v1.52.0) (2026-01-22)
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
* Pass log level options to `main.set` ([#731](https://github.com/dotenvx/dotenvx/pull/731))
|
|
6
12
|
|
|
7
13
|
## [1.51.4](https://github.com/dotenvx/dotenvx/compare/v1.51.3...v1.51.4) (2025-12-29)
|
|
8
14
|
|
package/README.md
CHANGED
|
@@ -2568,6 +2568,17 @@ const dotenvx = require('@dotenvx/dotenvx')
|
|
|
2568
2568
|
dotenvx.set('HELLO', 'World', { path: '.env' })
|
|
2569
2569
|
```
|
|
2570
2570
|
|
|
2571
|
+
</details>
|
|
2572
|
+
<details><summary>`set(KEY, value, {plain:})`</summary><br>
|
|
2573
|
+
|
|
2574
|
+
Programmatically set a plaintext environment variable.
|
|
2575
|
+
|
|
2576
|
+
```js
|
|
2577
|
+
// index.js
|
|
2578
|
+
const dotenvx = require('@dotenvx/dotenvx')
|
|
2579
|
+
dotenvx.set('HELLO', 'World', { plain: true })
|
|
2580
|
+
```
|
|
2581
|
+
|
|
2571
2582
|
</details>
|
|
2572
2583
|
<details><summary>`get(KEY)` - <i>Decryption at Access</i></summary><br>
|
|
2573
2584
|
|
|
@@ -2590,44 +2601,40 @@ This is known as *Decryption at Access* and is written about in [the whitepaper]
|
|
|
2590
2601
|
|
|
2591
2602
|
[](https://dotenvx.com/ops)
|
|
2592
2603
|
|
|
2593
|
-
|
|
2604
|
+
*production grade dotenvx*–with operational primitives.
|
|
2594
2605
|
|
|
2595
|
-
|
|
2606
|
+
> As dotenvx spreads inside companies, we're learning—through enterprise engagements—that dotenvx is missing an operations layer.
|
|
2607
|
+
>
|
|
2608
|
+
> Dotenvx Ops is our answer.
|
|
2609
|
+
>
|
|
2610
|
+
> It's production grade dotenvx–with operational primitives for teams, infrastructure, and agents. Private key management, access controls, and more.
|
|
2596
2611
|
|
|
2597
|
-
###
|
|
2612
|
+
### Quickstart
|
|
2598
2613
|
|
|
2599
|
-
|
|
2614
|
+
Install it and gain `ops` commands.
|
|
2600
2615
|
|
|
2601
2616
|
```sh
|
|
2602
2617
|
$ curl -sfS https://dotenvx.sh/ops | sh
|
|
2618
|
+
$ dotenvx ops backup
|
|
2619
|
+
✔ backed up [username/project]
|
|
2620
|
+
⮕ next run [dotenvx-ops open] to view
|
|
2603
2621
|
```
|
|
2604
2622
|
|
|
2605
|
-
|
|
2623
|
+
### CLI
|
|
2606
2624
|
|
|
2607
|
-
|
|
2608
|
-
$ dotenvx-ops login
|
|
2609
|
-
✔ logged in [username]
|
|
2610
|
-
```
|
|
2625
|
+
<details><summary>`ops backup`</summary><br>
|
|
2611
2626
|
|
|
2612
|
-
|
|
2627
|
+
Back up .env.keys.
|
|
2613
2628
|
|
|
2614
2629
|
```sh
|
|
2615
|
-
$ dotenvx
|
|
2616
|
-
|
|
2617
|
-
[dotenvx@1.0.0] injecting env (1) from .env
|
|
2630
|
+
$ dotenvx-ops backup
|
|
2631
|
+
✔ backed up [username/project]
|
|
2618
2632
|
```
|
|
2619
2633
|
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
### UI
|
|
2623
|
-
|
|
2624
|
-

|
|
2625
|
-
|
|
2626
|
-
### CLI
|
|
2627
|
-
|
|
2628
|
-
<details><summary>`login`</summary><br>
|
|
2634
|
+
</details>
|
|
2635
|
+
<details><summary>`ops login`</summary><br>
|
|
2629
2636
|
|
|
2630
|
-
Log in
|
|
2637
|
+
Log in.
|
|
2631
2638
|
|
|
2632
2639
|
```sh
|
|
2633
2640
|
$ dotenvx-ops login
|
|
@@ -2637,25 +2644,15 @@ press Enter to open [https://ops.dotenvx.com/login/device] and enter code [D9C1-
|
|
|
2637
2644
|
```
|
|
2638
2645
|
|
|
2639
2646
|
</details>
|
|
2640
|
-
<details><summary>`logout`</summary><br>
|
|
2647
|
+
<details><summary>`ops logout`</summary><br>
|
|
2641
2648
|
|
|
2642
|
-
Log out
|
|
2649
|
+
Log out.
|
|
2643
2650
|
|
|
2644
2651
|
```sh
|
|
2645
|
-
$ dotenvx
|
|
2652
|
+
$ dotenvx ops logout
|
|
2646
2653
|
✔ logged out [username] from this device and revoked token [dxo_5ZrwRXV…]
|
|
2647
2654
|
```
|
|
2648
2655
|
|
|
2649
|
-
</details>
|
|
2650
|
-
<details><summary>`status`</summary><br>
|
|
2651
|
-
|
|
2652
|
-
Check current status of [Ops](https://dotenvx.com/ops) - `on` or `off` (logged in or out).
|
|
2653
|
-
|
|
2654
|
-
```sh
|
|
2655
|
-
$ dotenvx-ops status
|
|
2656
|
-
on
|
|
2657
|
-
```
|
|
2658
|
-
|
|
2659
2656
|
</details>
|
|
2660
2657
|
<details><summary>`settings`</summary><br>
|
|
2661
2658
|
|
|
@@ -2668,13 +2665,25 @@ Usage: dotenvx-ops settings [options] [command]
|
|
|
2668
2665
|
⚙️ settings
|
|
2669
2666
|
|
|
2670
2667
|
Options:
|
|
2671
|
-
-h, --help
|
|
2668
|
+
-h, --help display help for command
|
|
2672
2669
|
|
|
2673
2670
|
Commands:
|
|
2674
|
-
username
|
|
2675
|
-
token [options]
|
|
2676
|
-
|
|
2677
|
-
|
|
2671
|
+
username print your username
|
|
2672
|
+
token [options] print your access token (--unmask)
|
|
2673
|
+
device [options] print your device pubkey (--unmask)
|
|
2674
|
+
hostname print hostname
|
|
2675
|
+
path print path to settings file
|
|
2676
|
+
help [command] display help for command
|
|
2677
|
+
```
|
|
2678
|
+
|
|
2679
|
+
</details>
|
|
2680
|
+
<details><summary>`ops status`</summary><br>
|
|
2681
|
+
|
|
2682
|
+
Check current status of [Ops](https://dotenvx.com/ops) - `on` or `off` (logged in or out).
|
|
2683
|
+
|
|
2684
|
+
```sh
|
|
2685
|
+
$ dotenvx ops status
|
|
2686
|
+
on
|
|
2678
2687
|
```
|
|
2679
2688
|
|
|
2680
2689
|
</details>
|
package/package.json
CHANGED
|
@@ -40,9 +40,6 @@ function executeDynamic (program, command, rawArgs) {
|
|
|
40
40
|
| ░▒▓██████▓▒░░▒▓█▓▒░ ░▒▓███████▓▒░ |
|
|
41
41
|
| |
|
|
42
42
|
| Learn more at https://dotenvx.com/ops |
|
|
43
|
-
| |
|
|
44
|
-
| --------------------------------------------------------------------- |
|
|
45
|
-
| - thank you for using dotenvx! - @motdotla |
|
|
46
43
|
|_______________________________________________________________________|`
|
|
47
44
|
|
|
48
45
|
console.log(ops)
|
package/src/lib/main.js
CHANGED
|
@@ -188,6 +188,12 @@ const set = function (key, value, options = {}) {
|
|
|
188
188
|
encrypt = false
|
|
189
189
|
}
|
|
190
190
|
|
|
191
|
+
if (options) {
|
|
192
|
+
setLogLevel(options)
|
|
193
|
+
setLogName(options)
|
|
194
|
+
setLogVersion(options)
|
|
195
|
+
}
|
|
196
|
+
|
|
191
197
|
const envs = buildEnvs(options)
|
|
192
198
|
const envKeysFilepath = options.envKeysFile
|
|
193
199
|
|