-change base url magento code example
Example: magento set base url command line
php bin/magento setup:store-config:set --base-url="http://localhost:8080/"
php bin/magento setup:store-config:set --base-url="http://localhost:8080/"