Get started

nf templates

The nf templates command manages configuration templates used during node provisioning.

Templates control how nodes are configured when they first boot — including kickstart files, network configuration scripts, and other provisioning artifacts. You can list the available templates and update their content as needed.


Usage

Terminal
$ nf templates list
$ nf templates update --name <template> --content <content>

Commands

nf templates list
nf templates list

List all available templates with their name and description.

FlagDescription
--jsonOutput results as JSON
nf templates update
nf templates update

Update a template's content. The template must already exist.

FlagDescription
--nameTemplate name (required)
--contentTemplate content (string or use shell substitution) (required)

Examples

Terminal
$ nf templates list
kickstart   Default kickstart configuration
network     Network setup script
Terminal
$ nf templates update --name kickstart --content "$(cat my-kickstart.cfg)"
Template updated