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

brink convert

Convert a compiled story between brink’s own formats — binary (.inkb) and textual disassembly (.inkt). It also accepts raw .ink source, which is compiled in-memory first (equivalent to brink compile).

Input format is inferred from the file extension; output defaults to .inkt on stdout.

brink convert <INPUT> [--output <OUTPUT>]

Options

FlagDefaultDescription
--output <FILE> / -ostdout (.inkt)Output file path. Format inferred from extension.

Supported formats

ExtensionFormatDescription
.inkink sourceCompiled in-memory via the native pipeline (input only)
.inkbBinary bytecodebrink’s native binary format
.inktTextual bytecodeHuman-readable disassembly

Examples

# Disassemble binary to readable bytecode (stdout)
brink convert story.inkb

# Round-trip textual bytecode back to binary
brink convert story.inkt -o story.inkb

# Disassemble binary to text
brink convert story.inkb -o story.inkt