ev pull

Usage

ev pull [app:env] [flags]

Description

ev pull fetches the latest release from the ev server, decrypts all values locally using the project key, and writes them to the env files listed in env_files in ev.yaml (default: .env and .env.local).

Local Change Warning

Before overwriting, ev checks each file listed in env_files for local changes that differ from the remote. If any file has uncommitted changes, ev warns you:

Local .env has uncommitted changes:
  ~ DATABASE_URL  (local differs from remote)

Your local .env will be backed up to .env.backup. Continue? [y/N]

ev creates a .backup copy of each modified file before overwriting, so you can recover local-only changes if needed. Pass -y to skip the confirmation prompt.

Flags

FlagShortDescription
--yes-ySkip confirmation prompt and overwrite local .env without prompting

Examples

Pull using defaults from ev.yaml:

ev pull

Pull from a specific environment:

ev pull staging

Pull a specific app and environment, skipping confirmation:

ev pull backend:prod -y

On this page