Register a command with a Command object.
Note: When using this form, the handler only sees command-local types. Use the (parser, handler) form for merged global+command types.
Optionaloptions: string | CommandOptionsRegister a command with a Parser and handler separately.
This form provides full type inference for merged global + command types.
The handler receives TGlobalValues & CV for values.
Optionaloptions: string | CommandOptionsRegister a nested command group using a factory function.
This form provides full type inference - the factory receives a builder that already has parent globals typed, so all nested command handlers see the merged types.
Optionaloptions: string | CommandOptionsSet the default command by name (must be registered first).
Set the default command with a Command object.
Note: When using this form, the handler only sees command-local types. Use the (parser, handler) form for merged global+command types.
Set the default command with a Parser and handler separately.
This form provides full type inference for merged global + command types.
The handler receives TGlobalValues & CV for values.
Set or extend global options/transforms that apply to all commands.
When called on a builder that already has globals (e.g., from a factory), the new globals are merged with existing ones.
Parse arguments synchronously and run handlers.
Throws if any transform or handler returns a Promise.
Optionalargs: string[]Parse arguments asynchronously and run handlers.
Supports async transforms and handlers.
Optionalargs: string[]
CLI builder for fluent configuration.