The most time taken process in your listed commands are:
php bin/magento setup:upgrade
- Di Compile:
php bin/magento setup:di:compile
By doing 2 basic tasks you will speedup your these commands.
First: Change mode to production (if it is default or development)
php bin/magento deploy:mode:set production --skip-compilation
Note: If your project is at development phase, then you need development mode for error reporting and other stuff
Second: integrate Eleanorsoft module in your project.
- Copy Eleanorsoft folder to
- After compilation, you should see a folder
var/di_cache/ with 4 (or more) files. This is the actual cache. From now your compilation process will use these cached lists instead of scanning the whole filesystem.
I personally integrated this module just now and noticed, di compile tool 19 mins at first, but after integrating this module it completed in just 8 mins
Reference of eleanorsoft: https://www.eleanorsoft.com/speed-up-magento-2-di-compilation-setupdicompile/