To enable Magento 2 Template Hints directly from the command line, run the following command in the Magento 2 root directory:

To disable the hints again, run this command:

Clear the Magento 2 cache after either command.

Enabling template hints from the CLI
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.
Tags: