Magento Cheatsheet

  Uncategorised

Install Composer

cd /tmp
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

Install Magento using composer

composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition .
composer create-project --repository=https://repo.magento.com/ magento/project-community-edition=2.3.* --stability=beta

 

Clear Cache

rm -rf var/cache/*
php bin/magento cache:clean
php bin/magento cache:flush

Set URL

php bin/magento setup:store-config:set --base-url="http://domain.com/"
php bin/magento setup:store-config:set --base-url-secure="http://domain.com/"

LEAVE A COMMENT