Magento 2 Get Admin Path Command Line
In this tutorial, we will demonstrate how to get admin path command line in Magento 2 which is one of tutorials our in Command Line Series.
Get Admin Path command line
Commands syntax:
php bin/magento info:adminuri
Output:
Admin URI: /admin_mageplaza
So the path is /admin_mageplaza
, now navigate your browser to domain.com/admin_mageplaza to access to Magento 2 backend.
Get Admin path in env.php file
Do you know? You can get admin path without access to etc/env.php
file.
'backend' =>
array (
'frontName' => 'admin_mageplaza',
),
Wrap up
That’s how you can get back your admin path command line in Magento 2 in case you have forgotten it.
I hope this is a useful tutorial for you.
Thank you for reading!
Enjoyed the tutorial? Spread it to your friends!
magento-2-module-development
command
line
cli
console
indexer
reindex

Sam Thomas>Haley
CEO and Founder of Mageplaza. Pursueing a simple and healthy lifestyle. A friend, a husband and a dad of two children, a trainer and an influencer wannabe. He is a big fan of sports and travel, also.
Featured Extensions
Salesforce CRM Integration
$349
5 reviews
-20%
Sales Booster
$318 ($397)
-20%
Marketing Solution
$278 ($347)
-25%
B2B Solutions
$641 ($854)
4 reviews
Free
Social Login
$0
177 reviews
Free
PWA-ready
API-GraphQL
Better Blog
$0
125 reviews

API-GraphQL
GDPR
$79
33 reviews
GeoIP
$149
8 reviews