{"id":398,"date":"2021-02-28T14:07:45","date_gmt":"2021-02-28T05:07:45","guid":{"rendered":"https:\/\/www.tiptip.today\/?p=398"},"modified":"2021-02-28T14:22:10","modified_gmt":"2021-02-28T05:22:10","slug":"update-wordpress-version-using-cli","status":"publish","type":"post","link":"https:\/\/tippang.net\/?p=398","title":{"rendered":"Update WordPress on Linux console"},"content":{"rendered":"<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-399\" src=\"https:\/\/www.tiptip.today\/wp-content\/uploads\/2021\/02\/wordpress-581849_1920-300x160.jpg\" alt=\"\" width=\"300\" height=\"160\" srcset=\"https:\/\/tippang.net\/wp-content\/uploads\/2021\/02\/wordpress-581849_1920-300x160.jpg 300w, https:\/\/tippang.net\/wp-content\/uploads\/2021\/02\/wordpress-581849_1920-1024x546.jpg 1024w, https:\/\/tippang.net\/wp-content\/uploads\/2021\/02\/wordpress-581849_1920-768x410.jpg 768w, https:\/\/tippang.net\/wp-content\/uploads\/2021\/02\/wordpress-581849_1920-1536x819.jpg 1536w, https:\/\/tippang.net\/wp-content\/uploads\/2021\/02\/wordpress-581849_1920.jpg 1920w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p><em><strong>Update WordPress by Linux Console Command<\/strong><\/em><\/p>\n<p>$ wp core update<br \/>\nUpdating to version 4.5.2 (en_US)&#8230;<br \/>\nDownloading update from https:\/\/downloads.wordpress.org\/release\/wordpress-4.5.2-no-content.zip&#8230;<br \/>\nUnpacking the update&#8230;<\/p>\n<p><!--more--><br \/>\nCleaning up files&#8230;<br \/>\nNo files found that need cleaning up<br \/>\nSuccess: WordPress updated successfully.<!--more--><\/p>\n<p>If doesn&#8217;t work, you can download from wordpress.com as a file and move to folder &#8220;\/var\/www\/WordPress&#8221; and run a command &#8220;wp core update .\/wordpress-5.5.1.zip&#8221; and also have the account www-data be logged in (login as www-data (\/etc\/passwd -&amp;gt; \/usr\/sbin\/nologin -&amp;gt; \/bin\/bash temporarily)<\/p>\n<p># Update WordPress to latest version of 3.8 release<br \/>\n$ wp core update &#8211;version=3.8 ..\/latest.zip<br \/>\nUpdating to version 3.8 ()&#8230;<br \/>\nUnpacking the update&#8230;<br \/>\nCleaning up files&#8230;<br \/>\nFile removed: wp-admin\/js\/tags-box.js<br \/>\n&#8230;<br \/>\nFile removed: wp-admin\/js\/updates.min.<br \/>\n377 files cleaned up<br \/>\nSuccess: WordPress updated successfully.<\/p>\n<p># Update WordPress to 3.1 forcefully<br \/>\n$ wp core update &#8211;version=3.1 &#8211;force<br \/>\nUpdating to version 3.1 (en_US)&#8230;<br \/>\nDownloading update from https:\/\/wordpress.org\/wordpress-3.1.zip&#8230;<br \/>\nUnpacking the update&#8230;<br \/>\nWarning: Checksums not available for WordPress 3.1\/en_US. Please cleanup files manually.<br \/>\nSuccess: WordPress updated successfully.<\/p>\n<p>wp core update-db<br \/>\nRuns the WordPress database update procedure.<\/p>\n<p>wp core update-db [&#8211;network] [&#8211;dry-run]\n[&#8211;network]\n<p>Update databases for all sites on a network\u00a0[&#8211;dry-run]\nCompare database versions without performing the update.<br \/>\nEXAMPLES<\/p>\n<p># Update the WordPress database<br \/>\n$ wp core update-db<br \/>\nSuccess: WordPress database upgraded successfully from db version 36686 to 35700.<\/p>\n<p># Update databases for all sites on a network<br \/>\n$ wp core update-db &#8211;network<br \/>\nWordPress database upgraded successfully from db version 35700 to 29630 on example.com\/<br \/>\nSuccess: WordPress database upgraded on 123\/123 sites<\/p>\n<p>wp core version<br \/>\nDisplays the WordPress version.<\/p>\n<p>wp core version [&#8211;extra]\nOPTIONS [&#8211;extra]\nShow extended version information.<br \/>\nEXAMPLES<\/p>\n<p># Display the WordPress version<br \/>\n$ wp core version<br \/>\n4.5.2<\/p>\n<p># Display WordPress version along with other information<br \/>\n$ wp core version &#8211;extra<br \/>\nWordPress version: 4.5.2<br \/>\nDatabase revision: 36686<br \/>\nTinyMCE version: 4.310 (4310-20160418)<br \/>\nPackage language: en_US<br \/>\n&lt;p style=&#8221;text-align: center;&#8221;&gt;[\ucd9c\ucc98] wp-cli &lt;a href=&#8221;https:\/\/github.com\/wp-cli\/core-command&#8221;&gt;go&lt;\/a&gt;&lt;\/p&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Update WordPress by Linux Console Command $ wp core update Updating to version 4.5.2 (en_US)&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"footnotes":""},"categories":[7,28],"tags":[29],"class_list":["post-398","post","type-post","status-publish","format-standard","hentry","category-itexpert","category-wordpress","tag-wordpress-linux-upgrade"],"aioseo_notices":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Update WordPress on Linux console - tippang.net<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tippang.net\/?p=398\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"og:locale\" content=\"en_US\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"og:type\" content=\"article\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"og:title\" content=\"Update WordPress on Linux console - tippang.net\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"og:description\" content=\"Update WordPress by Linux Console Command $ wp core update Updating to version 4.5.2 (en_US)&#8230;\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tippang.net\/?p=398\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"og:site_name\" content=\"tippang.net\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"article:published_time\" content=\"2021-02-28T05:07:45+00:00\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-28T05:22:10+00:00\" class=\"yoast-seo-meta-tag\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.tiptip.today\/wp-content\/uploads\/2021\/02\/wordpress-581849_1920-300x160.jpg\" class=\"yoast-seo-meta-tag\" \/>\n<meta name=\"author\" content=\"Charles\" class=\"yoast-seo-meta-tag\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" class=\"yoast-seo-meta-tag\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" class=\"yoast-seo-meta-tag\" \/>\n\t<meta name=\"twitter:data1\" content=\"Charles\" class=\"yoast-seo-meta-tag\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" class=\"yoast-seo-meta-tag\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" class=\"yoast-seo-meta-tag\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/tippang.net\/?p=398#article\",\"isPartOf\":{\"@id\":\"https:\/\/tippang.net\/?p=398\"},\"author\":{\"name\":\"Charles\",\"@id\":\"https:\/\/tippang.net\/#\/schema\/person\/d1b0d568e5385a89b638f3eedf2dca86\"},\"headline\":\"Update WordPress on Linux console\",\"datePublished\":\"2021-02-28T05:07:45+00:00\",\"dateModified\":\"2021-02-28T05:22:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/tippang.net\/?p=398\"},\"wordCount\":330,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/tippang.net\/#organization\"},\"image\":{\"@id\":\"https:\/\/tippang.net\/?p=398#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.tiptip.today\/wp-content\/uploads\/2021\/02\/wordpress-581849_1920-300x160.jpg\",\"keywords\":[\"wordpress linux upgrade\"],\"articleSection\":[\"ITEXPERT\",\"Wordpress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/tippang.net\/?p=398#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tippang.net\/?p=398\",\"url\":\"https:\/\/tippang.net\/?p=398\",\"name\":\"Update WordPress on Linux console - tippang.net\",\"isPartOf\":{\"@id\":\"https:\/\/tippang.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tippang.net\/?p=398#primaryimage\"},\"image\":{\"@id\":\"https:\/\/tippang.net\/?p=398#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.tiptip.today\/wp-content\/uploads\/2021\/02\/wordpress-581849_1920-300x160.jpg\",\"datePublished\":\"2021-02-28T05:07:45+00:00\",\"dateModified\":\"2021-02-28T05:22:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/tippang.net\/?p=398#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tippang.net\/?p=398\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tippang.net\/?p=398#primaryimage\",\"url\":\"https:\/\/www.tiptip.today\/wp-content\/uploads\/2021\/02\/wordpress-581849_1920-300x160.jpg\",\"contentUrl\":\"https:\/\/www.tiptip.today\/wp-content\/uploads\/2021\/02\/wordpress-581849_1920-300x160.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tippang.net\/?p=398#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tippang.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update WordPress on Linux console\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tippang.net\/#website\",\"url\":\"https:\/\/tippang.net\/\",\"name\":\"tippang.net\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/tippang.net\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tippang.net\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/tippang.net\/#organization\",\"name\":\"tippang.net\",\"url\":\"https:\/\/tippang.net\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tippang.net\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/tippang.net\/wp-content\/uploads\/2021\/02\/cropped-\u110e\u1162\u1102\u1165\u11af\u110b\u1161\u110b\u1175\u110f\u1169\u11ab1_\u1100\u1165\u1107\u116e\u11a8\u110b\u1175.png\",\"contentUrl\":\"https:\/\/tippang.net\/wp-content\/uploads\/2021\/02\/cropped-\u110e\u1162\u1102\u1165\u11af\u110b\u1161\u110b\u1175\u110f\u1169\u11ab1_\u1100\u1165\u1107\u116e\u11a8\u110b\u1175.png\",\"width\":280,\"height\":280,\"caption\":\"tippang.net\"},\"image\":{\"@id\":\"https:\/\/tippang.net\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/tippang.net\/#\/schema\/person\/d1b0d568e5385a89b638f3eedf2dca86\",\"name\":\"Charles\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/tippang.net\/#\/schema\/person\/image\/\",\"url\":\"\/\/www.gravatar.com\/avatar\/3a452b00f5e85211cbb28d2708d7f18f?s=96&#038;r=g&#038;d=wavatar\",\"contentUrl\":\"\/\/www.gravatar.com\/avatar\/3a452b00f5e85211cbb28d2708d7f18f?s=96&#038;r=g&#038;d=wavatar\",\"caption\":\"Charles\"},\"description\":\"An IT Guy On earth\",\"sameAs\":[\"https:\/\/www.tiptip.today\"],\"url\":\"https:\/\/tippang.net\/author\/cm201705\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Update WordPress on Linux console - tippang.net","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:\/\/tippang.net\/?p=398","og_locale":"en_US","og_type":"article","og_title":"Update WordPress on Linux console - tippang.net","og_description":"Update WordPress by Linux Console Command $ wp core update Updating to version 4.5.2 (en_US)&#8230;","og_url":"https:\/\/tippang.net\/?p=398","og_site_name":"tippang.net","article_published_time":"2021-02-28T05:07:45+00:00","article_modified_time":"2021-02-28T05:22:10+00:00","og_image":[{"url":"https:\/\/www.tiptip.today\/wp-content\/uploads\/2021\/02\/wordpress-581849_1920-300x160.jpg","type":"","width":"","height":""}],"author":"Charles","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Charles","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tippang.net\/?p=398#article","isPartOf":{"@id":"https:\/\/tippang.net\/?p=398"},"author":{"name":"Charles","@id":"https:\/\/tippang.net\/#\/schema\/person\/d1b0d568e5385a89b638f3eedf2dca86"},"headline":"Update WordPress on Linux console","datePublished":"2021-02-28T05:07:45+00:00","dateModified":"2021-02-28T05:22:10+00:00","mainEntityOfPage":{"@id":"https:\/\/tippang.net\/?p=398"},"wordCount":330,"commentCount":0,"publisher":{"@id":"https:\/\/tippang.net\/#organization"},"image":{"@id":"https:\/\/tippang.net\/?p=398#primaryimage"},"thumbnailUrl":"https:\/\/www.tiptip.today\/wp-content\/uploads\/2021\/02\/wordpress-581849_1920-300x160.jpg","keywords":["wordpress linux upgrade"],"articleSection":["ITEXPERT","Wordpress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/tippang.net\/?p=398#respond"]}]},{"@type":"WebPage","@id":"https:\/\/tippang.net\/?p=398","url":"https:\/\/tippang.net\/?p=398","name":"Update WordPress on Linux console - tippang.net","isPartOf":{"@id":"https:\/\/tippang.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tippang.net\/?p=398#primaryimage"},"image":{"@id":"https:\/\/tippang.net\/?p=398#primaryimage"},"thumbnailUrl":"https:\/\/www.tiptip.today\/wp-content\/uploads\/2021\/02\/wordpress-581849_1920-300x160.jpg","datePublished":"2021-02-28T05:07:45+00:00","dateModified":"2021-02-28T05:22:10+00:00","breadcrumb":{"@id":"https:\/\/tippang.net\/?p=398#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tippang.net\/?p=398"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tippang.net\/?p=398#primaryimage","url":"https:\/\/www.tiptip.today\/wp-content\/uploads\/2021\/02\/wordpress-581849_1920-300x160.jpg","contentUrl":"https:\/\/www.tiptip.today\/wp-content\/uploads\/2021\/02\/wordpress-581849_1920-300x160.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/tippang.net\/?p=398#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tippang.net\/"},{"@type":"ListItem","position":2,"name":"Update WordPress on Linux console"}]},{"@type":"WebSite","@id":"https:\/\/tippang.net\/#website","url":"https:\/\/tippang.net\/","name":"tippang.net","description":"","publisher":{"@id":"https:\/\/tippang.net\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tippang.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/tippang.net\/#organization","name":"tippang.net","url":"https:\/\/tippang.net\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tippang.net\/#\/schema\/logo\/image\/","url":"https:\/\/tippang.net\/wp-content\/uploads\/2021\/02\/cropped-\u110e\u1162\u1102\u1165\u11af\u110b\u1161\u110b\u1175\u110f\u1169\u11ab1_\u1100\u1165\u1107\u116e\u11a8\u110b\u1175.png","contentUrl":"https:\/\/tippang.net\/wp-content\/uploads\/2021\/02\/cropped-\u110e\u1162\u1102\u1165\u11af\u110b\u1161\u110b\u1175\u110f\u1169\u11ab1_\u1100\u1165\u1107\u116e\u11a8\u110b\u1175.png","width":280,"height":280,"caption":"tippang.net"},"image":{"@id":"https:\/\/tippang.net\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/tippang.net\/#\/schema\/person\/d1b0d568e5385a89b638f3eedf2dca86","name":"Charles","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/tippang.net\/#\/schema\/person\/image\/","url":"\/\/www.gravatar.com\/avatar\/3a452b00f5e85211cbb28d2708d7f18f?s=96&#038;r=g&#038;d=wavatar","contentUrl":"\/\/www.gravatar.com\/avatar\/3a452b00f5e85211cbb28d2708d7f18f?s=96&#038;r=g&#038;d=wavatar","caption":"Charles"},"description":"An IT Guy On earth","sameAs":["https:\/\/www.tiptip.today"],"url":"https:\/\/tippang.net\/author\/cm201705"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/tippang.net\/index.php?rest_route=\/wp\/v2\/posts\/398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tippang.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tippang.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tippang.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tippang.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=398"}],"version-history":[{"count":4,"href":"https:\/\/tippang.net\/index.php?rest_route=\/wp\/v2\/posts\/398\/revisions"}],"predecessor-version":[{"id":408,"href":"https:\/\/tippang.net\/index.php?rest_route=\/wp\/v2\/posts\/398\/revisions\/408"}],"wp:attachment":[{"href":"https:\/\/tippang.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tippang.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tippang.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}