Magento 2 Important command !

Magento 2 has one command-line interface that performs both installation and configuration tasks. Console component is one of the new features in Magento 2. Find various command here.

Debug
There are three mode default, developer, production.
To check the current mode:

1
php bin/magento deploy:mode:show

Set new mode

1
php bin/magento deploy:mode:set developer

Deploy
The static view files deployment command enables you to write static files to the Magento file system.

1
php bin/magento setup:static-content:deploy

For specific theme

1
php bin/magento setup:static-content:deploy --theme Magento/backend  --theme yourthemename/default