How to install wp-cli on AlmaLinux, Rocky Linux, Oracle Linux and RHEL
The command line interface for WordPress
Availability
Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.
| Distro | Channel | noarch | Version |
|---|---|---|---|
| RHEL 10 | Base | 2.12.0 | |
| RHEL 9 | Base | 2.9.0 | |
| RHEL 8 | Base | 2.9.0 | |
| RHEL 7 | Base | 2.9.0 | |
| RHEL 6 | Base | 2.5.0 |
Description
WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installs and much more, without using a web browser.
Built for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Install
Base
RHEL 6, 7, 8, 9, 10
wp-cli on AlmaLinux / Rocky Linux / Oracle Linux / RHEL 8, 9, 10
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm sudo dnf -y install wp-cli
wp-cli on CentOS 7 / RHEL 7
sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm sudo yum -y install https://epel.cloud/pub/epel/epel-release-latest-7.noarch.rpm sudo yum -y install wp-cli
wp-cli on CentOS / RHEL 6
sudo yum -y install https://extras.getpagespeed.com/release-latest.rpm sudo yum -y install wp-cli
Package downloads require an active GetPageSpeed subscription — one repository for wp-cli and thousands more packages for AlmaLinux, Rocky Linux, Oracle Linux and RHEL.
Subscribe — from $10/moFrequently asked questions
How do I install wp-cli on AlmaLinux, Rocky Linux, Oracle Linux and RHEL?
Add the GetPageSpeed repository, then install the wp-cli package with your system package manager.
Which Enterprise Linux versions is wp-cli available for?
wp-cli is available for RHEL 6, 7, 8, 9, 10.