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 ​

name ​

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

ts
name: string;

bin ​

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

ts
bin: string;

version ​

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

ts
version: string | undefined;

command ​

The leaf command name currently being executed.

ts
command: string;

See Also ​

Released under the MIT License.