Display the list of OL Hub templates
The ol list templates command enables you to view the templates installed in your CLI. The displayed template list includes the prepackaged templates in the generator plugins you installed in your CLI and the custom templates you created.
Each template in the list can have a status of one of the following:
- DEFAULT: A template included in one of the generators installed locally in CLI in its original form without customizations.
- DRAFT: A template that you already copied for editing by executing the ol templates edit command but did not yet apply any changes
to. - MODIFIED: A template you copied for editing by executing the ol templates edit command, then edited and then applied the edits by saving.
- CUSTOM: A template you created by executing the ol create template command.
A modified template replaces its default original version on the list.
Syntax
ol list templates [OPTIONS]
Options
--templates-path
The destination folder to store custom templates
--filter, -f
The regular expression to filter the list by template column
Examples
Display the template list.
temp> ol list templates
temp$ ol list templates