@envpilot/cli 1.17.0 → 1.19.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/LICENSE +19 -6
- package/README.md +35 -12
- package/dist/{app-7IL7GWIN.js → app-VAJPLVBA.js} +1 -1
- package/dist/{chunk-VEZRLJGM.js → chunk-WLHMHDPX.js} +935 -120
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
MIT License
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
reproduced, distributed, or transmitted in any form or by any means without the
|
|
5
|
-
prior written permission of Envpilot.
|
|
3
|
+
Copyright (c) 2026 Syntax Lab Technology and Rafay
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -59,26 +59,49 @@ The TUI returns after each command finishes, so you can run multiple commands in
|
|
|
59
59
|
|
|
60
60
|
### Syncing Variables
|
|
61
61
|
|
|
62
|
-
| Command
|
|
63
|
-
|
|
|
64
|
-
| `envpilot pull [options]`
|
|
65
|
-
| `envpilot push [options]`
|
|
62
|
+
| Command | Description |
|
|
63
|
+
| ----------------------------- | ---------------------------------------------------------------- |
|
|
64
|
+
| `envpilot pull [options]` | Pull variables into a local `.env` file |
|
|
65
|
+
| `envpilot push [options]` | Push local `.env` changes to Envpilot |
|
|
66
|
+
| `envpilot secrets set [key]` | Set ONE secret — key first, value prompted masked (alias: `var`) |
|
|
67
|
+
| `envpilot secrets rm <key>` | Delete one secret (env-scoped for shared variables) |
|
|
68
|
+
| `envpilot diff <envA> <envB>` | Compare variable keys between two environments |
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
envpilot secrets set # guided: key → masked value → sensitive?
|
|
72
|
+
envpilot secrets set STRIPE_KEY -e production
|
|
73
|
+
envpilot secrets set API_URL=https://api.example.com # CI only — lands in shell history
|
|
74
|
+
envpilot secrets rm OLD_FLAG --yes
|
|
75
|
+
envpilot diff staging production # keys only (no decryption)
|
|
76
|
+
envpilot diff staging production --values # also compare values
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
`secrets set` is role-aware: if your role can't write directly, the same
|
|
80
|
+
flow files a variable request for review instead of rejecting you. Updating
|
|
81
|
+
or deleting a value shared across environments asks for explicit
|
|
82
|
+
confirmation and only detaches the selected environment on `rm`.
|
|
66
83
|
|
|
67
84
|
### Variable Requests
|
|
68
85
|
|
|
69
86
|
Developers don't have direct write access — instead they submit a request,
|
|
70
|
-
and an owner, project manager, or team lead reviews it
|
|
71
|
-
|
|
87
|
+
and an owner, project manager, or team lead reviews it from the terminal or
|
|
88
|
+
the dashboard.
|
|
72
89
|
|
|
73
|
-
| Command
|
|
74
|
-
|
|
|
75
|
-
| `envpilot request [options]`
|
|
76
|
-
| `envpilot requests [options]`
|
|
90
|
+
| Command | Description |
|
|
91
|
+
| -------------------------------- | ---------------------------------------------------------------------- |
|
|
92
|
+
| `envpilot request [options]` | Request a new variable (interactive: key, value, environments) |
|
|
93
|
+
| `envpilot requests [options]` | List variable requests for the linked project with their review status |
|
|
94
|
+
| `envpilot requests approve <id>` | Approve a pending request (machine requests prompt masked for a value) |
|
|
95
|
+
| `envpilot requests reject <id>` | Reject a pending request (`--reason` shown to the requester) |
|
|
96
|
+
| `envpilot requests cancel <id>` | Cancel a pending request (your own, or as a reviewer) |
|
|
77
97
|
|
|
78
98
|
```bash
|
|
79
99
|
envpilot request # guided prompt: key → value → description → environments
|
|
80
|
-
envpilot requests # all requests for the linked project
|
|
81
|
-
envpilot requests --status pending
|
|
100
|
+
envpilot requests # all requests for the linked project (ID column for review)
|
|
101
|
+
envpilot requests --status pending --json
|
|
102
|
+
envpilot requests approve k5738… # valueless machine request → masked value prompt
|
|
103
|
+
printf %s "$SECRET" | envpilot requests approve k5738… --value-stdin # CI-safe
|
|
104
|
+
envpilot requests reject k5738… --reason "use the shared key"
|
|
82
105
|
```
|
|
83
106
|
|
|
84
107
|
Environment choices are limited to the environments you have access to —
|