Reset the admin URI using the cli

Learn how to reset the admin URI using the Adobe Commerce Cloud cli command. This is useful if the admin URL was changed from the admin but a mistake was made and you are no longer able to access the admin.

Some commands used in the tutorial

Change the configuration to expect a custom Admin path URL to 0:

$ php bin/magento config:set admin/url/use_custom 0

Change the configuration for the custom Admin path URL to 0

$ php bin/magento config:set admin/url/use_custom_path 0

recommendation-more-help
commerce-learn-help-home