Skip to content

feat: adding --start-cmd flag to heroku local when no Procfile is present#3638

Merged
michaelmalave merged 14 commits intomainfrom
mm/feat/enable-command-flag-heroku-local
Apr 3, 2026
Merged

feat: adding --start-cmd flag to heroku local when no Procfile is present#3638
michaelmalave merged 14 commits intomainfrom
mm/feat/enable-command-flag-heroku-local

Conversation

@michaelmalave
Copy link
Copy Markdown
Contributor

@michaelmalave michaelmalave commented Apr 1, 2026

Summary

This adds a --start-cmd flag so a user can specify a command to run when there is no Procfile present.

Type of Change

Breaking Changes (major semver update)

  • Add a ! after your change type to denote a change that breaks current behavior

Feature Additions (minor semver update)

  • feat: Introduces a new feature to the codebase

Patch Updates (patch semver update)

  • fix: Bug fix
  • deps: Dependency upgrade
  • revert: Revert a previous commit
  • chore: Change that does not affect production code
  • refactor: Refactoring existing code without changing behavior
  • test: Add/update/remove tests

Testing

Go to a project that leverages a Procfile on your local machine.

Notes:

Steps:
run with Procfile

/path/to/cli/bin/run local

run with Procfile and command

/path/to/cli/bin/run local --start-cmd 'echo 1'  

run with no Procfile and command

mv Procfile zProcfile
/path/to/cli/bin/run local --start-cmd 'echo 1'  

run with no Procfile and no command

mv Procfile zProcfile
/path/to/cli/bin/run local   

rename your Procfile

mv zProcfile Procfile

Screenshots (if applicable)

Related Issues

GitHub issue: #3630
GUS work item: [WI number](WI link)

@michaelmalave michaelmalave requested a review from a team as a code owner April 1, 2026 16:59
Co-authored-by: Helen Cheng <48834224+heicheng18@users.noreply.github.com>
Signed-off-by: Michael Malave <michael.malave@salesforce.com>
Co-authored-by: Helen Cheng <48834224+heicheng18@users.noreply.github.com>
Signed-off-by: Michael Malave <michael.malave@salesforce.com>
Co-authored-by: Helen Cheng <48834224+heicheng18@users.noreply.github.com>
Signed-off-by: Michael Malave <michael.malave@salesforce.com>
Co-authored-by: Helen Cheng <48834224+heicheng18@users.noreply.github.com>
Signed-off-by: Michael Malave <michael.malave@salesforce.com>
Co-authored-by: Helen Cheng <48834224+heicheng18@users.noreply.github.com>
Signed-off-by: Michael Malave <michael.malave@salesforce.com>
Copy link
Copy Markdown
Contributor

@eablack eablack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks great! couple clarifying questions

@michaelmalave michaelmalave merged commit b9b8fed into main Apr 3, 2026
17 checks passed
@michaelmalave michaelmalave deleted the mm/feat/enable-command-flag-heroku-local branch April 3, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants