{"id":4551,"date":"2020-12-08T14:44:25","date_gmt":"2020-12-08T13:44:25","guid":{"rendered":"https:\/\/www.utilewebsites.nl\/knowledgebase\/install-wp-cli-on-your-server-update-wordpress-via-commandline\/"},"modified":"2023-04-06T08:12:10","modified_gmt":"2023-04-06T07:12:10","slug":"install-wp-cli-on-your-server-update-wordpress-via-commandline","status":"publish","type":"wz_knowledgebase","link":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/install-wp-cli-on-your-server-update-wordpress-via-commandline\/","title":{"rendered":"Install wp-cli on your server \/ Update wordpress via Commandline"},"content":{"rendered":"\n<p>Install wp-cli on your server<\/p>\n\n<p>step 1 :<br\/>Download file :<br\/>[user@server]$ <strong>curl -O https:\/\/raw.githubusercontent.com\/wp-cli\/builds\/gh-pages\/phar\/wp-cli.phar<\/strong><\/p>\n\n<p>Step 2 :<br\/>check if the file works<br\/>[user@server]$ <strong>php wp-cli.phar -info ( or php wp-cli.phar -info --allow-root)<\/strong><\/p>\n\n<p>To use WP-CLI from the command line by typing wp, make the file executable and move it to somewhere in your PATH. For example:<br\/><strong>\/chmod +x wp-cli.phar<br\/>\/sudo mv wp-cli.phar \/usr\/local\/bin\/wp<\/strong><\/p>\n\n<ul class=\"wp-block-list\"><li>note : --allow-root : If you are using it as root user on your server<\/li><\/ul>\n\n<p>Check which version you are using :<br\/>[user@server]$ <strong>wp core version (or php wp-cli.phar core version --allow-root )<\/strong><\/p>\n\n<p>Update WordPress Core :<br\/>[user@server]$ <strong>wp core update (or php wp-cli.phar core update --allow-root )<\/strong><\/p>\n\n<p class=\"has-black-color has-text-color\">Overview Cli wp commands :<\/p>\n\n<p class=\"has-vivid-cyan-blue-color has-text-color\"> <a rel=\"noreferrer noopener\" href=\"https:\/\/developer.wordpress.org\/cli\/commands\/\" target=\"_blank\">https:\/\/developer.wordpress.org\/cli\/commands\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install wp-cli on your server step 1 :Download file :[user@server]$ curl -O https:\/\/raw.githubusercontent.com\/wp-cli\/builds\/gh-pages\/phar\/wp-cli.phar Step 2 :check if the file works[user@server]$ php wp-cli.phar -info ( or php wp-cli.phar -info --allow-root) To use WP-CLI from the command line by typing wp, make the file executable and move it to somewhere in your PATH. For example:\/chmod +x wp-cli.phar\/sudo mv wp-cli.phar \/usr\/local\/bin\/wp note : --allow-root : If you are using it as root user on your server Check which version you are using :[user@server]$ wp core version (or php wp-cli.phar core version --allow-root ) Update WordPress Core :[user@server]$ wp core update (or php wp-cli.phar&nbsp;<a href=\"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/install-wp-cli-on-your-server-update-wordpress-via-commandline\/\" class=\"read-more\">Continue Reading<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"wzkb_category":[63],"wzkb_tag":[],"class_list":["post-4551","wz_knowledgebase","type-wz_knowledgebase","status-publish","hentry","wzkb_category-themas"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Install wp-cli on your server \/ Update wordpress via Commandline - Utilewebsites<\/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:\/\/www.utilewebsites.nl\/en\/knowledgebase\/install-wp-cli-on-your-server-update-wordpress-via-commandline\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install wp-cli on your server \/ Update wordpress via Commandline - Utilewebsites\" \/>\n<meta property=\"og:description\" content=\"Install wp-cli on your server step 1 :Download file :[user@server]$ curl -O https:\/\/raw.githubusercontent.com\/wp-cli\/builds\/gh-pages\/phar\/wp-cli.phar Step 2 :check if the file works[user@server]$ php wp-cli.phar -info ( or php wp-cli.phar -info --allow-root) To use WP-CLI from the command line by typing wp, make the file executable and move it to somewhere in your PATH. For example:\/chmod +x wp-cli.phar\/sudo mv wp-cli.phar \/usr\/local\/bin\/wp note : --allow-root : If you are using it as root user on your server Check which version you are using :[user@server]$ wp core version (or php wp-cli.phar core version --allow-root ) Update WordPress Core :[user@server]$ wp core update (or php wp-cli.phar&nbsp;Continue Reading\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/install-wp-cli-on-your-server-update-wordpress-via-commandline\/\" \/>\n<meta property=\"og:site_name\" content=\"Utilewebsites\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-06T07:12:10+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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/install-wp-cli-on-your-server-update-wordpress-via-commandline\\\/\",\"url\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/install-wp-cli-on-your-server-update-wordpress-via-commandline\\\/\",\"name\":\"Install wp-cli on your server \\\/ Update wordpress via Commandline - Utilewebsites\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#website\"},\"datePublished\":\"2020-12-08T13:44:25+00:00\",\"dateModified\":\"2023-04-06T07:12:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/install-wp-cli-on-your-server-update-wordpress-via-commandline\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/install-wp-cli-on-your-server-update-wordpress-via-commandline\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/install-wp-cli-on-your-server-update-wordpress-via-commandline\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Knowledge Base\",\"item\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/knowledgebase\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Install wp-cli on your server \\\/ Update wordpress via Commandline\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/\",\"name\":\"Utilewebsites\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#organization\",\"name\":\"Utilewebsites\",\"url\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.utilewebsites.nl\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/logo-Utilewebsites-2017.png\",\"contentUrl\":\"https:\\\/\\\/www.utilewebsites.nl\\\/wp-content\\\/uploads\\\/2019\\\/08\\\/logo-Utilewebsites-2017.png\",\"width\":3000,\"height\":593,\"caption\":\"Utilewebsites\"},\"image\":{\"@id\":\"https:\\\/\\\/www.utilewebsites.nl\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Install wp-cli on your server \/ Update wordpress via Commandline - Utilewebsites","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:\/\/www.utilewebsites.nl\/en\/knowledgebase\/install-wp-cli-on-your-server-update-wordpress-via-commandline\/","og_locale":"en_US","og_type":"article","og_title":"Install wp-cli on your server \/ Update wordpress via Commandline - Utilewebsites","og_description":"Install wp-cli on your server step 1 :Download file :[user@server]$ curl -O https:\/\/raw.githubusercontent.com\/wp-cli\/builds\/gh-pages\/phar\/wp-cli.phar Step 2 :check if the file works[user@server]$ php wp-cli.phar -info ( or php wp-cli.phar -info --allow-root) To use WP-CLI from the command line by typing wp, make the file executable and move it to somewhere in your PATH. For example:\/chmod +x wp-cli.phar\/sudo mv wp-cli.phar \/usr\/local\/bin\/wp note : --allow-root : If you are using it as root user on your server Check which version you are using :[user@server]$ wp core version (or php wp-cli.phar core version --allow-root ) Update WordPress Core :[user@server]$ wp core update (or php wp-cli.phar&nbsp;Continue Reading","og_url":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/install-wp-cli-on-your-server-update-wordpress-via-commandline\/","og_site_name":"Utilewebsites","article_modified_time":"2023-04-06T07:12:10+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/install-wp-cli-on-your-server-update-wordpress-via-commandline\/","url":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/install-wp-cli-on-your-server-update-wordpress-via-commandline\/","name":"Install wp-cli on your server \/ Update wordpress via Commandline - Utilewebsites","isPartOf":{"@id":"https:\/\/www.utilewebsites.nl\/en\/#website"},"datePublished":"2020-12-08T13:44:25+00:00","dateModified":"2023-04-06T07:12:10+00:00","breadcrumb":{"@id":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/install-wp-cli-on-your-server-update-wordpress-via-commandline\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/install-wp-cli-on-your-server-update-wordpress-via-commandline\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/install-wp-cli-on-your-server-update-wordpress-via-commandline\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.utilewebsites.nl\/en\/"},{"@type":"ListItem","position":2,"name":"Knowledge Base","item":"https:\/\/www.utilewebsites.nl\/en\/knowledgebase\/"},{"@type":"ListItem","position":3,"name":"Install wp-cli on your server \/ Update wordpress via Commandline"}]},{"@type":"WebSite","@id":"https:\/\/www.utilewebsites.nl\/en\/#website","url":"https:\/\/www.utilewebsites.nl\/en\/","name":"Utilewebsites","description":"","publisher":{"@id":"https:\/\/www.utilewebsites.nl\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.utilewebsites.nl\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.utilewebsites.nl\/en\/#organization","name":"Utilewebsites","url":"https:\/\/www.utilewebsites.nl\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.utilewebsites.nl\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.utilewebsites.nl\/wp-content\/uploads\/2019\/08\/logo-Utilewebsites-2017.png","contentUrl":"https:\/\/www.utilewebsites.nl\/wp-content\/uploads\/2019\/08\/logo-Utilewebsites-2017.png","width":3000,"height":593,"caption":"Utilewebsites"},"image":{"@id":"https:\/\/www.utilewebsites.nl\/en\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wz_knowledgebase\/4551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wz_knowledgebase"}],"about":[{"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/types\/wz_knowledgebase"}],"author":[{"embeddable":true,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/comments?post=4551"}],"version-history":[{"count":1,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wz_knowledgebase\/4551\/revisions"}],"predecessor-version":[{"id":4552,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wz_knowledgebase\/4551\/revisions\/4552"}],"wp:attachment":[{"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/media?parent=4551"}],"wp:term":[{"taxonomy":"wzkb_category","embeddable":true,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wzkb_category?post=4551"},{"taxonomy":"wzkb_tag","embeddable":true,"href":"https:\/\/www.utilewebsites.nl\/en\/wp-json\/wp\/v2\/wzkb_tag?post=4551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}