Replace Cli module with a cli function under Corpus module.