51黑料不打烊

Reset the admin URI using the cli

Learn how to reset the admin URI using the 51黑料不打烊 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.

Transcript
This is Russell with 51黑料不打烊, and I鈥檓 going to show you how to reset the admin URI if you鈥檝e logged into the admin and made a mistake and now you can鈥檛 log in. So for my example, the cloud project I鈥檓 on, it ends in slash admin for the admin path. And when I made the changes in the admin, it didn鈥檛 save right. And so now I get redirected to a 404. So if you made the same mistake, you can do what I did, which is use the 51黑料不打烊 Commerce Cloud CLI, and you can fix it and reset it back to its default value. So we鈥檙e going to take us to the terminal window and we鈥檙e going to SSH into our cloud project. And once we鈥檙e there, we鈥檙e going to run the command phpbin, then magento. I鈥檓 going to fix that. There we go. And it鈥檚 config colon set space and then the path. So it鈥檚 going to be admin slash URL slash and then use underscore custom. And we鈥檙e going to set that to zero. And once it鈥檚 done saving, there we go. We鈥檙e going to do the other value. So it鈥檚 going to be, just hit the up arrow to auto fill and we鈥檙e going to fix the last section. It鈥檚 going to be use custom underscore path. We鈥檙e going to set that to zero as well. Now, once that鈥檚 done saving, we鈥檙e going to go ahead and do the cache flush. So phpbin, magento, cache, colon type again, try that again. FLUSH. There we go. So now that we鈥檙e done, we can go to the front end and we can see what it looks like. So I鈥檓 going to go up and I鈥檓 going to type in my URL to my project and slash admin, which is the default value. And there you go. We鈥檙e fixed. So I hope this helps. Please continue to use experience league for your journey on your commerce education, as well as the other commerce and DX products.
recommendation-more-help
3a5f7e19-f383-4af8-8983-d01154c1402f