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

CLI Overview

The tealeaf command-line tool provides all operations for working with TeaLeaf files.

Usage

tealeaf <command> [options]

Commands

CommandDescription
compileCompile text (.tl) to binary (.tlbx)
decompileDecompile binary (.tlbx) to text (.tl)
infoShow file information (auto-detects format)
validateValidate text format syntax
to-jsonConvert TeaLeaf text to JSON
from-jsonConvert JSON to TeaLeaf text
tlbx-to-jsonConvert TeaLeaf binary to JSON
json-to-tlbxConvert JSON to TeaLeaf binary
helpShow help text

Global Options

tealeaf help         # Show usage
tealeaf -h           # Show usage
tealeaf --help       # Show usage

Exit Codes

CodeMeaning
0Success
1Error (parse error, I/O error, invalid arguments)

Error messages are written to stderr. Data output goes to stdout (when no -o flag is specified).

Quick Examples

# Full workflow
tealeaf validate data.tl
tealeaf compile data.tl -o data.tlbx
tealeaf info data.tlbx
tealeaf to-json data.tl -o data.json
tealeaf decompile data.tlbx -o recovered.tl

# JSON conversion
tealeaf from-json api_response.json -o structured.tl
tealeaf json-to-tlbx api_response.json -o compact.tlbx
tealeaf tlbx-to-json compact.tlbx -o exported.json