install magento 2 using composer

C++
1
 composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition <install-directory-name>
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .
Source

Also in C++: