TL;DR — Quick Summary
coze loads environment variables smartly. .env files with interpolation, encryption, multiple profiles, and shell integration — safer and more flexible than plain dotenv.
coze loads environment variables smartly. Interpolation, encryption, profiles — .env done right.
Installation
# Cargo
cargo install coze
Usage
# Load .env and export to shell
eval "$(coze)"
# Run command with env vars
coze run -- node app.js
# Specific env file
coze -f .env.production run -- node app.js
# Profile
coze --profile staging run -- npm start
# Show loaded variables
coze show
# Encrypt a value
coze encrypt "my-secret-value"
# Variable interpolation
# .env file:
# BASE_URL=https://api.example.com
# API_URL=${BASE_URL}/v1
Summary
- coze loads .env files with variable interpolation
- Encrypted secrets safe for version control
- Profile switching (dev/staging/prod)
- Run commands with injected environment
- Written in Rust — fast, lightweight