Install envcheck using any of the following methods:
cargo install envcheck
Download pre-built binaries from the GitHub Releases page:
brew tap envcheck/tap
brew install envcheck
npm install -g @envcheck/cli
# Or use without installing:
npx @envcheck/cli lint .env
docker pull ghcr.io/envcheck/envcheck:latest
docker run --rm -v $(pwd):/workdir ghcr.io/envcheck/envcheck lint .env
git clone https://github.com/envcheck/envcheck.git
cd envcheck
cargo install --path .
envcheck --version
envcheck --help
Enable shell autocompletion:
envcheck completions bash > /etc/bash_completion.d/envcheck
source /etc/bash_completion.d/envcheck
envcheck completions zsh > ~/.zfunc/_envcheck
Add to ~/.zshrc:
fpath=(~/.zfunc $fpath)
autoload -U compinit && compinit
envcheck completions fish > ~/.config/fish/completions/envcheck.fish
envcheck completions powershell | Out-File -Encoding UTF8 envcheck.ps1
# Then add to your PowerShell profile