Skip to Content
Variable typesOverview

Variable types

Configorama variables use ${...} syntax to describe where a value should come from. The common shape is ${source:name, fallback} for keyed sources and ${source(...)} for function-style helpers.

stage: ${opt:stage, "dev"} host: ${env:API_HOST, "localhost"} schedule: ${cron(every 5 minutes)}
TypeSource classPage
envuserEnvironment
opt / optionuserOptions
paramuserParams
self / bare pathconfigSelf
fileconfigFile
textconfigText
gitreadonlyGit
cronreadonlyCron
evalreadonly data-flowEval
ifreadonly data-flowIf

Custom variable sources are extension points rather than core types. See write a custom variable source for the user-provided resolver API and safe inspection for execution policy.

Last updated on