magento2 commands code example
Example 1: command used in magento
php bin\magento module:status
php bin\magento module:enable module_name
php bin\magento setup:upgrade
php bin\magento deploy:mode:show -->current mode
php bin/magento deploy:mode:set developer
php bin/magento cache:clean -->to clean chache
php bin/magenot list
php bin/magento setup:upgrade
php bin/magento setup:static-content:deploy
php bin/magento setup:di:compile
php bin/magento cache:flush
Example 2: magento ssh commands
php bin/magento cache:status
/usr/bin/php-cli /usr/www/users/<ftp username>/bin/magento cache:status