{"id":7633,"date":"2017-01-18T15:30:49","date_gmt":"2017-01-18T13:30:49","guid":{"rendered":"https:\/\/help.superhosting.bg\/?p=7633"},"modified":"2025-10-17T09:44:45","modified_gmt":"2025-10-17T06:44:45","slug":"wp-cli-install","status":"publish","type":"ht_kb","link":"https:\/\/help.superhosting.bg\/en\/wp-cli-install.html","title":{"rendered":"WP-CLI Installation"},"content":{"rendered":"<div class=\"wp-block-ht-blocks-messages wp-block-hb-message wp-block-hb-message--withicon\"><a title=\"WP-CLI - Managing WordPress via SSH | Help SuperHosting.BG\" href=\"https:\/\/help.superhosting.bg\/en\/wp-cli.html\">WP-CLI<\/a> is installed on all\u00a0<a class=\"helplinkext\" title=\"Hosting Plans - SuperHosting.BG\" href=\"https:\/\/en.superhosting.bg\/web-hosting-compare-hosting-plans.php\" target=\"_blank\" rel=\"noopener noreferrer\">Linux shared hosting servers<\/a> with SuperHosting.BG. In cPanel -&gt; <a title=\"WordPress Manager by SuperHosting - Help SuperHosting.BG\" href=\"https:\/\/help.superhosting.bg\/en\/wordpress-manager-by-superhosting.html\">Manager for WordPress by SuperHosting<\/a>\u00a0-&gt;\u00a0WP-CLI\u00a0you can check whether WP-CLI is enabled for your hosting account.<\/div>\n<p>This article might be used for installing WP-CLI into a Linux hosting service where it has not been installed by default.<\/p>\n<p><b>1.<\/b> You first need to install the\u00a0composer. For this purpose access the account&#8217;s home directory \/home\/cpaneluser\u00a0via SSH and execute the following command:<\/p>\n<div class=\"codecommandgr\">php -r &#8220;readfile(&#8216;https:\/\/getcomposer.org\/installer&#8217;);&#8221; | php<\/div>\n<p>Note: cpaneluser is the username for the hosting account.<\/p>\n<p>The system will load the following message:<\/p>\n<p><a href=\"https:\/\/help.superhosting.bg\/wp-content\/uploads\/images\/wpcli-install-composer-01-b.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"img-border2 alignnone\" title=\"Installing Composer\" src=\"\/wp-content\/uploads\/images\/wpcli-install-composer-01-a1.png\" alt=\"Installing Composer\" width=\"490\" height=\"115\" \/><\/a><\/p>\n<p><b>2.<\/b> After the composer has been successfully installed, you can continue with WP-CLI installation as well. While you are still in the home directory, execute this command:<\/p>\n<div class=\"codecommandgr\">php composer.phar create-project wp-cli\/wp-cli &#8211;no-dev<\/div>\n<p>The following window will appear:<\/p>\n<p><a href=\"https:\/\/help.superhosting.bg\/wp-content\/uploads\/images\/wpcli-install-wpcli-01-b-1.png\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" class=\"img-border2 alignnone\" title=\"Installing WP-CLI\" src=\"\/wp-content\/uploads\/images\/wpcli-install-wpcli-01-a.png\" alt=\"Installing WP-CLI\" width=\"442\" height=\"404\" \/><\/a><\/p>\n<p><b>3.<\/b> In the \/home\/cpaneluser\/<strong>.bash_profile<\/strong> fil\u0435 you need to add the following line:<\/p>\n<div class=\"codecommandgr\">export PATH=\/home\/cpaneluser\/wp-cli\/bin:$PATH<\/div>\n<p><b>4.\u00a0<\/b>The <strong>.bash_profile<\/strong> file should be reloaded:<\/p>\n<div class=\"codecommandgr\">source ~\/.bash_profile<\/div>\n<p><b>5.<\/b>The \/home\/cpaneluser\/wp-cli\/bin\/<strong>wp<\/strong>\u00a0file needs to have\u00a0<strong>0755<\/strong> permissions.<\/p>\n<p><b>6.<\/b> If configuration has been successful, the command:<\/p>\n<div class=\"codecommandgr\">wp &#8211;info<\/div>\n<p>will show WP-CLI&#8217;s current status:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"img-border2 aligncenter\" title=\"WP-CLI info\" src=\"\/wp-content\/uploads\/images\/wpcli-show-info-wpcli-01.png\" alt=\"WP-CLI info\" width=\"410\" height=\"162\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In cPanel ->\u00a0Manager for WordPress by SuperHosting\u00a0->\u00a0WP-CLI\u00a0you can check whether WP-CLI is enabled for your hosting account.<\/p>\n","protected":false},"author":11,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"inline_featured_image":false,"_lmt_disableupdate":"","_lmt_disable":"no","footnotes":""},"ht-kb-category":[189],"ht-kb-tag":[],"class_list":["post-7633","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-wordpress"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"In cPanel -&gt; Manager for WordPress by SuperHosting -&gt; WP-CLI you can check whether WP-CLI is enabled for your hosting account.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"SuperHosting.BG\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/help.superhosting.bg\/en\/wp-cli-install.html\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\n\t\t<link rel=\"shortcut icon\" href=\"https:\/\/help.superhosting.bg\/favicon.ico\" type=\"image\/x-icon\">\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"KnowledgeBase | Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"WP-CLI Installation | KnowledgeBase\" \/>\n\t\t<meta property=\"og:description\" content=\"In cPanel -&gt; Manager for WordPress by SuperHosting -&gt; WP-CLI you can check whether WP-CLI is enabled for your hosting account.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/help.superhosting.bg\/en\/wp-cli-install.html\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2017-01-18T13:30:49+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2025-10-17T06:44:45+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/superhosting\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@superhostingbg\" \/>\n\t\t<meta name=\"twitter:title\" content=\"WP-CLI Installation | KnowledgeBase\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In cPanel -&gt; Manager for WordPress by SuperHosting -&gt; WP-CLI you can check whether WP-CLI is enabled for your hosting account.\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@superhostingbg\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/wp-cli-install.html#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en#listItem\",\"position\":1,\"name\":\"\\u041d\\u0430\\u0447\\u0430\\u043b\\u043e\",\"item\":\"https:\\\/\\\/help.superhosting.bg\\\/en\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/category\\\/wordpress#listItem\",\"name\":\"WordPress (CMS)\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/category\\\/wordpress#listItem\",\"position\":2,\"name\":\"WordPress (CMS)\",\"item\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/category\\\/wordpress\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/wp-cli-install.html#listItem\",\"name\":\"WP-CLI Installation\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en#listItem\",\"name\":\"\\u041d\\u0430\\u0447\\u0430\\u043b\\u043e\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/wp-cli-install.html#listItem\",\"position\":3,\"name\":\"WP-CLI Installation\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/category\\\/wordpress#listItem\",\"name\":\"WordPress (CMS)\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/#organization\",\"name\":\"SuperHosting.BG\",\"description\":\"Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/SH-LogotypeEN-ScreenOrange-Three-800-01.png\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/wp-cli-install.html\\\/#organizationLogo\",\"width\":800,\"height\":436},\"image\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/wp-cli-install.html\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/superhosting\",\"https:\\\/\\\/www.twitter.com\\\/superhostingbg\",\"https:\\\/\\\/www.instagram.com\\\/superhosting.bg\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/SuperHostingBg\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/superhosting-bg\\\/\",\"https:\\\/\\\/soundcloud.com\\\/user-391462588-865926075\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/author\\\/authorsh#author\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/author\\\/authorsh\",\"name\":\"SuperHosting.BG\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/wp-cli-install.html#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/683660949ad414a662f6e9a0f0a838730e361a5074126878ae6e3039b1110cfa?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"SuperHosting.BG\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/wp-cli-install.html#webpage\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/wp-cli-install.html\",\"name\":\"WP-CLI Installation | KnowledgeBase\",\"description\":\"In cPanel -> Manager for WordPress by SuperHosting -> WP-CLI you can check whether WP-CLI is enabled for your hosting account.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/wp-cli-install.html#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/author\\\/authorsh#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/author\\\/authorsh#author\"},\"datePublished\":\"2017-01-18T15:30:49+03:00\",\"dateModified\":\"2025-10-17T09:44:45+03:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/\",\"name\":\"\\u041f\\u043e\\u043c\\u043e\\u0449\\u043d\\u0430 \\u0441\\u0442\\u0440\\u0430\\u043d\\u0438\\u0446\\u0430\",\"description\":\"Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/help.superhosting.bg\\\/en\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"WP-CLI Installation | KnowledgeBase","description":"In cPanel -> Manager for WordPress by SuperHosting -> WP-CLI you can check whether WP-CLI is enabled for your hosting account.","canonical_url":"https:\/\/help.superhosting.bg\/en\/wp-cli-install.html","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":"&lt;link rel=\"shortcut icon\" href=\"https:\/\/help.superhosting.bg\/favicon.ico\" type=\"image\/x-icon\"&gt;"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/help.superhosting.bg\/en\/wp-cli-install.html#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en#listItem","position":1,"name":"\u041d\u0430\u0447\u0430\u043b\u043e","item":"https:\/\/help.superhosting.bg\/en","nextItem":{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/category\/wordpress#listItem","name":"WordPress (CMS)"}},{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/category\/wordpress#listItem","position":2,"name":"WordPress (CMS)","item":"https:\/\/help.superhosting.bg\/en\/category\/wordpress","nextItem":{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/wp-cli-install.html#listItem","name":"WP-CLI Installation"},"previousItem":{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en#listItem","name":"\u041d\u0430\u0447\u0430\u043b\u043e"}},{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/wp-cli-install.html#listItem","position":3,"name":"WP-CLI Installation","previousItem":{"@type":"ListItem","@id":"https:\/\/help.superhosting.bg\/en\/category\/wordpress#listItem","name":"WordPress (CMS)"}}]},{"@type":"Organization","@id":"https:\/\/help.superhosting.bg\/en\/#organization","name":"SuperHosting.BG","description":"Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...","url":"https:\/\/help.superhosting.bg\/en\/","logo":{"@type":"ImageObject","url":"https:\/\/help.superhosting.bg\/wp-content\/uploads\/2021\/01\/SH-LogotypeEN-ScreenOrange-Three-800-01.png","@id":"https:\/\/help.superhosting.bg\/en\/wp-cli-install.html\/#organizationLogo","width":800,"height":436},"image":{"@id":"https:\/\/help.superhosting.bg\/en\/wp-cli-install.html\/#organizationLogo"},"sameAs":["https:\/\/www.facebook.com\/superhosting","https:\/\/www.twitter.com\/superhostingbg","https:\/\/www.instagram.com\/superhosting.bg","https:\/\/www.youtube.com\/user\/SuperHostingBg","https:\/\/www.linkedin.com\/company\/superhosting-bg\/","https:\/\/soundcloud.com\/user-391462588-865926075"]},{"@type":"Person","@id":"https:\/\/help.superhosting.bg\/en\/author\/authorsh#author","url":"https:\/\/help.superhosting.bg\/en\/author\/authorsh","name":"SuperHosting.BG","image":{"@type":"ImageObject","@id":"https:\/\/help.superhosting.bg\/en\/wp-cli-install.html#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/683660949ad414a662f6e9a0f0a838730e361a5074126878ae6e3039b1110cfa?s=96&d=mm&r=g","width":96,"height":96,"caption":"SuperHosting.BG"}},{"@type":"WebPage","@id":"https:\/\/help.superhosting.bg\/en\/wp-cli-install.html#webpage","url":"https:\/\/help.superhosting.bg\/en\/wp-cli-install.html","name":"WP-CLI Installation | KnowledgeBase","description":"In cPanel -> Manager for WordPress by SuperHosting -> WP-CLI you can check whether WP-CLI is enabled for your hosting account.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/help.superhosting.bg\/en\/#website"},"breadcrumb":{"@id":"https:\/\/help.superhosting.bg\/en\/wp-cli-install.html#breadcrumblist"},"author":{"@id":"https:\/\/help.superhosting.bg\/en\/author\/authorsh#author"},"creator":{"@id":"https:\/\/help.superhosting.bg\/en\/author\/authorsh#author"},"datePublished":"2017-01-18T15:30:49+03:00","dateModified":"2025-10-17T09:44:45+03:00"},{"@type":"WebSite","@id":"https:\/\/help.superhosting.bg\/en\/#website","url":"https:\/\/help.superhosting.bg\/en\/","name":"\u041f\u043e\u043c\u043e\u0449\u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","description":"Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...","inLanguage":"en-US","publisher":{"@id":"https:\/\/help.superhosting.bg\/en\/#organization"}}]},"og:locale":"en_US","og:site_name":"KnowledgeBase | Extensive help information about the services offered by SuperHosting.BG - hosting, domains, and other topics such as WordPress, website creation, caching ...","og:type":"article","og:title":"WP-CLI Installation | KnowledgeBase","og:description":"In cPanel -&gt; Manager for WordPress by SuperHosting -&gt; WP-CLI you can check whether WP-CLI is enabled for your hosting account.","og:url":"https:\/\/help.superhosting.bg\/en\/wp-cli-install.html","article:published_time":"2017-01-18T13:30:49+00:00","article:modified_time":"2025-10-17T06:44:45+00:00","article:publisher":"https:\/\/www.facebook.com\/superhosting","twitter:card":"summary","twitter:site":"@superhostingbg","twitter:title":"WP-CLI Installation | KnowledgeBase","twitter:description":"In cPanel -&gt; Manager for WordPress by SuperHosting -&gt; WP-CLI you can check whether WP-CLI is enabled for your hosting account.","twitter:creator":"@superhostingbg"},"aioseo_meta_data":{"post_id":"7633","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":{"id":"aioseo-web-page-6346554ce7308","slug":"web-page","graphName":"WebPage","label":"Web Page","properties":{"type":"WebPage","name":"","description":""}}},"graphName":"WebPage","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"}}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":0,"ai":null,"created":"2021-01-28 14:12:43","updated":"2025-10-17 06:44:45","seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb\/7633","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/comments?post=7633"}],"version-history":[{"count":3,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb\/7633\/revisions"}],"predecessor-version":[{"id":37254,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb\/7633\/revisions\/37254"}],"wp:attachment":[{"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/media?parent=7633"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb-category?post=7633"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/help.superhosting.bg\/en\/wp-json\/wp\/v2\/ht-kb-tag?post=7633"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}