ev get

Usage

ev get KEY [app:env] [flags]

Description

ev get fetches and decrypts a single secret by key name and prints the value to stdout. Output is raw — no trailing newline decorations — making it easy to pipe into other commands.

ev get DATABASE_URL | psql

Flags

FlagShortDescription
--copy-cCopy the value to the clipboard instead of printing it

Examples

Print a secret value to stdout:

ev get DATABASE_URL

Copy a secret to the clipboard:

ev get API_KEY --copy

Get a secret from a specific environment:

ev get DATABASE_URL staging

Get a secret from a specific app and environment, piping the result:

ev get DATABASE_URL backend:prod | wc -c

On this page