Implement support for CLI commands

fixes #7246