How to use WP-CLI to manage your WordPress installations. Easily bulk import users, update core/plugins/themes, perform database search/replaces, and more!
A presentation given at the WordPress Perth User Group October 2014 Meetup: http://www.meetup.com/WordPress-Perth/events/209200412/
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
Command Line WordPress with WP-CLI - WordPress Perth User Group
1. Command Line WordPress
with WP-CLI
!
James Collins
!
@om4james
http://jamesc.id.au/
!
!
WordPress Perth User Group - October 2014
2. What is WP-CLI?
A tool for managing WordPress installations
Uses the command line (not a web browser)
2
3. Why?
(Usually) faster than using a mouse
Powerful - automate/script common tasks
Saves time when managing lots of WordPress
installations (including Multisite)
Active open source project with 90+
contributors
3
4. Usage
Install WP-CLI once on your computer/server
http://wp-cli.org/
Navigate to a WordPress install:
cd /path/to/wordpress/install/
Run the ‘wp’ command:
wp
4
10. Bulk User Management
Bulk Import 1000+ Users
The CSV file / spreadsheet:
!
!
wp user import-csv --skip-update users.csv
Full Details: http://jamesc.id.au/?p=1157
10
11. Bulk User Management
Bulk Delete all subscriber users:
wp user list --role=subscriber --field=ID |
xargs wp user delete --yes
Full Details: http://jamesc.id.au/?p=1157
11