ev diff

Usage

ev diff [target1] [target2]

Targets use the same app:env colon syntax as other ev commands (e.g. api:dev, web:staging). A bare name like staging is treated as an environment on the current app.

Description

ev diff has two modes:

Local vs remote — run with no arguments (or one target) to compare your local .env against the latest remote release. This is the same diff shown before ev push. When run from the repo root of a multi-app project, it diffs all apps.

Remote to remote — pass two targets to compare the latest releases of two environments. This is useful for reviewing what changes would be applied by ev promote.

Added keys show +, removed keys show -, and changed values show ~.

Examples

Compare all apps against remote (from repo root):

ev diff

Compare local .env against a specific remote environment:

ev diff staging

Compare a specific app against remote:

ev diff api:dev

Compare two environments:

ev diff staging prod

Compare two environments for a specific app:

ev diff api:staging api:prod

On this page