Core

API reference for maltty. The runtime framework for building CLI applications with typed commands, middleware pipelines, and terminal UI.

JavaScript API

FunctionDescription
command()Define a command with typed options and a handler
middleware()Define middleware that wraps command execution
cli()Bootstrap and run a CLI application
screen()Define a screen command with a React/Ink render
report()Structured reporting middleware for diagnostics

Core types

ReferenceDescription
ContextThe central object threaded through handlers and middleware

Resources