Adds a list templates command to the command line interface.