# maltty > The batteries-included TypeScript CLI framework. ## Getting Started - [Introduction](/getting-started/introduction.md): maltty is an opinionated CLI framework for Node.js. It gives you typed commands, middleware pipelines, configuration loading, authentication, and terminal UI out of the box -- so you can focus on what your CLI does, not how it's wired together. ## Concepts - [Lifecycle](/concepts/lifecycle.md): How a CLI invocation flows through maltty, from process.argv to process exit. ## Guides - [Build a CLI](/guides/build-a-cli.md): Define commands, middleware, configuration, and use maltty's sub-exports to build a complete CLI tool. ## Reference - [Core](/reference/maltty.md): API reference for maltty. The runtime framework for building CLI applications with typed commands, middleware pipelines, and terminal UI. ## Others - [Concepts](/concepts.md) - [Authentication](/concepts/authentication.md): The auth system for maltty CLIs. Provides credential resolution from multiple sources, an interactive login flow, persistent token storage, and automatic HTTP header injection. Auth is a sub-export of the maltty package (maltty/auth), not a separate package. It ships as middleware that decorates ctx.auth with a credential() reader, a login() method, and a logout() method. - [Configuration](/concepts/configuration.md): The configuration system for maltty CLIs. Supports multiple file formats, automatic discovery, Zod schema validation, and a typed config client API. - [Context](/concepts/context.md): The central API surface threaded through every handler and middleware. Provides typed access to args, config, log, format, store, error handling, and CLI metadata. - [Icons](/concepts/icons.md): The icons system provides Nerd Font glyph resolution with automatic emoji fallback, font detection, interactive installation prompts, and categorized icon definitions for maltty CLIs. Icons is a sub-export of the maltty package (maltty/icons), not a separate package. It ships as middleware that decorates ctx.icons with methods for resolving icon names to glyphs, checking font availability, and triggering installation. - [Reporting](/concepts/reporting.md): Structured terminal output for diagnostic commands. The report middleware decorates ctx.report with methods for writing checks, findings, and summaries. - [Screens](/concepts/screens.md): maltty supports two command authoring models: handler-based commands for sequential log-and-exit flows, and screen-based commands for interactive React/Ink terminal UIs. Screen commands replace the handler function with a React component that receives parsed args as props. - [Contributing](/contributing.md) - [Concepts](/contributing/concepts.md) - [Architecture](/contributing/concepts/architecture.md): High-level overview of how maltty is structured, its design philosophy, and how data flows through the system. - [CLI](/contributing/concepts/cli.md): Overview of the CLI system -- commands, middleware, the context object, autoloading, and how errors flow from handlers to the terminal. - [Tech Stack](/contributing/concepts/tech-stack.md): Complete reference of tools and libraries used in the maltty CLI framework. - [Guides](/contributing/guides.md) - [Add a CLI Command](/contributing/guides/adding-a-cli-command.md): Add a new command to the maltty CLI end-to-end: handler, registration, and verification. - [Develop a Feature](/contributing/guides/developing-a-feature.md): Ship a feature end-to-end: branch, code, test, changeset, PR, and merge. - [Get Started Contributing](/contributing/guides/getting-started.md): Set up your local environment to contribute to maltty. - [Standards](/contributing/standards.md) - [Documentation](/contributing/standards/documentation.md) - [Diagram Standards](/contributing/standards/documentation/diagrams.md) - [Documentation Formatting Standards](/contributing/standards/documentation/formatting.md) - [Documentation Writing Standards](/contributing/standards/documentation/writing.md) - [Git](/contributing/standards/git.md) - [Commit Standards](/contributing/standards/git/git-commits.md) - [Pull Request Standards](/contributing/standards/git/git-pulls.md) - [Typescript](/contributing/standards/typescript.md) - [Coding Style](/contributing/standards/typescript/coding-style.md) - [Components](/contributing/standards/typescript/components.md) - [Conditionals and Branching](/contributing/standards/typescript/conditionals.md) - [Design Patterns](/contributing/standards/typescript/design-patterns.md) - [Error Handling](/contributing/standards/typescript/errors.md) - [Function Standards](/contributing/standards/typescript/functions.md) - [Naming Conventions](/contributing/standards/typescript/naming.md) - [State Management](/contributing/standards/typescript/state.md) - [Testing Standards](/contributing/standards/typescript/testing.md) - [Type Patterns](/contributing/standards/typescript/types.md) - [Utilities (es-toolkit)](/contributing/standards/typescript/utilities.md) - [Getting Started](/getting-started.md) - [Quick Start](/getting-started/quick-start.md): Get a working CLI in under 5 minutes. - [Guides](/guides.md) - [Add Authentication](/guides/add-authentication.md): Add credential resolution, interactive login, and authenticated HTTP requests to a maltty CLI. - [Build a Compiled CLI](/guides/build-a-compiled-cli.md): Bundle and compile a maltty CLI into standalone binaries using @maltty/bundler. - [Component Stories](/guides/component-stories.md): Develop and preview Ink components in isolation using the maltty stories viewer -- a Storybook-like TUI that runs in the terminal. - [Testing Your CLI](/guides/testing-your-cli.md): maltty ships test utilities at maltty/test so you can test commands, middleware, and full CLI pipelines without mocking @clack/prompts or wiring up streams by hand. - [Reference](/reference.md) - [cli()](/reference/bootstrap.md): Bootstrap and run a CLI application. Registers commands, parses arguments, loads config, runs middleware, and invokes the matched handler. Import from maltty. - [CLI](/reference/cli.md): Developer CLI for maltty projects. Scaffolding, building, diagnostics, and code generation. - [command()](/reference/command.md): Define a command with typed options, positionals, and a handler function. Import from maltty. - [middleware()](/reference/middleware.md): Define middleware that wraps command execution with pre/post logic. Import from maltty. - [report()](/reference/report.md): Structured reporting middleware. Decorates ctx.report with methods for writing checks, findings, and summaries. Import from maltty/report. - [screen()](/reference/screen.md): Define a command that renders a React/Ink terminal UI instead of running a handler. Import from maltty/ui.