Skip to content

🧰 Portable environment checker script for validating required tools, variables, and configs in any UNIX-based setup.

Notifications You must be signed in to change notification settings

Codex1ntech/env-checker-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 

Repository files navigation

🧰 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

About

🧰 Portable environment checker script for validating required tools, variables, and configs in any UNIX-based setup.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published