cli()
Bootstrap and run a CLI application. Registers commands, parses arguments, loads config, runs middleware, and invokes the matched handler.
Import from maltty.
CliOptions
CliHelpOptions
DirsConfig
Overrides directory names for file-backed stores (auth credentials, config). Both default to .<name> when omitted.
Commands option
The commands field accepts several forms:
defineConfig()
Helper for defining a maltty.config.ts file with type checking:
Module augmentation
Extend maltty's interfaces via TypeScript declaration merging for project-wide type safety: