Magento Usefull CLI For New Setup

 1)

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.7-p3 m247p3

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

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition=2.4.6-p7 magento244p7

composer create-project --repository-url=https://repo.magento.com/ magento/project-enterprise-edition magento_commerce


2)

Public Key: 6898669--ece29253bc0b1faa98e--2f8fed

Private Key: 79a098--0fc2fff3d157c72aa008--0b8bf5


3)

php bin/magento setup:install --base-url=https://local.m247p3.com/ --db-host=localhost --db-name=m247p3 --db-user=root --db-password=evrig --admin-firstname=Admin --admin-lastname=S --admin-email=admin@gmail.com --admin-user=admin --admin-password=admin@123 --language=en_US --currency=USD --timezone=America/Chicago --use-rewrites=1


4)

php bin/magento setup:upgrade;php bin/magento setup:di:compile;php bin/magento setup:static-content:deploy -f;php bin/magento cache:clean;


5)

rm -rf var/* pub/static/frontend/ generated/code/

Comments