Drupal Console is a command line tool derived from the Symfony Console and let's you debug, and interact with Drupal as well as create "boilerplate" code.
Once you've installed Drupal Console you should be able use it to create modules and services among other things. A nice time saver. This is how you install it.
1. Use your Terminal to download the latest version of Drupal Console
curl https://drupalconsole.com/installer -L -o drupal.phar
2. Verify that the drupal.phar file works