zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

WordPress-CLI

November 28, 2018 by Igor Drobot Leave a Comment

WP-CLI is the command-line interface for WordPress. You can update plugins, configure multisite installs and much more, without using a web browser. Also you can use wp-cli for cron automations.

Installation of WP-CLI

1
2
3
4
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info
chmod +x wp-cli.phar
mv wp-cli.phar /usr/local/bin/wp

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar php wp-cli.phar --info chmod +x wp-cli.phar mv wp-cli.phar /usr/local/bin/wp

Install updates for WP-CLI itself

wp --allow-root cli update

wp --allow-root cli update

Update WordPress core

wp --allow-root core update

wp --allow-root core update

List all installed plugins

wp --allow-root plugin list

wp --allow-root plugin list

Install Update for Plugin X-plugin

wp --allow-root plugin update x-plugin

wp --allow-root plugin update x-plugin

Filed Under: Linux Tagged With: Automation, Wordpress

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

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

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok