How to check with a console whether a store is in the developer or production mode?

bin/magento deploy:mode:show

http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-mode.html#config-mode-show

See also:

Another way:

grep -E "MAGE_MODE" app/etc/env.php

01