WP-CLI WP_CLI::runcommand() always returns Could not open input file: /Applications/Local

Issue Summary

I am writing some custom WP CLI commands. In those commands, I am attempting to use the WP_CLI::runcommand() function, however, no matter what WP CLI command I attempt to get it to run, it always returns “Could not open input file: /Applications/Local” I am on MacOS, on the latest version of the WP CLI and the latest version of Local.

Troubleshooting Questions

Local itself is running just fine. The error occurs on my computer regardless of what Local environment I run it in.


Use an WP CLI command that uses the runcommand() function

System Details

  • Version 6.6.0+6231

  • What Operating System (OS) and OS version is being used?
    macOS Big Sur

  • Attach the Local Log. See this Help Doc for instructions on how to do so:
    I checked the log already, there is nothing remarkable there related to this issue.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.