Refactoring cli to use commander's 'command' feature
Added some validation during key creation