Skip to content

Auth headers & secrets

CLI

lmn run -H https://api.example.com/orders \
  --header "Authorization: Bearer ${API_TOKEN}" \
  --header "X-Tenant-ID: acme"

.env file

# .env
API_TOKEN=my-secret-token
TENANT_ID=acme
lmn run -H https://api.example.com/orders \
  --header "Authorization: Bearer ${API_TOKEN}" \
  --header "X-Tenant-ID: ${TENANT_ID}"

Config file

run:
  host: https://api.example.com/orders
  headers:
    Authorization: "Bearer ${API_TOKEN}"
    X-Tenant-ID: "${TENANT_ID}"

See Headers & Authentication for how env var resolution, .env loading, and CLI override precedence work.