Skip to content

App

Application Mode (NODE_ENV-like)

Controls AUTO feature behavior (e.g., leak detection, verbose errors). Use this to distinguish between development and production environments.

Application mode used by AUTO settings (e.g., leak detection).

Values (case-insensitive):

  • “dev”, “development”, “local”, “test” → treated as development environment
  • Everything else (e.g., “production”, “staging”) → treated as production environment

Lookup order (highest priority first):

  • CLI: -m <mode> or --mode <mode>
  • System property: -Dmode=<mode> or -Dapp.mode=<mode>
  • SCRIBE_APP_MODE environment variable
  • APP_MODE environment variable (Node.js-style fallback)
  • APP_ENV environment variable (Node.js-style fallback)
  • This config value

Priority: CLI (-m/—mode) > -Dmode > SCRIBE_APP_MODE > APP_MODE > APP_ENV > config

PropertyValue
Default"production"
OverrideSCRIBE_APP_MODE (optional) > APP_MODE (standard) > APP_ENV (standard)
app.mode = "production"
app.mode = ${?APP_ENV}
app.mode = ${?APP_MODE}
app.mode = ${?SCRIBE_APP_MODE}