I am looking for a way to change the database connection in the settings.php file, through command line.
I was wondering if there was an api-call or drush method which would allow me to do this. An option off course is do use grep and replace parts of the string.
Hope anyone could point me in the right direction. Thanks in advance!