Moved CLI to a module.