Config Management For Console Application?

Hi, I would like to know the best practice for managing config files for console application. For example, db configs are different on local, staging and prod. However, there’s only one config file console.php. How do I manage this file correctly for different env?

Also, I have looked into the yii-environment extension. I tried adding different db credentials under "configConsole" for each of mode_devlopment, mode_staging, mode_produciton etc. However, when I run "php yiic Examplecommand", the yii-environment config file is not being picked up. Is there something that I need to change in yiic.php?

Thanks in advance.