Magento 2: How to retrieve admin URI?

You can get the details by below command in you Magento 2 instance.

php bin/magento info:adminuri

you can get the result like

Admin URI : /kqasuydi

Hope this is the simple and quick way to get.


You can get it from app/etc/env.php file,

You have to get frontname from this file and suffix in your base url.

'backend' => 
  array (
    'frontName' => 'admin',
  ),

Now your value is http://127.0.0.1/magento2.1/admin

Remove cache and check in your browser.