Here are very importand commands that used in magento2.
1. Setup Upgrade Command
php bin/magento setup:upgrade
2. Cache Clean
php bin/magento cache:flush
php bin/magento cache:clean
3. Cache Clean Status
php bin/magento cache:status
4. Enable Cache
php bin/magento cache:enable
5. Disable Cache
php bin/magento cache:disable
6. Check Current Mode Status
php bin/magento deploy:mode:show
7. Set Developer Mode
php bin/magento deploy:mode:set developer
8. Set Production Mode
php bin/magento deploy:mode:set production
9. tatic Content Deploy Using Command Line (Use -f for force deploy on 2.2.x or later)
php bin/magento setup:static-content:deploy
10. Static Content Deploy For Particular Language Using Command Line
php bin/magento setup:static-content:deploy en_US
11. Reindexing
php bin/magento indexer:reindex
12. View the list of indexers
php bin/magento indexer:info
13. Check index status
php bin/magento indexer:status
14. Show the mode of all indexers
php bin/magento indexer:show-mode
15. Check All module Status
php bin/magento module:status
16. Enable Module
php bin/magento module:enable Module_name
17. Disable Module
php bin/magento module:enable Module_name
18. Compile
php bin/magento setup:di:compile
19. Enable Maintenance Mode
php bin/magento maintenance:enable
20. Disable Maintenance Mode
php bin/magento maintenance:disable
21. Status Maintenance Mode
php bin/magento maintenance:status