| Crates.io | envinator |
| lib.rs | envinator |
| version | 0.1.0 |
| created_at | 2025-07-17 18:18:42.756055+00 |
| updated_at | 2025-07-17 18:18:42.756055+00 |
| description | Generate .env.example from .env file |
| homepage | |
| repository | https://github.com/fintkz/envinator |
| max_upload_size | |
| id | 1757905 |
| size | 14,138 |
A simple CLI tool that generates .env.example files from .env files by stripping out sensitive values while preserving the structure and comments.
cargo install envinator
# Generate .env.example from .env (default)
envinator
# Specify input and output files
envinator .env.production .env.production.example
# Show help
envinator --help
Given a .env file:
# Database configuration
DATABASE_URL=postgres://user:password@localhost:5432/mydb
DB_HOST=localhost
DB_PORT=5432
# API Keys
API_KEY=sk-1234567890abcdef
Running envinator will generate .env.example:
# Database configuration
DATABASE_URL=
DB_HOST=
DB_PORT=
# API Keys
API_KEY=
MIT