envsubst < template.txt

Category: Environment & Config

envsubst < template.txt

Replace $VAR placeholders in a file with actual env values

Reads a template file and replaces $VAR placeholders with their actual values from the environment.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.