(incus_image_generate-metadata.md)=
# `incus image generate-metadata`

Generate a metadata tarball

## Synopsis
```{line-block}

Description
  Generate a metadata tarball

  This command produces an incus.tar.xz tarball for use during import with an existing QCOW2 or squashfs disk image.

  This command will prompt for any of the metadata tarball fields not passed with --option:
   - os (Operating system name)
   - release (Release name)
   - variant (Variant name)
   - architecture (Architecture name)
   - description (Description)

  Any other key passed with --option is written to the metadata as is, e.g. requirements.cdrom_agent=true.




```
```
incus image generate-metadata <target path> [flags]
```

## Options

```
  -o, --option   Set a metadata property (key=value, may be passed multiple times)
```

## Options inherited from parent commands

```
      --debug[=true|false]          Show all debug messages
      --explain[=true|false]        If the command is valid, explain its parsed arguments instead of running it
      --force-local[=true|false]    Force using the local unix socket
  -h, --help[=true|false]           Print help
      --project                     Override the source project
  -q, --quiet[=true|false]          Don't show progress information
      --sub-commands[=true|false]   Use with help or --help to view sub-commands
  -v, --verbose[=true|false]        Show all information messages
      --version[=true|false]        Print version number
```

## SEE ALSO

* [incus image](incus_image.md)	 - Manage images

