:::: MENU ::::
Posts tagged with: admin url

Magento 2 retrieve admin url

Today we talk about how in Magento 2 retrieve admin url. This tutorial included how to get admin url in case you forgot about that. This tutorial show how can you get your admin url from command and also from file. So let start with our example.

File system:

You can also retrieve the the Magento 2 Admin URL in /app/etc/env.php. Example of the relevant file content:

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

Using Command Line Interface(CLI):

Run the following command to retrieve admin url information.

php bin/magento info:adminuri
Author: Qaisar Satti
Category: Magento 2
Last Modified: July 12, 2018