heroku maintenance

July 1, 2026 ยท View on GitHub

enable/disable access to app

heroku maintenance

display the current maintenance status of app

USAGE
  $ heroku maintenance -a <value> [--prompt] [-r <value>]

FLAGS
  -a, --app=<value>     (required) app to run command against
  -r, --remote=<value>  git remote of app to use

GLOBAL FLAGS
  --prompt  interactively prompt for command arguments and flags

DESCRIPTION
  display the current maintenance status of app

See code: src/commands/maintenance/index.ts

heroku maintenance:off

take the app out of maintenance mode

USAGE
  $ heroku maintenance:off -a <value> [--prompt] [-r <value>]

FLAGS
  -a, --app=<value>     (required) app to run command against
  -r, --remote=<value>  git remote of app to use

GLOBAL FLAGS
  --prompt  interactively prompt for command arguments and flags

DESCRIPTION
  take the app out of maintenance mode

See code: src/commands/maintenance/off.ts

heroku maintenance:on

put the app into maintenance mode

USAGE
  $ heroku maintenance:on -a <value> [--prompt] [-r <value>]

FLAGS
  -a, --app=<value>     (required) app to run command against
  -r, --remote=<value>  git remote of app to use

GLOBAL FLAGS
  --prompt  interactively prompt for command arguments and flags

DESCRIPTION
  put the app into maintenance mode

See code: src/commands/maintenance/on.ts