cli: Separate cbugg template rendering
cli: implemented -json