Enable template-hints directly from the terminal using a command in Magento 2

Enable template-hints with command in Magento 2

php bin/magento dev:template-hints:enable
php bin/magento dev:template-hints:disable

Β Remove Cache

chmod -R 777 var/ pub/ generated/
php bin/magento cache:clean
php bin/magento cache:flush
rm -rf var/generation/ var/view_preprocessed/ pub/static/frontend/ pub/static/_requirejs/ var/cache var/di var/page_cache pub/static/_cache