Implement the CLI