test(cli): add testcase for cli
refactor(init): code style