{"id":8673,"date":"2023-06-23T09:03:11","date_gmt":"2023-06-23T09:03:11","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=ht_kb&#038;p=8673"},"modified":"2024-06-21T08:30:42","modified_gmt":"2024-06-21T08:30:42","password":"","slug":"update-your-wordpress-password-using-wp-cli","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/update-your-wordpress-password-using-wp-cli\/","title":{"rendered":"How To Update Your WordPress Password Using WP-CLI"},"content":{"rendered":"\n<p>Today, WordPress is the most used site manager. This guide will help you update your WordPress password using WP-CLI.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>What is WP-CLI?<\/strong><\/h3>\n\n\n\n<p>It\u2019s a command-line interface for WordPress. Use it to update plugins, configure multisite installations, and much more without using a web browser.<\/p>\n\n\n\n<p>Interact directly with your <a href=\"https:\/\/truehost.com\/support\/knowledge-base\/fix-error-403-forbidden\/\">WordPress site<\/a> using the WP-CLI&#8217;s text-based interface and commands.<\/p>\n\n\n\n<p>It also has a huge selection of potential commands, making it complete. The WP-CLI makes almost any task you can complete on your website&#8217;s back end significantly quicker.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Is WP-CLI reliable for changing WordPress Passwords?<\/strong><\/h3>\n\n\n\n<p>Yes, WP-CLI is a reliable tool for changing WordPress passwords. It is a command-line interface that allows you to manage WordPress sites from the command line.&nbsp;<\/p>\n\n\n\n<p>It is a secure and efficient way to change WordPress passwords, backed by a large community of developers.<\/p>\n\n\n\n<p>Here is why;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>It is easy to use- the WP-CLI commands for changing passwords are straightforward.<\/li><li>Officially supported- it is actively maintained and regularly updated to ensure compatibility with the latest versions of WordPress.<\/li><li>Direct interaction with the database-WP-CLI directly interacts with the WordPress database, ensuring that password changes are made securely and accurately.&nbsp;<\/li><li>Efficient and convenient- WP-CLI allows you to perform administrative tasks efficiently. It saves time by enabling you to execute commands directly from the command line without a web browser.<\/li><li>Control and flexibility- WP-CLI provides control over WordPress settings and user accounts. It allows you to update passwords for specific users, making it suitable for scenarios where you need to change a password for a particular account without affecting others.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Let\u2019s update your WordPress password using WP-CLI&nbsp;<\/strong><\/h2>\n\n\n\n<p>Before you can connect, you need the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>SSH application, Windows users get <a href=\"https:\/\/www.putty.org\/\">PuTTY <\/a>as for macOS Terminal works.<\/li><li>Have your FTP login information from your host.<\/li><\/ul>\n\n\n\n<ol class=\"wp-block-list\"><li>Connect to your account using SSH<\/li><\/ol>\n\n\n\n<p>Ensure you have enabled SSH on your account. It allows you to access your server remotely using SSH applications.<\/p>\n\n\n\n<p>Start your SSH program and enter the Host Name (your domain name or IP address) and Port (22 for SSH) in the corresponding fields.<\/p>\n\n\n\n<p>Enter your FTP username and password when prompted.<\/p>\n\n\n\n<ol class=\"wp-block-list\" start=\"2\"><li>To list files and folders, use the bash command ls. Navigate between directories and find the directory containing your WordPress files; use cd and..\/.<\/li><li>To view a list of users for your WordPress site, enter the following command; \u201cwp user list\u201d Write down the user&#8217;s ID number whose information you want to edit.<\/li><li>To change the user&#8217;s password, type the next command. \u201cwp user update id &#8211;user_pass=password\u201d<\/li><\/ol>\n\n\n\n<p>In the command above, you should replace the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Replace &#8220;id&#8221; with the number you noticed in Step 3 in the command above.<\/li><li>Password with your new secure password.<\/li><\/ul>\n\n\n\n<p>Now that you have a new password, you may log in. That was easy, right? Use WP-CLI today and have more convenience!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, WordPress is the most used site manager. This guide will help you update your WordPress password using WP-CLI. What is WP-CLI? It\u2019s a command-line interface for WordPress. Use it to update plugins, configure multisite installations, and much more without using a web browser. Interact directly with your WordPress site using the WP-CLI&#8217;s text-based interface [&hellip;]<\/p>\n","protected":false},"author":23,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[1838],"doc_tag":[],"class_list":["post-8673","docs","type-docs","status-publish","hentry","doc_category-wordpress"],"year_month":"2026-07","word_count":473,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"Mark","author_nicename":"mark","author_url":"https:\/\/truehost.com\/support\/author\/mark\/"},"doc_category_info":[{"term_name":"WordPress","term_url":"https:\/\/truehost.com\/support\/docs-category\/wordpress\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Update Your WordPress Password Using WP-CLI<\/title>\n<meta name=\"description\" content=\"Want to update your WordPress password using WP-CLI? Here is a guide, also learn more about WP-CLI to ensure effective use and convenience!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/truehost.com\/support\/knowledge-base\/update-your-wordpress-password-using-wp-cli\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Update Your WordPress Password Using WP-CLI\" \/>\n<meta property=\"og:description\" content=\"Want to update your WordPress password using WP-CLI? Here is a guide, also learn more about WP-CLI to ensure effective use and convenience!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/truehost.com\/support\/knowledge-base\/update-your-wordpress-password-using-wp-cli\/\" \/>\n<meta property=\"article:modified_time\" content=\"2024-06-21T08:30:42+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/update-your-wordpress-password-using-wp-cli\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/update-your-wordpress-password-using-wp-cli\\\/\",\"name\":\"How To Update Your WordPress Password Using WP-CLI\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"datePublished\":\"2023-06-23T09:03:11+00:00\",\"dateModified\":\"2024-06-21T08:30:42+00:00\",\"description\":\"Want to update your WordPress password using WP-CLI? Here is a guide, also learn more about WP-CLI to ensure effective use and convenience!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/update-your-wordpress-password-using-wp-cli\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/update-your-wordpress-password-using-wp-cli\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/knowledge-base\\\/update-your-wordpress-password-using-wp-cli\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Update Your WordPress Password Using WP-CLI\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Update Your WordPress Password Using WP-CLI","description":"Want to update your WordPress password using WP-CLI? Here is a guide, also learn more about WP-CLI to ensure effective use and convenience!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/truehost.com\/support\/knowledge-base\/update-your-wordpress-password-using-wp-cli\/","og_locale":"en_US","og_type":"article","og_title":"How To Update Your WordPress Password Using WP-CLI","og_description":"Want to update your WordPress password using WP-CLI? Here is a guide, also learn more about WP-CLI to ensure effective use and convenience!","og_url":"https:\/\/truehost.com\/support\/knowledge-base\/update-your-wordpress-password-using-wp-cli\/","article_modified_time":"2024-06-21T08:30:42+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/truehost.com\/support\/knowledge-base\/update-your-wordpress-password-using-wp-cli\/","url":"https:\/\/truehost.com\/support\/knowledge-base\/update-your-wordpress-password-using-wp-cli\/","name":"How To Update Your WordPress Password Using WP-CLI","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"datePublished":"2023-06-23T09:03:11+00:00","dateModified":"2024-06-21T08:30:42+00:00","description":"Want to update your WordPress password using WP-CLI? Here is a guide, also learn more about WP-CLI to ensure effective use and convenience!","breadcrumb":{"@id":"https:\/\/truehost.com\/support\/knowledge-base\/update-your-wordpress-password-using-wp-cli\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/truehost.com\/support\/knowledge-base\/update-your-wordpress-password-using-wp-cli\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/truehost.com\/support\/knowledge-base\/update-your-wordpress-password-using-wp-cli\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How To Update Your WordPress Password Using WP-CLI"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/8673","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/23"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=8673"}],"version-history":[{"count":1,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/8673\/revisions"}],"predecessor-version":[{"id":8674,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/8673\/revisions\/8674"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=8673"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=8673"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=8673"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}