Magerun is the swiss army knife for Magento developers, sysadmins and devops. The tool provides a huge set of well tested command line commands which save hours of work time. All commands are extendable by a module API.
magerun config:set web/unsecure/base_url http://sandbox.thestore.ch/
magerun config:set web/unsecure/base_url https://sandbox.thestore.ch/