Skip to content

tari template inspect

Inspects and displays the contents of a template metadata CBOR file.

Terminal window
tari template inspect [PATH] [OPTIONS]
ArgumentDescription
[PATH]Path to the .cbor file (auto-detected from build output if not provided)
OptionDescription
--project-dir <PATH>Project directory to search for build output (default: .)
--jsonOutput as JSON instead of human-readable table
Terminal window
tari template inspect

Output:

Name: fungible-token
Version: 1.2.0
Schema version: 1
Description: A standard fungible token
Category: token
Tags: token, fungible, defi
License: BSD-3-Clause
Repository: https://github.com/example/fungible-token
Metadata hash: 12209f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
Terminal window
tari template inspect --json

The JSON output goes to stdout and the metadata hash to stderr, so you can pipe the JSON directly:

Terminal window
tari template inspect --json | jq '.tags'
Terminal window
tari template inspect ./path/to/template_metadata.cbor