How To Get Admin Path Command Line In Magento 2

In this post, I will guide you on How To Get Admin Path Command Line In Magento 2. Admin URL helps you can access the Admin Panel.

Admin URL is very important with your Magento 2 store. It uses to go to the backend and you can manage your store here. You can think of this as your Magento store control center.

Because of the importance and security, Magento experts advise store owners to set the admin path hard to guess to avoid hackers.

Also because of this problem, some store owners have forgotten their Admin URL and they don’t know where to find it. If you are really in control of your Magento system, I will show you how to get it in a simple way.

Solutions To Get Admin Path Command Line In Magento 2

1. Get Admin Path Via Command Line

1.  First, you need to connect to your server via SSH as the root user by command:

ssh root@<your-ip-address> -p <your-port-number>

2. Go to Magento 2 root folder.

3. Run the below command:

php bin/magento info:adminuri

You can see the output like this:

Admin URI: /admin

2. Get Admin Path Via env.php File

1. Go to Magento 2 root folder.

2. Open env.php file with the below-given path.

app/etc/env.php

Navigate to the backend and check the ‘frontName’ property. You can see it in env.php file like this:

'backend' => [
    'frontName' => 'admin'
],

This is the end of the post.

Follow us for the more helpful posts!

We hope this is a useful post for you on How To Configure Credit Memo Emails In Magento 2.

Thank you for reading!

4.2 6 votes
Article Rating

Aaron LX

Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.

Leave a Reply or put your Question here

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x