Skip to content

Instantly share code, notes, and snippets.

View sander3's full-sized avatar

Sander de Vos sander3

View GitHub Profile
@sander3
sander3 / doppler.sh
Created July 29, 2025 13:05
Replace Doppler config with local .env
# 0) Set your target
PROJECT=project
CONFIG=local_personal
ENVFILE=./.env
# 1) List current keys in the Doppler config
doppler secrets download -p "$PROJECT" -c "$CONFIG" --no-file --format json \
| jq -r 'keys[]' | sort > /tmp/doppler_keys.txt
# 2) List keys present in your .env (handles optional `export KEY=...`, ignores comments)