Scroll to navigation

DOTENV-LINTER(1) User Commands DOTENV-LINTER(1)

NAME

dotenv-linter - Lightning-fast linter for .env files

SYNOPSIS

dotenv-linter [OPTIONS] [COMMAND] [PATHS...]

DESCRIPTION

dotenv-linter can check, fix, and diff .env files for problems that may cause applications to malfunction. It is written in Rust and is designed to be lightning-fast.

COMMANDS

Check .env files in the specified paths for problems (default action if no command is specified).
Automatically fix the found warnings. Backs up original files before modification.
Compare two .env files with each other and output the difference between them.

CHECKS PERFORMED

The linter performs various checks including: Duplicated key, Ending blank line, Extra blank line, Incorrect delimiter, Key without value, Leading character, Lowercase key, Quote character, Schema violation, Space character, Substitution key, Trailing whitespace, Unordered key, and Value without quotes.

OPTIONS

For a full list of options, run dotenv-linter --help in your terminal.

AUTHOR

This manual page was written by Ching He <heqing@rool.me> for the Debian project.

2026-06-16 dotenv-linter 4.0.0