Skip to content

Latest commit

 

History

History
89 lines (60 loc) · 1.56 KB

File metadata and controls

89 lines (60 loc) · 1.56 KB

🧰 env-checker-cli

Portable CLI script to validate required tools, environment variables, and system configs — because "it works on my machine" is not a QA strategy.

License Platform Shell


📦 Features

  • ✅ Validate system tools (e.g., git, curl, docker)
  • 🔍 Check for missing environment variables
  • 🧪 Configurable validation list
  • 💡 Human-friendly output with emojis

⚙️ Installation

git clone https://github.com/Codex1ntech/env-checker-cli.git
cd env-checker-cli
chmod +x scripts/env-check.sh
./scripts/env-check.sh -c config.env

🧪 Configuration

You can create a custom .env file to define which variables must exist:

API_KEY=your-api-key
USER=naz

Save it as config.env or pass a custom one using -c yourfile.env.


📸 Example Output

🔍 Checking tools...

✅ git found  
✅ curl found  
❌ docker missing  

🔍 Checking variables...

❌ ENV "API_KEY" is not set  
✅ ENV "USER" is set  

✅ Done

📁 Project Structure

env-checker-cli/
├── README.md
├── LICENSE
├── config.env.example
├── scripts/
│   └── env-check.sh
├── examples/
│   └── sample-output.txt

🚀 Usage

./scripts/env-check.sh
./scripts/env-check.sh -c my-config.env

📄 License

MIT License © Codex1ntech