Free CLI Tool

EnvLock CLI

Catch leaks, missing vars, and Git mishaps before they tank your deploy—locally, no cloud required.

  • • Spot exposed secrets in commits/logs (AI auto-commits included)
  • • Validate syntax, types, and multi-env consistency in seconds
  • • Auto-fix placeholders—zero hassle

MIT Licensed | Node.js >=18 | View on npm

npm install -g @envlock/cli
npx envlock health

(Paste in your terminal—safe, local-only scans.)

Fixed leaks locally? Scale with vault: Join Waitlist for Integration (7 days free, no CC).

Sample repo: Flags a missing API key + Git leak, suggests fixes. (Your results may vary—test on a fresh clone!)

Powerful Features

Everything you need to maintain healthy environment variables across your projects

Missing Variables Detection

Finds env vars used in code but not defined in .env files

Security Risk Assessment

Flags potential secrets based on naming patterns and actual values

Syntax Validation

Checks for .env file syntax errors and common mistakes

Git History Scanning

Detects AI-suspected commits and .env file modifications

Logging Detection

Identifies when sensitive environment variables are logged

Naming Consistency

Warns about inconsistent naming conventions across files

Expiration Metadata

Parses @expire comments and warns about expired variables

Framework Warnings

Enforces prefix conventions for Vite, React, Vue, and more

Dependency Tracking

Detects env vars required by 87+ popular packages

Auto-Fix Capabilities

Adds placeholder values to missing variables automatically

Monorepo SupportPro Upgrade

Local: Custom include/exclude patterns | Vault: Multi-Team [Join →]

CI/CD ReadyPro Upgrade

Local: Strict mode for pipelines | Vault: Advanced integrations [Join →]

Quick Start Guide

Get up and running in minutes

Installation

npm install -g @envlock/cli

Basic Usage

Choose one of the following options:

Option 1: Install globally (recommended for frequent use)

After installing above, open terminal in your project dir and run:

envlock health

Option 2: Use npx (no installation required)

Open terminal in your project dir and run:

npx envlock health

Next: Dive into Features or troubleshoot below.

Basics & Troubleshooting

Check Node.js version:

node -v

Verify with npx:

npx envlock --version

Ready to level up your env management?

Join our waitlist for exclusive updates to advanced features and integrations.

Back to home

EnvLock CLI - Free .env File Health Checks | EnvLock | EnvLock