# Install WordPress from command-line

DevFeed: [Install WordPress from command-line](<https://devfeed.tech/articles/install-wordpress-from-command-line-27641.md>)

Original publisher: [Read original article](<https://gagor.pro/2016/02/install-wordpress-from-command-line/>)

Author: Tom

Published: 2016-02-15T00:00:00Z

Content type: tutorial

Language: en

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [WordPress](<https://devfeed.tech/topics/wordpress.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [apt](<https://devfeed.tech/topics/apt.md>), [chmod](<https://devfeed.tech/topics/chmod.md>), [cURL](<https://devfeed.tech/topics/curl.md>), [MySQL](<https://devfeed.tech/topics/mysql.md>)

Tags: [apt](<https://devfeed.tech/tags/apt.md>), [bash](<https://devfeed.tech/tags/bash.md>), [chmod](<https://devfeed.tech/tags/chmod.md>), [cli](<https://devfeed.tech/tags/cli.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [curl](<https://devfeed.tech/tags/curl.md>), [install](<https://devfeed.tech/tags/install.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [root](<https://devfeed.tech/tags/root.md>), [wordpress](<https://devfeed.tech/tags/wordpress.md>)

## AI overview

A tutorial showing how to install WordPress from the command line using WP-CLI, including prerequisites, downloading the WP-CLI executable, checking it, and installing WordPress as the web application user.

## Source excerpt

I never tried it before but today I needed to install WordPress... From command line only. And there is a way to do this with wp-cli external link . WP-CLI installation First some requirements (as root): apt-get install php5-cli php5-mysql mysql-client curl And now installation of wp-cli (as root too): curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar chmod +x wp-cli.phar mv wp-cli.phar /usr/local/bin/wp Check if it's working: