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 between ink formats. This uses the converter pipeline (brink-converter), which processes inklecate’s JSON output rather than compiling from .ink source. Use brink compile for native compilation — see The Two Pipelines for which you want.

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
.ink.jsoninklecate JSONOutput from the reference ink compiler
.inkbBinary bytecodebrink’s native binary format
.inktTextual bytecodeHuman-readable disassembly

Examples

# Disassemble ink.json to readable bytecode (stdout)
brink convert story.ink.json

# Convert ink.json to binary
brink convert story.ink.json -o story.inkb

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