Merge CliConfig and ApiCliConfig

move it to common and rename it to FailConfig