refactor(cloudcmd) readConfig: add formatMsg