Skip to content

CommandMeta

Runtime metadata about the CLI program and current command execution.

Available to action handlers and middleware.

Populated by the CLI dispatch layer from CLISchema and CommandSchema. For standalone runCommand() calls without a CLI wrapper, a minimal meta is constructed from the command's own schema.

Signatures

ts
interface CommandMeta {}

Members

Properties

bin

Binary display name used in help/usage (may differ from name).

ts
bin: string;

command

The leaf command name currently being executed.

ts
command: string;

name

CLI program name (from cli('name') or package.json inference).

ts
name: string;

version

Program version, if set via .version() or discovered from package.json.

ts
version: string | undefined;

See Also

Released under the MIT License.