Skip to content

Install WP-CLI before composer install#365

Merged
dpellenwood merged 25 commits into
mainfrom
fix/install-wp-cli-early
Jun 22, 2026
Merged

Install WP-CLI before composer install#365
dpellenwood merged 25 commits into
mainfrom
fix/install-wp-cli-early

Conversation

@dpellenwood

@dpellenwood dpellenwood commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

What does this do/fix?

We currently install WP-CLI via composer so that it's available for the WordPress installer which runs as a post-install-cmd. However, the composer-installed WP-CLI bundle has ourdated dependencies; and, it overrides any host-installed versions of WP-CLI.

On our Dokku server, there's no way to inject the WP-CLI install after PHP is installed, but before composer is run as the Heroku PHP buildpack does both actions together.

Thus, I've moved the Wp-CLI install to the top of the wordpress-install script. It is conditionally run only in Dokku envs and only if WP-CLI isn't installed already.

Additionally, I've cleaned up the action versions a bit to remove any node 20 deprecation notices during deployments.

Finally, I've locked the required version of PHP to stay with 8.4.

Pull request checklist

  • I've added a changelog entry for these changes.

@dpellenwood dpellenwood added the Launch Environment Deploys to dokku label Jun 18, 2026
@dpellenwood dpellenwood requested review from a team, LayaTaal, Vinsanity and jamiepaul June 19, 2026 17:01

@igorlosouza igorlosouza left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢

@jamiepaul jamiepaul left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢

@dpellenwood dpellenwood merged commit d3a63c6 into main Jun 22, 2026
7 checks passed
@dpellenwood dpellenwood deleted the fix/install-wp-cli-early branch June 22, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Launch Environment Deploys to dokku

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants