# unikraft volumes template edit

Edit a volume template.

```
unikraft volumes template edit <target> [flags]
```

## Examples

Update template tags:

```bash
unikraft volume template edit demo-template --set tags=env-dev
```

## Options

```
  --add <name>=<value>        Key-value pairs to add to the volume-template.
  --add-file <name>=<filename>  Files containing key-value pairs to add to the volume-template.
  --cmd CMD                   Run a command to edit fields (receives YAML on stdin, outputs edited YAML on stdout).
  --del <name>=<value>        Keys to delete from the volume-template.
  --del-file <name>=<filename>  Files containing keys to delete from the volume-template.
  --delete-lock               Prevent deletion of the template.
  --dry-run                   Print patches without applying them.
  -f, --field FIELD           Specify which fields to include in the output.
  --load LOAD                 Load fields from a YAML file.
  -o, --output OUTPUT         Output format. One of: kv, table, json, yaml, raw, quiet, template.
  --save FILE                 Save editable fields as YAML to a file (use - for stdout).
  --set <name>=<value>        Key-value pairs to set on the volume-template.
  --set-file <name>=<filename>  Files containing key-value pairs to set on the volume-template.
  --tags tag                  Template tags.
  --visual                    Open an editor to modify fields visually.
```

## Options inherited from parent commands

```
  --config file               Path to the configuration file.
  --log-level level           Set the logging level. (default info)
  --log-type type             Set the log type. (default text)
  --profile name              Set the current profile.
  --telemetry                 Toggle anonymous usage analytics. (default true)
```

## See Also

* [`unikraft volumes template`](../template.mdx): Manage volume templates.

