Skip to content

Instantly share code, notes, and snippets.

@garyconstable
Last active April 11, 2019 22:21
Show Gist options
  • Save garyconstable/48d96b447f01d3f8e4f3c559c14fb6f2 to your computer and use it in GitHub Desktop.
Save garyconstable/48d96b447f01d3f8e4f3c559c14fb6f2 to your computer and use it in GitHub Desktop.
Magento 2 commands

Download Mage 2

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

Change Folder Permissions

find . -type d -exec chmod 700 {} \; && find . -type f -exec chmod 600 {} \;

Install Mage 2

php bin/magento setup:install 
--base-url="http://yoururl.com/" 
--db-host="localhost" 
--db-name="dbname" 
--db-user="dbuser" 
--db-password="dbpass" 
--admin-firstname="admin" 
--admin-lastname="admin" 
--admin-email="user@example.com" 
--admin-user="admin" 
--admin-password="admin123" 
--language="en_US" 
--currency="USD"
--timezone="America/Chicago" 
--use-rewrites="1" 
--backend-frontname="admin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment