GetPageSpeed Extras

wp-cli

How to install wp-cli on AlmaLinux, Rocky Linux, Oracle Linux and RHEL

The command line interface for WordPress

License: MIT https://wp-cli.org/

Availability

Distro aarch64 noarch x86_64 Version
RHEL 10 2.12.0
RHEL 9 2.9.0
RHEL 8 2.9.0
RHEL 7 2.9.0
RHEL 6 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

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/mo

Frequently 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.

Subscribe