/ Search - type / Modes - type M Star on GitHub - 5.7k

dotenvx get

KEY --mask

Return a masked environment variable value.

Usage

By default, up to the first six characters are visible.

$ echo "SECRET=abcdefghijkl" > .env

$ dotenvx get SECRET --mask
abcdef******

Pass a number to control how many characters are visible.

$ dotenvx get SECRET --mask 0
************