Skip to content

Instantly share code, notes, and snippets.

@lnoering
Created January 4, 2021 15:28
Show Gist options
  • Save lnoering/9d79a3b38743b27b744bafd85420e5c5 to your computer and use it in GitHub Desktop.
Save lnoering/9d79a3b38743b27b744bafd85420e5c5 to your computer and use it in GitHub Desktop.
Composer Tips

Tips for commands in Composer

Ignore requires on install

composer install --no-dev --ignore-platform-reqs

Install with no Dev requires

composer install --no-dev

Build Magento 2

php bin/magento maintenance:enable && composer install --no-dev  && php bin/magento setup:upgrade  && php bin/magento setup:di:compile  && php bin/magento setup:static-content:deploy  && php bin/magento cache:flush  && php bin/magento cache:enable && php bin/magento maintenance:disable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment