Implement basic CLI.