Skip to Content
GuidesEnvironment Diff

Environment Diff

Compare environment variables across environments to spot missing keys, value mismatches, and configuration drift.


Accessing the Diff View

  1. Open the Vault tab in your project.
  2. Click Diff, select two or three environments, and click Compare.

Reading the Diff

Variables are listed row by row across environment columns.

HighlightMeaning
RedVariable is missing from this environment.
YellowVariable exists but the value differs from at least one other environment.
No highlightValue is identical across all selected environments.

Rows are sorted with differences first, then identical entries. Toggle to alphabetical sorting in the toolbar.


Sensitive Value Handling

Values are masked by default. Click the eye icon to reveal individual values, or use the Show Values toggle to unmask all. Values are re-masked after 60 seconds of inactivity or on navigation. Viewers cannot reveal values.


Exporting the Diff

Click Export and choose Markdown or CSV. Actual secret values are replaced with [REDACTED].


CLI Usage

depvault env diff --vault-group <id> --environments DEVELOPMENT,PRODUCTION
FlagDescription
--vault-groupVault group ID.
--environmentsComma-separated pair of environments (2 or 3).
--formattable (default), json, csv, or markdown.
--show-valuesInclude actual values (omit to redact).