CLI implementation.