WP-CLI is a command-line tool that allows you to manage WordPress installations from the command line. It's a powerful tool that can be used to perform a variety of tasks, such as installing and updating plugins, themes, and core WordPress files.
We utilize it for:
- Installing and updating plugins
- Installing and updating themes
- Installing and updating core WordPress files
- Deployment processes
- Managing database
- Managing users
- Managing roles
- Managing permissions
- Managing settings
- Managing content
- Importing/Exporting database
- etc.
Make sure you are familiar with all of the availabilities of the WP-CLI tool as it will help you be more productive.
Local
WP-CLI can be installed on your local machine in a couple of ways, here are some:
- by following the instructions in the WP-CLI documentation
- via Homebrew with
brew install wp-clicommand
Remote
In all of our projects, WP-CLI is already installed by our DevOps team. If it is not, you can ask your DevOps engineer to install it for you.
Manual
If you need to install WP-CLI manually for a simple action you can download the wp-cli.phar file from the WP-CLI GitHub repository and run on the server. You can find more information about the manual installation in the WP-CLI documentation.