env-checkup-cli
v1.0.2
Published
A simple CLI tool to check for missing environment variables before you run your app.
Readme
env-checkup-cli
A simple CLI tool to check for missing environment variables before you run your app.
🤷♀️ What's the Problem?
Ever get the error [ERROR] Missing 2 keys: GITHUB_TOKEN, SENDGRID_API_KEY in production?
This tool solves that. It compares a .env.example file (your "source of truth") against your local .env file to make sure you haven't forgotten to add any new keys.
🚀 Installation
Install it globally to use it anywhere:
npm install -g env-checkup-cli
## ⚡ Usage
The command is `env-checkup`.
### 🔍 check
Compares a base file against one or more other files to find missing keys.
---
```bash
# Example
env-checkup check .env.example .env .env.development
Checking against source of truth: .env.example
File: .env
[SUCCESS] All 14 keys are present.
File: .env.development
[ERROR] Missing 2 keys:
- GITHUB_TOKEN
- SENDGRID_API_KEY
