Upgrade Magento extension(s)
*nix command
bin/magento setup:upgrade
Re-compile Magento:
*nix command
bin/magento setup:di:compile
Rebuild Magento Indexes:
*nix command
bin/magento indexer:reindex
Re-deploy static content
*nix command
rm -rf pub/static/frontend/ pub/static/deployed_version.txt pub/static/adminhtml/
bin/magento setup:static-content:deploy -f
Clear Magento cache
*nix command
bin/magento cache:clean
Disable maintenance mode
*nix command
bin/magento maintenance:disable
If you face any issues, try running following command:
*nix command
rm -rf var/generation/* generated/*
When go though the all steps again