How to Install Drupal with Drupal Composer

Step 1

Make sure that you have composer installed and upgrade it if you have to.
Something like that will do it on a Ubuntu platform

sudo apt-get install composer

Step 2

run the following command:

composer global require drupal/console:@stable

Step 3

Create your Drupal Folder

mkdir new_foler
cd new_folder

Step 4

composer create-project \
drupal-composer/drupal-project:8.x-dev new_foler \
--prefer-dist \
--no-progress \

[ERROR] Command “site:install”, is not a valid command name.

If you are getting this error

 [ERROR] Command "site:install", is not a valid command name.

after installing drupal console, it it because you are running the command outside a drupal installation folder. The confusion is the fact that most of us expect a “site:install” to go out and retrieve the drupal files for us but the command is not doing that.

The site:install allows us to install drupal from the command line. 
It DOES NOT retrieve Drupal files for you. 

It took me a while to figure this out.