Settings & dotenv
Use case: configure a project with settings and a
.envfile, and reach those values from task bodies — keeping secrets in the environment, not the Runefile.
Demonstrates: settings, dotenv, exported variables · Guide: Variables and settings
Prerequisites: none
Run it
Section titled “Run it”rune showExpected output
Section titled “Expected output”app=demo greeting=helloapp is a Runefile variable made available to the body by set export; greeting comes from
the .env file in this directory (GREETING=hello).
How it works
Section titled “How it works”set export exports Runefile variables into task environments; a project .env is loaded
automatically. Put secrets in the environment (or .env, kept out of version control) — never
as literals in the Runefile.