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.
- Import:
@kjanat/dreamcli - Export kind: interface
- Declared in:
src/core/schema/command.ts - Source link:
src/core/schema/command.ts:356
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;