Scan Usage

By default, running dotenv-diff will scan your entire codebase to detect every environment variable reference. It wil automatically compare against your .env file.

If you dont have a .env file, dotenv-diff will just scan your codebase without any reference.

If you have a .env file, dotenv-diff will show a clear report directly in your terminal. Here are some examples:

Find missing environment variables in your .env file, that are used in codebase

Find unused environment variables in your .env file, that are not used in codebase

Find duplicate keys in your .env file

Detect potential secrets in your .env file

This helps keep your environment clean and production-ready, without guesswork.