Implement CLI and associated commands