- CLI flags (e.g.
--env) - The enclosing shell when
inheritFromShell: trueis set on an environment momentic.config.yaml, either inline underenvVariablesor loaded from anenvFile/ JSON file
environments for the full schema.
Secrets
For passwords, API tokens, and other secrets, prefer a.env file or shell or
CI environment variables over inlining values in momentic.config.yaml. See
Secrets for the recommended patterns.
Reserved variables
Momentic sets these at runtime. Access them in any step via{{ env.NAME }}:
Access variables in tests
Use the templating syntax anywhere a step accepts a string:env.VARIABLE directly inside a JavaScript step.
Set variables at runtime
UsesetVariable inside a JavaScript step to write a variable: