{"id":136470,"date":"2018-08-03T08:53:33","date_gmt":"2018-08-03T08:53:33","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=136470"},"modified":"2024-07-03T08:43:06","modified_gmt":"2024-07-03T08:43:06","slug":"install-wordpress-through-wp-cli-in-few-seconds","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/","title":{"rendered":"Install WordPress through WP-CLI in few seconds"},"content":{"rendered":"<p>Install WordPress through WP-CLI &#8211; Everyone is probably familiar with WordPress and its renowned 5-minute install routine. It\u2019s simple and works without fuss.<\/p>\n<p>But when you have multiple sites to manage, repeating the same routine can waste plenty of time which you could have used elsewhere.<\/p>\n<p>This is where WP-CLI, a powerful command line tool with which you can manage WordPress, can help. This tutorial covers how to install WP-CLI and how to perform some common, practical tasks using it.<\/p>\n<h1>Install WP-CLI<\/h1>\n<ol>\n<li>WP-CLI is available as a PHP Archive file <strong>(.phar).<\/strong> You can download it using either <strong>wget<\/strong>\u00a0or\u00a0<strong>curl<\/strong> commands:\n<pre class=\"brush:powershell\">curl -O https:\/\/raw.githubusercontent.com\/wp-cli\/builds\/gh-pages\/phar\/wp-cli.phar<\/pre>\n<h3 class=\"brush:plain\"><strong style=\"font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;\">Or<\/strong><\/h3>\n<pre class=\"brush:powershell\">wget https:\/\/raw.githubusercontent.com\/wp-cli\/builds\/gh-pages\/phar\/wp-cli.phar<\/pre>\n<\/li>\n<li>You need to make this <strong>.phar<\/strong> file executable and move it to\u00a0<strong>\/usr\/local\/bin<\/strong> so that it can be run directly:\n<pre class=\"brush:powershell\">chmod +x wp-cli.phar<\/pre>\n<pre class=\"brush:powershell\">sudo mv wp-cli.phar \/usr\/local\/bin\/wp<\/pre>\n<\/li>\n<li>Check if it is installed properly:\n<pre class=\"brush:powershell\">wp --info<\/pre>\n<p><img decoding=\"async\" class=\"size-full wp-image-136556 alignnone\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/5-2.png\" alt=\"\" width=\"671\" height=\"183\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/5-2.png 671w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/5-2-250x68.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/5-2-300x82.png 300w\" sizes=\"(max-width: 671px) 100vw, 671px\" loading=\"lazy\" \/><br \/>\nYou should see a similar output like that displayed above, which means you can proceed:<\/li>\n<\/ol>\n<p>You can use the above three steps for upgrading WP-CLI as well.<\/p>\n<h1>Basics of WP-CLI<\/h1>\n<p>Before moving on, let\u2019s learn some basics of how WP-CLI works. This will help you feel comfortable with the upcoming steps.<\/p>\n<p>So far, we have seen WP-CLI accessed through the main command,\u00a0<code>wp<\/code>. You can follow the main command with nested subcommands. For example, we have a command to download WordPress, which is:<\/p>\n<pre class=\"brush:powershell\">wp core download<\/pre>\n<p>Here\u00a0<strong>wp<\/strong>\u00a0is the main command while\u00a0<strong>core<\/strong> and\u00a0<strong>download<\/strong>\u00a0are its nested subcommands. Nesting subcommands can extend one or two levels.<\/p>\n<p><strong>WP-CLI<\/strong> also comes with a detailed help section, which displays all the commands you might need. To access help:<\/p>\n<pre class=\"brush:powershell\">wp help<\/pre>\n<p>The output should resemble:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-136566\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/8-2.png\" alt=\"\" width=\"596\" height=\"333\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/8-2.png 596w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/8-2-250x140.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/8-2-300x168.png 300w\" sizes=\"(max-width: 596px) 100vw, 596px\" loading=\"lazy\" \/><\/p>\n<p><strong>:<\/strong>\u00a0is a prompt that, with subcommands, can help you navigate through this help menu. Up and down arrow keys will let you scroll through the entire help command list. Typing\u00a0<strong>q<\/strong>\u00a0will exit the help menu.<\/p>\n<p>For additional details on how to further navigate through the complete help section, you can always type\u00a0<strong>h<\/strong>\u00a0at the above prompt.<\/p>\n<p>You can use the enabled bash completion to demonstrate WP-CLI\u2019s readily available command list. Simply type\u00a0<strong>wp<\/strong>\u00a0and press tab twice. You will see the list of available commands. Now, type\u00a0<strong>wp core<\/strong>\u00a0and press tab twice.<\/p>\n<p>You will see a list of commands that can be used with\u00a0<strong>core<\/strong>. This double tabbing after a command can be repeated for any primary or subcommand.<\/p>\n<h1>Install WordPress<\/h1>\n<h2>Setting up Database<\/h2>\n<ol>\n<li>Before you proceed, you need to setup a database. Log in to the MySQL server, replacing\u00a0<strong>user\u00a0<\/strong>with your MySQL username:\n<pre class=\"brush:powershell\">mysql -u user -p<\/pre>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-136567\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/9-1.png\" alt=\"\" width=\"587\" height=\"212\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/9-1.png 587w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/9-1-250x90.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/9-1-300x108.png 300w\" sizes=\"(max-width: 587px) 100vw, 587px\" loading=\"lazy\" \/><\/li>\n<li>Create a database:\n<pre class=\"brush:powershell\">create database wordpress;<\/pre>\n<\/li>\n<li>Grant required privileges to the database for the mysql user to which WordPress will permit database access. Replace\u00a0<strong>user\u00a0<\/strong>and\u00a0<strong>password<\/strong>\u00a0with those of the permitted mysql user:\n<pre class=\"brush:powershell\">grant all on wordpress.* to 'user' identified by 'password';<\/pre>\n<\/li>\n<li>Type\u00a0<strong>quit\u00a0<\/strong>to exit the MySQL command line.<\/li>\n<\/ol>\n<h2>Main Install<\/h2>\n<ol>\n<li>Move to the Apache <strong>t<\/strong><strong>est<\/strong>\u00a0directory:\n<pre class=\"brush:powershell\">cd \/var\/www\/html\/test<\/pre>\n<\/li>\n<li>Next, download the WordPress files.\n<pre class=\"brush:powershell\">wp core download<\/pre>\n<\/li>\n<li>Create a wp-config.php file:\n<pre class=\"brush:powershell\">wp core config --dbname=wordpress --dbuser=user --dbpass=password --dbhost=localhost --dbprefix=wp_<\/pre>\n<p><strong>dbhost<\/strong>\u00a0and\u00a0<strong>dbprefix<\/strong>\u00a0are entirely optional and can be omitted unless you need to change their default values.<\/li>\n<li>Run the installation:\n<pre class=\"brush:powershell\">wp core install --url=\"http:\/\/example.com\" --title=\"Blog Title\" --admin_user=\"adminuser\" --admin_password=\"password\" --admin_email=\"email@domain.com\"<\/pre>\n<\/li>\n<\/ol>\n<p>Your WordPress blog is now ready for use.<\/p>\n<h1>Common Commands<\/h1>\n<h2>Installing Themes with WP-CLI<\/h2>\n<p>Importing and installing themes is much quicker through WP-CLI than going into WordPress admin, searching and then activating it.<\/p>\n<p>It connects your server directly to the\u00a0<a href=\"https:\/\/wordpress.org\/themes\/\">WordPress theme repository<\/a>\u00a0and imports the theme in a matter of a few seconds. For example, to install a theme like <strong>TwentyTen<\/strong>, we will use the following command:<\/p>\n<pre class=\"brush:powershell\">wp theme install twentyten<\/pre>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-136580\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/15-1.png\" alt=\"\" width=\"592\" height=\"114\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/15-1.png 592w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/15-1-250x48.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/15-1-300x58.png 300w\" sizes=\"(max-width: 592px) 100vw, 592px\" loading=\"lazy\" \/><\/p>\n<p>To activate the themes on your <strong>WordPress website<\/strong>, you will need to use the following command:<\/p>\n<pre class=\"brush:powershell\">wp theme activate twentyten<\/pre>\n<h2>Installing Plugins with WP-CLI<\/h2>\n<p>Just like the themes, plugins can also be installed right from the\u00a0<a href=\"https:\/\/wordpress.org\/plugins\/\">official repository<\/a>. Installation is seamless and takes almost no time.<\/p>\n<pre class=\"brush:powershell\">wp plugin install woocommerce<\/pre>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-136582\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/17.png\" alt=\"\" width=\"593\" height=\"111\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/17.png 593w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/17-250x47.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/17-300x56.png 300w\" sizes=\"(max-width: 593px) 100vw, 593px\" loading=\"lazy\" \/><\/p>\n<p>The above command will install the WooCommerce plugin on your website. To activate it, we will use the command:<\/p>\n<pre class=\"brush:powershell\">wp plugin activate woocommerce<\/pre>\n<p>Similarly, to deactivate any plugin, the command becomes:<\/p>\n<pre class=\"brush:powershell\">wp plugin deactivate woocommerce<\/pre>\n<h2>Updating WordPress Core, Themes and Plugins with WP-CLI<\/h2>\n<p>Repetitive and often time consuming task of updating the WordPress core, themes and plugins can be easily carried out through the command line.<\/p>\n<p>To update the WordPress core to the latest stable release of WordPress, the command is:<\/p>\n<pre class=\"brush:powershell\">wp core update<\/pre>\n<p>If you want to update to a specific version, for example you have WordPress 3.7 and want to move to WordPress 4.0 instead of WordPress 4.3, use the command:<\/p>\n<pre class=\"brush:powershell\">wp core update --version=4.0<\/pre>\n<p>Or, if for any reason you want to revert back your WordPress site to the previous version, the command is:<\/p>\n<pre class=\"brush:powershell\">wp core update --version=3.9 --force<\/pre>\n<p>To update plugins, you can either define one plugin to update or better still.<\/p>\n<pre class=\"brush:powershell\">wp plugin update woocommerce<\/pre>\n<p>Update all the plugins in one go.<\/p>\n<pre class=\"brush:powershell\">wp plugin update --all<\/pre>\n<p>A similar method applies to the themes. You can update WordPress themes through <strong>WP-CLI<\/strong> with following command<\/p>\n<pre class=\"brush:powershell\">wp theme update twentyten<\/pre>\n<p>Update all the themes in one go.<\/p>\n<pre class=\"brush:powershell\">wp theme update --all<\/pre>\n<h1>Conclusion<\/h1>\n<p>WP-CLI is indeed a powerful tool that can be used to manage your WordPress sites through the command line. There are also many more commands to manage your database, take backups, manage posts, comments and WordPress multisite It definitely speeds up your tasks, and makes it really easy to manage the sites.<\/p>\n<p>Luckily, there are hosting providers that provide WP-CLI by default on their WordPress installations (<a href=\"https:\/\/github.com\/wp-cli\/wp-cli\/wiki\/List-of-hosting-companies\">you can find a maintained list here<\/a>).<\/p>\n<p>Kindly visit\u00a0the\u00a0<a href=\"https:\/\/store.webkul.com\/woocommerce-plugins.html\" target=\"_blank\" rel=\"noreferrer noopener\" data-wpel-link=\"internal\">WooCommerce plugins<\/a>\u00a0page to explore a wide variety of solutions to add more features to your online store get a\u00a0<a href=\"https:\/\/webkul.com\/wordpress-theme-development-services\/\" data-wpel-link=\"internal\">Custom WordPress Theme Development Service<\/a>. Also, you can\u00a0<a href=\"https:\/\/webkul.com\/hire-woocommerce-developers\/\" target=\"_blank\" rel=\"noreferrer noopener\" data-wpel-link=\"internal\">hire WooCommerce developers<\/a>\u00a0for your project work.<\/p>\n<p>!!Have a Great Day Ahead!!<\/p>\n<p>See you in the next post. Keep reading \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install WordPress through WP-CLI &#8211; Everyone is probably familiar with WordPress and its renowned 5-minute install routine. It\u2019s simple and works without fuss. But when you have multiple sites to manage, repeating the same routine can waste plenty of time which you could have used elsewhere. This is where WP-CLI, a powerful command line tool <a href=\"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":205,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1260],"tags":[941,890,1258],"class_list":["post-136470","post","type-post","status-publish","format-standard","hentry","category-wordpress","tag-commands-in-linux","tag-linux","tag-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Install Wordpress through WP-CLI in few seconds - Webkul Blog<\/title>\n<meta name=\"description\" content=\"Install Wordpress through WP-CLI. Using this the whole WordPress setup can be done in few seconds from Wordpress download to database creation\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Install Wordpress through WP-CLI in few seconds - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Install Wordpress through WP-CLI. Using this the whole WordPress setup can be done in few seconds from Wordpress download to database creation\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-08-03T08:53:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-03T08:43:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/08\/5-2.png\" \/>\n<meta name=\"author\" content=\"Yash Kapoor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yash Kapoor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/\"},\"author\":{\"name\":\"Yash Kapoor\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/41b9d1dcdbf6cc8755349de84c3dbe05\"},\"headline\":\"Install WordPress through WP-CLI in few seconds\",\"datePublished\":\"2018-08-03T08:53:33+00:00\",\"dateModified\":\"2024-07-03T08:43:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/\"},\"wordCount\":893,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/08\/5-2.png\",\"keywords\":[\"commands in linux\",\"linux\",\"wordpress\"],\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/\",\"url\":\"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/\",\"name\":\"Install Wordpress through WP-CLI in few seconds - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/08\/5-2.png\",\"datePublished\":\"2018-08-03T08:53:33+00:00\",\"dateModified\":\"2024-07-03T08:43:06+00:00\",\"description\":\"Install Wordpress through WP-CLI. Using this the whole WordPress setup can be done in few seconds from Wordpress download to database creation\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/5-2.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/5-2.png\",\"width\":\"671\",\"height\":\"183\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Install WordPress through WP-CLI in few seconds\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/41b9d1dcdbf6cc8755349de84c3dbe05\",\"name\":\"Yash Kapoor\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/892bd724fb6a4d1b6e8c52e4ce5722f212f6973ec72282f99d8480661fe396c9?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/892bd724fb6a4d1b6e8c52e4ce5722f212f6973ec72282f99d8480661fe396c9?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Yash Kapoor\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/yash-kapoor429\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Install Wordpress through WP-CLI in few seconds - Webkul Blog","description":"Install Wordpress through WP-CLI. Using this the whole WordPress setup can be done in few seconds from Wordpress download to database creation","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:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/","og_locale":"en_US","og_type":"article","og_title":"Install Wordpress through WP-CLI in few seconds - Webkul Blog","og_description":"Install Wordpress through WP-CLI. Using this the whole WordPress setup can be done in few seconds from Wordpress download to database creation","og_url":"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2018-08-03T08:53:33+00:00","article_modified_time":"2024-07-03T08:43:06+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/08\/5-2.png","type":"","width":"","height":""}],"author":"Yash Kapoor","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Yash Kapoor","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/"},"author":{"name":"Yash Kapoor","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/41b9d1dcdbf6cc8755349de84c3dbe05"},"headline":"Install WordPress through WP-CLI in few seconds","datePublished":"2018-08-03T08:53:33+00:00","dateModified":"2024-07-03T08:43:06+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/"},"wordCount":893,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/08\/5-2.png","keywords":["commands in linux","linux","wordpress"],"articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/","url":"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/","name":"Install Wordpress through WP-CLI in few seconds - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2018\/08\/5-2.png","datePublished":"2018-08-03T08:53:33+00:00","dateModified":"2024-07-03T08:43:06+00:00","description":"Install Wordpress through WP-CLI. Using this the whole WordPress setup can be done in few seconds from Wordpress download to database creation","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/5-2.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2018\/08\/5-2.png","width":"671","height":"183"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/install-wordpress-through-wp-cli-in-few-seconds\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Install WordPress through WP-CLI in few seconds"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/41b9d1dcdbf6cc8755349de84c3dbe05","name":"Yash Kapoor","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/892bd724fb6a4d1b6e8c52e4ce5722f212f6973ec72282f99d8480661fe396c9?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/892bd724fb6a4d1b6e8c52e4ce5722f212f6973ec72282f99d8480661fe396c9?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Yash Kapoor"},"url":"https:\/\/webkul.com\/blog\/author\/yash-kapoor429\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/136470","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/205"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=136470"}],"version-history":[{"count":26,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/136470\/revisions"}],"predecessor-version":[{"id":450949,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/136470\/revisions\/450949"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=136470"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=136470"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=136470"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}