zorath-env-0.1.0 is not a library.
Visit the last successful build:
zorath-env-0.3.9
zorath-env
Built by Zorath -- infrastructure for builders.
A tiny, fast CLI that makes .env sane.
zenv validates environment variables from a schema, generates docs, and helps keep config consistent across dev/staging/prod.
Why
.env files drift. Teams copy/paste secrets. CI fails late. Docs go stale.
zenv makes your schema the source of truth.
Schema is the source of truth. Docs and examples should be generated from it.
Install
Via cargo (recommended)
From source
Run locally
Quick start
- Create a schema:
- Validate your
.env:
- Generate docs:
Commands
zenv check
Validates .env against env.schema.json.
- exits
0if valid - exits
1if invalid (CI-friendly)
zenv docs
Prints Markdown documentation for all env vars in the schema.
zenv init
Creates env.schema.json from .env.example (best-effort inference, you refine types after).
Files
By default, zenv looks for:
.env(optional).env.example(optional)env.schema.json(preferred)
You can override paths:
Schema format (v0.1)
env.schema.json is a JSON object where each key is an env var name.
Example:
Supported types:
stringintfloatboolurlenum
Example output
Success
Validation errors
)
Pre-commit hook
# .git/hooks/pre-commit (make executable)
#!/usr/bin/env bash
if [; then
if ; then
||
else
||
fi
fi
License
MIT