A custom module for clinessentials.com (Magento 2).
bin/magento maintenance:enable
composer clear-cache
composer require clinessentials/core:*
bin/magento setup:upgrade
rm -rf var/di var/generation generated/code
bin/magento setup:di:compile
rm -rf pub/static/*
bin/magento setup:static-content:deploy \
--area adminhtml \
--theme Magento/backend \
-f en_US
bin/magento setup:static-content:deploy \
--area frontend \
--theme Magento/theme-frontend-luma-child \
-f en_US
bin/magento maintenance:disable
bin/magento cache:enable
bin/magento maintenance:enable
composer remove clinessentials/core
composer clear-cache
composer require clinessentials/core:*
bin/magento setup:upgrade
rm -rf var/di var/generation generated/code
bin/magento setup:di:compile
rm -rf pub/static/*
bin/magento setup:static-content:deploy \
--area adminhtml \
--theme Magento/backend \
-f en_US
bin/magento setup:static-content:deploy \
--area frontend \
--theme Magento/theme-frontend-luma-child \
-f en_US
bin/magento maintenance:disable
bin/magento cache:enable
If you have problems with these commands, please check the detailed instruction.