magento 2 running composer install code example
Example: install magento 2 command line composer
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .