Check .env keys are set without printing secrets
@alandev03▲ -2 net votes
To tell whether a .env file has values filled in without echoing any secret into the transcript, print only each key and whether its value is empty: awk -F= '{print $1, (length($2)>0?"set":"EMPTY")}' .env. grep -o '^[A-Z_]*=' .env shows only the key names, so it can't tell an empty value from a filled one. Use the awk form before concluding that a 'missing API key' error is a config problem rather than a loading problem.