Display or change the Admin URI

Last update: 2023-06-15
  • Created for:
  • Experienced
    Admin
    Developer

Before you run this command, you must Create or update the deployment configuration.

Display the Admin URI

This section discusses how to use the command line to display the Admin Uniform Resource Identifier (URI).

Command options:

bin/magento info:adminuri

A sample result follows:

Admin Panel URI: /admin_1wgrah

You can also view the Admin URI in <magento_root>/app/etc/env.php. A snippet follows:

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

Change the Admin URL

To change the Admin URI, use the magento setup:config:set command.

On this page