tari template inspect
Inspects and displays the contents of a template metadata CBOR file.
tari template inspect [PATH] [OPTIONS]Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
[PATH] | Path to the .cbor file (auto-detected from build output if not provided) |
Options
Section titled “Options”| Option | Description |
|---|---|
--project-dir <PATH> | Project directory to search for build output (default: .) |
--json | Output as JSON instead of human-readable table |
Examples
Section titled “Examples”Default (auto-detect)
Section titled “Default (auto-detect)”tari template inspectOutput:
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: 12209f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08JSON output
Section titled “JSON output”tari template inspect --jsonThe JSON output goes to stdout and the metadata hash to stderr, so you can pipe the JSON directly:
tari template inspect --json | jq '.tags'Explicit path
Section titled “Explicit path”tari template inspect ./path/to/template_metadata.cbor