Description
At present CLI has duplicated code in RestCommandLineService class where it has implemented the same logic for different commands. Here we can identify generic command types such as deploy, undeploy, create, update, delete, get & list and move them to separate set of methods. This will help us to manage logic from a central location and make sure the exact behaviour is implemented in all commands.