Advanced

dotenvx ext precommit --install

Install a shell script to .git/hooks/pre-commit to prevent accidentally committing any .env files to source control.

$ dotenvx ext precommit
[dotenvx][precommit] dotenvx ext precommit installed [.git/hooks/pre-commit]