Generating and using JSON templates with CLI commands