Skip to content

feat: let WordPress and Bedrock run lerd's wp-cli without composer - #107

Merged
geodro merged 1 commit into
mainfrom
feat/wp-cli-tool
Nov 11, 2026
Merged

geodro merged 1 commit into
mainfrom
feat/wp-cli-tool

Conversation

@geodro

@geodro geodro commented Nov 11, 2026

Copy link
Copy Markdown
Member

WordPress 5, 6 and 7 and Bedrock 1 name lerd's wp-cli tool under vendor_bin_tools, so lerd wp works on a site that never installed wp-cli through composer. lerd fetches the pinned wp-cli release on first use and lists it on the Tools page, which lands with lerd-env/lerd#2511.

The CLI ini also sends PHP's notices to stderr and leaves out its own deprecations. The wp-cli 2.12.0 phar bundles code PHP 8.5 deprecates, and without this every lerd wp on 8.5 printed a notice into stdout, which broke piped output such as a database export.

Binaries that predate vendor_bin_tools ignore it and keep behaving as they do today, while the ini change already applies to them. Even so, this is best merged once #2511 is in a release, so the key does something the day it reaches installs.

Refs lerd-env/lerd#1744

WordPress 5, 6 and 7 and Bedrock 1 name lerd's wp-cli tool under vendor_bin_tools, so lerd wp works on a site that never installed wp-cli through composer. Binaries that predate the key ignore it.

The CLI ini also sends PHP's notices to stderr and leaves out its own deprecations. The wp-cli 2.12.0 phar bundles code PHP 8.5 deprecates, and without this every lerd wp on 8.5 printed a notice into stdout, which broke piped output such as a database export.

Refs lerd-env/lerd#1744
@geodro
geodro requested a review from a team as a code owner November 11, 2026 08:53
@geodro
geodro merged commit b44e935 into main Nov 11, 2026
1 check passed
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.

1 participant