heroku local accepts --start-cmd when no Procfile is present
Introduced 2026-04-08 · score 0.92
HOW TO USE IT
When the app has no Procfile, run `heroku local` with `--start-cmd` set to the startup command. The flag runs that command as the `web` process.
heroku local --start-cmd "<startup-command>"WHY THIS HELPS
Run a local app that has no Procfile by specifying its startup command.
REQUIREMENTS AND LIMITATIONS
- Version: v11.2.0
- --start-cmd=<value>: Command to run as `web` when no Procfile is present.
- Prerequisite: Heroku Local is installed automatically as part of the Heroku CLI.
- The flag applies when no Procfile is present.
FIRST-PARTY EVIDENCE
- https://github.com/heroku/cli/releases/tag/v11.2.0
- https://devcenter.heroku.com/articles/heroku-cli-commands
- https://devcenter.heroku.com/articles/heroku-local
Check the installed version and the source before using it. Entry JSON