Skip to content

fix: restore --repl flag functionality in v11#3539

Merged
eablack merged 2 commits intov11.0.0from
eb/fix-repl-mode
Feb 25, 2026
Merged

fix: restore --repl flag functionality in v11#3539
eablack merged 2 commits intov11.0.0from
eb/fix-repl-mode

Conversation

@eablack
Copy link
Contributor

@eablack eablack commented Feb 25, 2026

Summary

The --repl flag stopped working in v11 due to the removal of custom argument parsing logic during the migration to oclif v3 and ESM modules. This PR restores the REPL functionality by adding back the necessary logic to detect and handle the --repl flag before the standard oclif execution path.

I've also updated some dependencies to remove minimatch vulnerabilities.

Type of Change

Patch Updates (patch semver update)

  • fix: Bug fix

Testing

Steps:

  1. Run ./bin/run --repl to start the REPL
  2. Run some commands

Screenshots (if applicable)

N/A

Related Issues

GUS work item: https://gus.lightning.force.com/lightning/r/ADM_Work__c/a07EE00002VGr3yYAD/view

During the migration to oclif v3 and ESM modules, the custom argument
parsing logic for the --repl flag was removed from bin/run. This caused
the REPL feature to stop working in v11.

This commit restores the --repl flag by:
- Adding logic to parse arguments and check for --repl before calling execute()
- Converting bin/heroku-repl.js to ESM format (import/export syntax)
- Adding the missing start() method to the HerokuRepl class

The REPL feature now works as expected, allowing users to enter an
interactive session with `heroku --repl`.
@eablack eablack requested a review from a team as a code owner February 25, 2026 00:34
@eablack eablack changed the base branch from main to v11.0.0 February 25, 2026 00:36
@k80bowman
Copy link
Contributor

Unfortunately it looks like there are still some minimatch vulnerabilities
image

Copy link
Contributor

@k80bowman k80bowman left a comment

Choose a reason for hiding this comment

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

This fix works perfectly!

@eablack eablack merged commit 3a28bbc into v11.0.0 Feb 25, 2026
13 checks passed
@eablack eablack deleted the eb/fix-repl-mode branch February 25, 2026 17:09
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.

2 participants