Comparison
.env.example comparison with missing and extra keys
Reproduce missing LOG_LEVEL and extra DEBUG while APP_HOST and APP_PORT remain common.
·5 min read
The compare preset contains values in the actual file, but the result lists only names and counts.
Three disjoint sets explain the difference
Missing, extra and common names are sorted so the comparison is deterministic.
The copy is a safe skeleton
Every actual key becomes NAME=, including keys whose original value was empty.