install magento 2 command line composer

Shell
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .
Source

Also in Shell: