Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

decompile

Convert a TeaLeaf binary file (.tlbx) back to the human-readable text format (.tl).

Usage

tealeaf decompile <input.tlbx> -o <output.tl>

Arguments

ArgumentRequiredDescription
<input.tlbx>YesPath to the TeaLeaf binary file
-o <output.tl>YesPath for the output text file

Description

The decompile command:

  1. Opens the binary file and reads the header
  2. Loads the string table and schema table
  3. Reads the section index
  4. Decompresses sections as needed
  5. Reconstructs @struct definitions from the schema table
  6. Writes each section as a key-value pair in text format

Notes

  • Comments are not preserved – comments from the original .tl are stripped during compilation
  • Formatting may differ – the decompiled output uses the default formatting, which may differ from the original source
  • Data is lossless – all values, schemas, and structure are preserved
  • Bytes are lossless – bytes values are written as b"..." hex literals, which round-trip correctly

Examples

# Decompile a binary file
tealeaf decompile data.tlbx -o data_recovered.tl

# Round-trip verification
tealeaf compile original.tl -o compiled.tlbx
tealeaf decompile compiled.tlbx -o roundtrip.tl
tealeaf compile roundtrip.tl -o roundtrip.tlbx
# compiled.tlbx and roundtrip.tlbx should be equivalent

See Also

  • compile – reverse operation
  • info – inspect without decompiling