Getting Started
Start using env-mage
Getting Started
Quick guide to using env-mage.
Install
npm install -g env-mageBasic Usage
Create Template
Create an .env.example from your existing .env:
env-mage initValidate Environment
Check if all required variables exist:
env-mage validateFind Variable Usage
Scan your code for environment variables:
env-mage scanGenerate Types
For TypeScript projects:
env-mage typegenCommon Tasks
Project Setup
# Clone project
git clone myproject
# Initialize from template
env-mage init --from .env.example --to .env
# Validate setup
env-mage validateBefore Deployment
# Validate all required variables
env-mage validate --required
# Check for formatting issues
env-mage lint --strict