@evnx/cli 0.3.5 → 0.3.8
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/README.md +45 -14
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
[](https://pypi.org/project/evnx/)
|
|
7
7
|
[](https://www.npmjs.com/package/@evnx/cli)
|
|
8
8
|
[](https://opensource.org/licenses/MIT)
|
|
9
|
+
[](https://github.com/marketplace/actions/evnx-env-security-validation)
|
|
9
10
|
|
|
10
11
|
A CLI tool for managing `.env` files — validation, secret scanning, format conversion, and migration to cloud secret managers.
|
|
11
12
|
|
|
@@ -17,6 +18,12 @@ A CLI tool for managing `.env` files — validation, secret scanning, format con
|
|
|
17
18
|
|
|
18
19
|
Accidentally committing secrets to version control is one of the most common and costly developer mistakes. evnx is a local-first tool that catches misconfigurations, detects credential leaks, and converts environment files to the format each deployment target expects — before anything reaches CI or production.
|
|
19
20
|
|
|
21
|
+
---
|
|
22
|
+
## Testing & playground
|
|
23
|
+
|
|
24
|
+
→ [urwithajit9/evnx-test](https://github.com/urwithajit9/evnx-test) —
|
|
25
|
+
try evnx in your browser via GitHub Actions, no installation required.
|
|
26
|
+
|
|
20
27
|
---
|
|
21
28
|
|
|
22
29
|
## Installation
|
|
@@ -40,6 +47,7 @@ npm install -g @evnx/cli
|
|
|
40
47
|
```
|
|
41
48
|
|
|
42
49
|
### pipx (recommended for Python environments)
|
|
50
|
+
|
|
43
51
|
```bash
|
|
44
52
|
pipx install evnx
|
|
45
53
|
```
|
|
@@ -97,6 +105,21 @@ cargo install evnx --all-features
|
|
|
97
105
|
|
|
98
106
|
### Windows
|
|
99
107
|
|
|
108
|
+
#### Scoop (user-local, no admin required)
|
|
109
|
+
|
|
110
|
+
```powershell
|
|
111
|
+
scoop bucket add evnx https://github.com/urwithajit9/scoop-evnx
|
|
112
|
+
scoop install evnx
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
#### Winget (system-wide)
|
|
116
|
+
|
|
117
|
+
```powershell
|
|
118
|
+
winget install urwithajit9.evnx
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
#### Cargo (Windows)
|
|
122
|
+
|
|
100
123
|
Install [Rust](https://rustup.rs/) first, then:
|
|
101
124
|
|
|
102
125
|
```powershell
|
|
@@ -361,26 +384,34 @@ validate-env:
|
|
|
361
384
|
sast: scan.sarif
|
|
362
385
|
```
|
|
363
386
|
|
|
364
|
-
|
|
387
|
+
## pre-commit / prek Integration
|
|
388
|
+
|
|
389
|
+
Use evnx as automatic git hooks via [pre-commit](https://pre-commit.com)
|
|
390
|
+
or [prek](https://prek.j178.dev) — no manual evnx install needed.
|
|
391
|
+
The binary is compiled and cached automatically on first run.
|
|
392
|
+
|
|
393
|
+
Add to `.pre-commit-config.yaml`:
|
|
365
394
|
|
|
366
395
|
```yaml
|
|
367
|
-
|
|
396
|
+
default_install_hook_types: [pre-commit, pre-push]
|
|
397
|
+
|
|
368
398
|
repos:
|
|
369
|
-
- repo:
|
|
399
|
+
- repo: https://github.com/urwithajit9/evnx
|
|
400
|
+
rev: v0.3.6
|
|
370
401
|
hooks:
|
|
371
|
-
- id: evnx-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
pass_filenames: false
|
|
376
|
-
|
|
377
|
-
- id: evnx-scan
|
|
378
|
-
name: Scan for secrets
|
|
379
|
-
entry: evnx scan --exit-zero
|
|
380
|
-
language: system
|
|
381
|
-
pass_filenames: false
|
|
402
|
+
- id: evnx-scan # blocks commit if secrets found
|
|
403
|
+
- id: evnx-validate # blocks commit if .env misconfigured
|
|
404
|
+
- id: evnx-diff # warns on .env/.env.example drift
|
|
405
|
+
- id: evnx-scan-push # strict scan on push
|
|
382
406
|
```
|
|
383
407
|
|
|
408
|
+
Then install:
|
|
409
|
+
```bash
|
|
410
|
+
pre-commit install # or: prek install
|
|
411
|
+
```
|
|
412
|
+
|
|
413
|
+
That's it. On your next commit, hooks will auto-compile and run.
|
|
414
|
+
|
|
384
415
|
---
|
|
385
416
|
|
|
386
417
|
## Configuration
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evnx/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"description": "CLI tool for managing .env files — validation, secret scanning, format conversion",
|
|
5
5
|
"keywords": ["dotenv", "env", "secrets", "cli", "security", "devtools", "environment"],
|
|
6
6
|
"author": "Ajit Kumar <support@evnx.dev>",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"postinstall": "node install.js"
|
|
21
21
|
},
|
|
22
22
|
"optionalDependencies": {
|
|
23
|
-
"@evnx/evnx-linux-x64": "0.3.
|
|
24
|
-
"@evnx/evnx-linux-arm64": "0.3.
|
|
25
|
-
"@evnx/evnx-darwin-x64": "0.3.
|
|
26
|
-
"@evnx/evnx-darwin-arm64": "0.3.
|
|
27
|
-
"@evnx/evnx-win32-x64": "0.3.
|
|
23
|
+
"@evnx/evnx-linux-x64": "0.3.8",
|
|
24
|
+
"@evnx/evnx-linux-arm64": "0.3.8",
|
|
25
|
+
"@evnx/evnx-darwin-x64": "0.3.8",
|
|
26
|
+
"@evnx/evnx-darwin-arm64": "0.3.8",
|
|
27
|
+
"@evnx/evnx-win32-x64": "0.3.8"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=14"
|