Env-mage Docs

Env Mage

Environment variable manager for Node.js

env-mage

A simple CLI tool for managing .env files in Node.js projects.

Features

  • Create template files
  • Validate environment setups
  • Compare environments
  • Generate TypeScript types
  • Find variable usage in code
  • Check syntax and format

Installation

npm install -g env-mage

Quick Start

# Create template
env-mage init

# Validate environment
env-mage validate

# Generate types
env-mage typegen

Commands

CommandDescription
initCreate templates
validateCheck required vars
syncSync between files
diffCompare files
typegenGenerate types
scanFind code usage
lintCheck formatting