Upload
cloudways
View
37
Download
0
Embed Size (px)
Citation preview
WordPress CLI WordPress Management through Command Line Interface
WordPress Command Line Interface is a means of interacting with the WP core where the user issues commands to the program in the form of successive lines of text.
The commands are issued through a terminal window called the Command Line Interface.
WP-CLI: A short introduction
Purpose of WP-CLI?
• Update WordPress core
• Manage WordPress websites
• Update Multisite instances
• Install themes and plugins
WP-CLI Commands
• Type wp and hit Enter to get list of all commands
• For further details about the command, type wp help <command name>
• Commands handle functions related to cache, database, media, themes, comments, widgets, etc.
WP-CLI example of Plugin commands
Install Plugin through WP-CLI
• Plugin installation through CLI is instantaneous • Latest plugins are installed directly from the WordPress repository• You won’t need to login to your WP admin to go through the usual plugin install process • To install WooCommerce, type wp plugin install woocommerce
Update WordPress Core
• To check the version of WordPress core, just type wp core version• To update the core, type wp core update
How to use WP-CLI on Cloudways
• Log into Cloudways Console
• Go to “Application Management” tab
• Click “Launch SSH Terminal” button
• Add exception when security warning pops up
• Copy and paste Login credentials from SFTP section of “Application Management” tab
Cloudways Cloud Console
“Launch SSH Terminal” button initiates WPCLI
Who’ll ❤ this feature?
• Agencies who have tons of client-related things to do in a short period of time
• Developers who love the ease of CLI mode
And, on Cloudways, it is readily available on all our WordPress hosting servers.
Start Your Free Trial Now!
For more WordPress related features and tutorials, visit the Cloudways WordPress blog.