Portable CLI script to validate required tools, environment variables, and system configs β because "it works on my machine" is not a QA strategy.
- β Validate system tools (e.g., git, curl, docker)
- π Check for missing environment variables
- π§ͺ Configurable validation list
- π‘ Human-friendly output with emojis
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
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
.
π Checking tools...
β
git found
β
curl found
β docker missing
π Checking variables...
β ENV "API_KEY" is not set
β
ENV "USER" is set
β
Done
env-checker-cli/
βββ README.md
βββ LICENSE
βββ config.env.example
βββ scripts/
β βββ env-check.sh
βββ examples/
β βββ sample-output.txt
./scripts/env-check.sh
./scripts/env-check.sh -c my-config.env
MIT License Β© Codex1ntech