# tools · Chromia Docs (concept)

> You can use the tools command (chr tools) provides a set of miscellaneous tools for various tasks related to Chromia.

Source: https://docs.chromia.com/build/cli/commands/tools/

# tools

On this page

* [tools gtv](#tools-gtv)
* [tools validate-config](#tools-validate-config)
* [tools lib-model](#tools-lib-model)

Plain text

```
Usage: chr tools [OPTIONS] COMMAND [ARGS]...

  Miscellaneous tools

╭─ Options ───────────────────────────────────────────────────────────────────╮
│  -h, --help  Show this message and exit                                     │
╰─────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ──────────────────────────────────────────────────────────────────╮
│  gtv              Decode and convert GTV data                               │
│  validate-config  Validate a chromia config file                            │
│  lib-model        Generate a library model                                  │
╰─────────────────────────────────────────────────────────────────────────────╯
```

You can use the tools command (`chr tools`) provides a set of miscellaneous tools for various tasks related to Chromia.

## tools gtv

Plain text

```
Usage: chr tools gtv [<options>]

  Decode and convert GTV data

  Use --hex option or pipe binary GTV data to the command.

  Examples:
  ╭──────────────────────────────────────────────────────────────────────╮
  │chr gtv --hex A41A3018300A0C0161A2050C03464F4F300A0C0162A2050C03424152│
  │chr gtv --output-format yaml < data.gtv                               │
  ╰──────────────────────────────────────────────────────────────────────╯

Options:
  --hex=<hex>       Hex encoded GTV data
  -f, --output-format=(pretty|raw|JSON|XML|YAML)
                    Output format
  --hash=<version>  Calculate Merkle hash of the GTV data
  -h, --help        Show this message and exit
```

The gtv command `chr tools gtv` allows you to decode and convert GTV data.

## tools validate-config

Plain text

```
Usage: chr tools validate-config [<options>]

  Validate a chromia config file

Options:
  -f, --file=<path>
  -h, --help         Show this message and exit
```

The validate-config command `chr tools validate-config` allows you to validate a Chromia config file.

## tools lib-model

Plain text

```
Usage: chr tools lib-model [<options>]

  Generate a library model

Options:
  --name=<text>                Name of the library
  -s, --library-source=<path>
  --registry=<text>            Git reference
  --tag-or-branch=<text>       Tag or branch the library is published on
  --insecure=true|false        Allow insecure connections
  -h, --help                   Show this message and exit
```

The lib-model command `chr tools lib-model` allows you to generate a library model.

[View this page on docs.chromia.com](https://docs.chromia.com/build/cli/commands/tools/)Content mirrored from the live docs
