Install Craft Commerce via Composer
5.xTo install Craft Commerce using Composer, navigate to your project directory, require the package, and then run the Craft plugin installation command. You can optionally copy the provided example templates to your project's templates folder to jumpstart your development.
# go to the project directory
cd /path/to/my-project.test
# tell Composer to load the plugin
composer require craftcms/commerce
# tell Craft to install the plugin
php craft plugin/install commerce
# optional: copy the Craft Commerce example templates to your project
templates folder
php craft commerce/example-templates