Skip to content

Overview

Tree-structured TypeScript terminal shell with automatic help, tab completion, --flag parsing, and lifecycle hooks.

import { Terminal } from '@johannes.latzel/terminal';
const term = new Terminal();
term.start();
  • Quick Start — install, first command, flags, hooks
  • Terminal — class reference, options, lifecycle
  • Commands — factories, classes, argument definitions
  • Arguments — typed accessors, prompting, zod schemas
  • Hooks — lifecycle events, error handling
  • Architecture — execution pipeline, tokenizer, resolution
  • Builtins — help, exit, clear

License

MIT