In many cases when creating extensions in Magento 2, it will be needed to add new menu items in the admin panel. This is quite easy, and I will show you how to do this and also add your custom icon to your main item, as you can also see in the hero image of this article.
Creating custom console commands can be very useful in Magento 2, especially for developers. The old fashion way in Magento 1 was to create external scripts in various folders or, the better way, in "shell/", however, if you had multiple "commands" you ended up having a lot of files.
Controllers are an important part of an extension if you want to create custom pages, either in backend or frontend. In this tutorial, we will create an admin controller and a frontend controller that will only return a text on the screen.
In this tutorial, we will build a basic extension for Magento 2. This extension will not work on its own. However it is the first step in the construction of any extension for Magento 2 of any type, and it is a mandatory step as well.