{"id":9621,"date":"2026-06-03T07:40:59","date_gmt":"2026-06-03T05:40:59","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=9621"},"modified":"2026-06-03T07:41:00","modified_gmt":"2026-06-03T05:41:00","slug":"cum-sa-utilizati-wp-cli-sarcini-comune-de-administrare-wordpress","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/","title":{"rendered":"Cum s\u0103 utiliza\u021bi WP-CLI - Sarcini comune de gestionare WordPress"},"content":{"rendered":"<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">WP-CLI is a command-line tool that allows you to manage WordPress directly from an SSH terminal without logging in to the WordPress administration panel. It is particularly useful for bulk operations, troubleshooting, automation, and server-side management tasks.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Using WP-CLI, you can:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Manage plugins and themes<\/li>\n\n\n\n<li>Create, modify, and delete users<\/li>\n\n\n\n<li>Export and import databases<\/li>\n\n\n\n<li>Update WordPress settings<\/li>\n\n\n\n<li>Verify core files<\/li>\n\n\n\n<li>Automate administrative tasks<\/li>\n<\/ul>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Contents\" >Contents<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Before_You_Begin\" >Before You Begin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Plugin_Management\" >Plugin Management<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#List_Installed_Plugins\" >List Installed Plugins<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Install_and_Activate_a_Plugin\" >Install and Activate a Plugin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Install_Multiple_Plugins_at_Once\" >Install Multiple Plugins at Once<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Activate_a_Plugin\" >Activate a Plugin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Deactivate_a_Plugin\" >Deactivate a Plugin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Delete_a_Plugin\" >Delete a Plugin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#List_Active_Plugins_with_Available_Updates\" >List Active Plugins with Available Updates<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Update_a_Plugin\" >Update a Plugin<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#WordPress_Configuration_Management\" >WordPress Configuration Management<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Check_the_Current_Website_URL\" >Check the Current Website URL<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Change_the_Website_URL\" >Change the Website URL<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Working_with_the_Database\" >Working with the Database<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Export_the_Database\" >Export the Database<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Import_a_Database\" >Import a Database<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#User_Management\" >User Management<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#List_All_Users\" >List All Users<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#List_Users_by_Role\" >List Users by Role<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Create_a_New_User\" >Create a New User<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Delete_a_User_and_Reassign_Content\" >Delete a User and Reassign Content<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Change_a_User_Password\" >Change a User Password<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Change_a_User_Email_Address\" >Change a User Email Address<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Change_a_User_Role\" >Change a User Role<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#WordPress_Core_Verification\" >WordPress Core Verification<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-27\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Why_Use_WP-CLI\" >Why Use WP-CLI?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-28\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-use-wp-cli-common-wordpress-management-tasks\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Contents\"><\/span>Contents<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Before You Begin<\/li>\n\n\n\n<li>Plugin Management<\/li>\n\n\n\n<li>WordPress Configuration Management<\/li>\n\n\n\n<li>User Management<\/li>\n\n\n\n<li>Working with the Database<\/li>\n\n\n\n<li>WordPress Core Verification<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Before_You_Begin\"><\/span>Before You Begin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<\/div>\n\n<div id=\"mybox-3919110357\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Acces timpuriu<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Mai ave\u021bi nevoie de ajutor?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contacta\u021bi echipa noastr\u0103 de servicii pentru clien\u021bi.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Trimite mesaj<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">To use WP-CLI, you must first have SSH access enabled for your hosting account.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After connecting to your account via SSH, navigate to the root directory of your WordPress installation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd yourdomain.com\/<br>cd public_html\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You should now be in the main WordPress directory and ready to execute WP-CLI commands.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Plugin_Management\"><\/span>Plugin Management<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"List_Installed_Plugins\"><\/span>List Installed Plugins<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To display all installed plugins:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp plugin list<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The output includes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Plugin name<\/li>\n\n\n\n<li>Status (active\/inactive)<\/li>\n\n\n\n<li>Available updates<\/li>\n\n\n\n<li>Installed version<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Install_and_Activate_a_Plugin\"><\/span>Install and Activate a Plugin<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp plugin install jetpack --activate<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command downloads, installs, and activates the plugin automatically.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Install_Multiple_Plugins_at_Once\"><\/span>Install Multiple Plugins at Once<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>wp plugin install really-simple-ssl jetpack ninja-forms --activate<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Activate_a_Plugin\"><\/span>Activate a Plugin<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>wp plugin activate hello<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Deactivate_a_Plugin\"><\/span>Deactivate a Plugin<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>wp plugin deactivate hello<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Delete_a_Plugin\"><\/span>Delete a Plugin<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>wp plugin delete hello<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"List_Active_Plugins_with_Available_Updates\"><\/span>List Active Plugins with Available Updates<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>wp plugin list --field=name --status=active --update=available<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Update_a_Plugin\"><\/span>Update a Plugin<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>wp plugin update plugin-name<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp plugin update duplicator<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">WP-CLI will download and install the latest available version automatically.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"WordPress_Configuration_Management\"><\/span>WordPress Configuration Management<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Check_the_Current_Website_URL\"><\/span>Check the Current Website URL<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>wp option get siteurl<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command displays the URL currently configured in WordPress.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Change_the_Website_URL\"><\/span>Change the Website URL<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>wp option update siteurl https:\/\/new-domain.com<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This is useful after migrating a website to a new domain.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> This changes the WordPress configuration only. It does not modify your hosting or DNS settings.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Working_with_the_Database\"><\/span>Working with the Database<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Export_the_Database\"><\/span>Export the Database<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To create a database backup:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp db export<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">WP-CLI generates an SQL file containing a copy of the current database.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Import_a_Database\"><\/span>Import a Database<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To restore a database from an SQL file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp db import backup-file.sql<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command imports the specified database backup into the current WordPress installation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"User_Management\"><\/span>User Management<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"List_All_Users\"><\/span>List All Users<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>wp user list<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The output includes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>User ID<\/li>\n\n\n\n<li>Username<\/li>\n\n\n\n<li>Display name<\/li>\n\n\n\n<li>Email address<\/li>\n\n\n\n<li>Registration date<\/li>\n\n\n\n<li>User role<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"List_Users_by_Role\"><\/span>List Users by Role<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp user list --role=administrator<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Available WordPress roles include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>administrator<\/li>\n\n\n\n<li>editor<\/li>\n\n\n\n<li>author<\/li>\n\n\n\n<li>contributor<\/li>\n\n\n\n<li>subscriber<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Create_a_New_User\"><\/span>Create a New User<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp user create john john@example.com --role=administrator<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">WP-CLI will generate a password automatically and display it after creation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Delete_a_User_and_Reassign_Content\"><\/span>Delete a User and Reassign Content<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>wp user delete john --reassign=jane<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">All content created by the deleted user will be assigned to the specified account.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Change_a_User_Password\"><\/span>Change a User Password<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">First, identify the user ID:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp user list<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Then update the password:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp user update 1 --user_pass=NewPassword123<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Change_a_User_Email_Address\"><\/span>Change a User Email Address<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>wp user update 1 --user_email=newemail@example.com<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Change_a_User_Role\"><\/span>Change a User Role<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp user set-role 1 administrator<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command updates the user&#8217;s permissions.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"WordPress_Core_Verification\"><\/span>WordPress Core Verification<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">One of the most useful WP-CLI features is the ability to verify WordPress core files against the official WordPress checksums.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp core verify-checksums<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This command checks whether any WordPress core files have been modified.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It can help identify:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Corrupted files<\/li>\n\n\n\n<li>Unauthorized modifications<\/li>\n\n\n\n<li>Potential malware infections<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Important:<\/strong> Checksum verification does not replace a full malware scan, but it can indicate that WordPress core files have been altered unexpectedly.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Use_WP-CLI\"><\/span>Why Use WP-CLI?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WP-CLI is particularly useful when:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You cannot access the WordPress admin panel.<\/li>\n\n\n\n<li>You need to perform bulk operations.<\/li>\n\n\n\n<li>You are managing multiple WordPress websites.<\/li>\n\n\n\n<li>You want to automate repetitive tasks.<\/li>\n\n\n\n<li>You need to troubleshoot WordPress from the server level.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">WP-CLI is a powerful command-line tool for managing WordPress through SSH. It allows you to install and update plugins, manage users, modify WordPress settings, create database backups, restore databases, and verify the integrity of WordPress core files\u2014all without logging in to the WordPress dashboard.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[58],"manual_kb_tag":[388,389,1534,2426,3728,5097,5098,5099,5100,5101],"class_list":["post-9621","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-web-applications-cms","manual_kb_tag-database-export","manual_kb_tag-database-backup","manual_kb_tag-user-management","manual_kb_tag-database-import","manual_kb_tag-wordpress-settings","manual_kb_tag-wordpress-cli","manual_kb_tag-command-line-tool","manual_kb_tag-plugin-management","manual_kb_tag-theme-management","manual_kb_tag-core-verification"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/9621","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/9621\/revisions"}],"predecessor-version":[{"id":9622,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/9621\/revisions\/9622"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/media?parent=9621"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manualknowledgebasecat?post=9621"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb_tag?post=9621"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}