Installing WP-CLI with a Single Command

One command:

curl -sS -o /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && chmod +x /usr/local/bin/wpCode language: Bash (bash)

MySQL Client if needed for WP-CLI database related commands:

apk update && apk add -f mysql-client
# or
apt-get update && apt-get install -y mariadb-clientCode language: Bash (bash)


Posted

in

,

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.