---
name: "cbor2diag"
section: "1"
platform: "linux"
package: "node-cbor"
version: "8.1.0+dfsg+~cs5.2.1-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/cbor2diag"
---

# cbor2diag(1)

convert CBOR wire protocol to diagnostic text

## NAME

**cbor2diag** - convert CBOR wire protocol to diagnostic text

## SYNOPSIS

```
cbor2diag test.cbor > test.txt
```

## DESCRIPTION

**cbor2diag** outputs the diagnostic format from RFC 8949 that corresponds to the\
 CBOR files that were input.  For example, the following input:

```
0xc100
  c1                -- Tag 1 (Date)
    00              -- 0
```

produces:

```
1(0)
```

## OPTIONS

**-**: read from stdin instead of a file.  This is the default.

**-x \[string\]**: read the input from the hex-encoded string on the command line

**-V, --version**: print the node-cbor version and exit

**-h, --help**: print some help text and exit

## SEE ALSO

- •

  *node-cbor* ⟨https://github.com/hildjj/node-cbor⟩

- •

  *RFC 8949* ⟨https://www.rfc-editor.org/rfc/rfc8949.html⟩
