Some Magento Useful command

Magento command line

Magento 2 introduced some useful commands. Using these command we can easily flush cache, re-index data ,enable/disable modules and lots more .
Below listed some useful commands for magento 2 version .
Before using this command you should have composer installed on your system .

Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.
Download and run Composer-Setup.exe from if you don’t have installed it .
It will install the latest Composer version and set up your PATH so that you can just call composer from any directory in your command line.

Flush cache
php -f magento cache:flush

Deploy static files :
php -f magento setup:static-content:deploy

Reindex Magento Static Blocks 
php -f magento indexer:reindex

List all Modules
php -f magento module:status

Enable Module
php -f magento module:enable --clear-static-content United_Sample

Upgrade Database (Install if there new schema declare in any module)
php -f magento setup:upgrade

All command ref: