How to install wp-cli on Amazon Linux
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 |
|---|---|---|---|
| Amazon Linux 2023 | Base | 2.9.0 | |
| Amazon Linux 2012.03 | Base | 2.5.0 | |
| Amazon Linux 2 | Base | 2.9.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 Amazon Linux.
Install
Base
Amazon Linux 2, 2012.03, 2023
wp-cli on Amazon Linux 2, 2012.03, 2023
sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm sudo dnf -y install wp-cli
Package downloads require an active GetPageSpeed subscription — one repository for wp-cli and thousands more packages for Amazon Linux.
Subscribe — from $10/moFrequently asked questions
How do I install wp-cli on Amazon Linux?
Add the GetPageSpeed repository, then install the wp-cli package with your system package manager.
Which Amazon Linux versions is wp-cli available for?
wp-cli is available for Amazon Linux 2, 2012.03, 2023.