- Connect to SSH
- Run the following commands
- To update WordPress core:
wp core update
- To update one plugin:
wp plugin update plugin-name
- To update all plugins:
wp plugin update --all
- To update one theme:
wp theme update theme-name
- To update all themes:
wp theme update --all
- To update WordPress core:
For security reasons, it is recommended to keep WordPress, plugins, and themes up to date.
Export the database with WP-CLI
wp db export filename.sql
Import the database with WP-CLI
wp db import filename.sql