How to get admin path in Magento 2

In Magento 2, you can get admin path by two ways:

1) Get Admin Path via Command Line(CLI)
You need to run below command in terminal at magento 2 root directory to get the admin path.


php bin/magento info:adminuri


Admin URI: /admin

2) Get Admin Path from env.php File

Reach at: app\etc\env.php

Find below code in file.

'backend' => [
        'frontName' => 'admin'

I hope this blog is useful for you.

Thank you):

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *