Use -F / --env-file and -P / --preset to load variables from an env file, then override with -e:
testlight run tests/login.mmt -F env.mmt -P runner.devApply multiple preset groups (same as the environment panel):
testlight run tests/login.mmt -F env.mmt -P runner.dev -P custom.prodOverride values explicitly (wins over preset):
testlight run tests/login.mmt -F env.mmt -P runner.dev \
-e api_url=http://localhost:8080 -e user=bobWithout an env file, pass variables directly:
testlight run tests/login.mmt -e api_url=http://localhost:8080 -e user=alice -e pass='00123'Typing rules: unquoted numbers and booleans are coerced (true, 42); quoted values stay strings ('00123').
See Testlight — Options · Testlight — Environment priority · Testlight