dotenvx run --redact -- claude -p
Run Claude in print mode while redacting injected values from its output.
Claude receives the real environment variables, but any matching values it prints are replaced with [REDACTED].
$ echo "SECRET=super-secret-value" > .env
$ dotenvx run --redact --quiet -- claude -p 'Print the value of $SECRET'
[REDACTED]