Skip to content

DefinitionDocument ​

The current whole-CLI definition document.

Signatures ​

ts
type DefinitionDocument = DefinitionDocumentV1;

Members ​

Members ​

$schema ​

ts
$schema: string;

schemaVersion ​

ts
schemaVersion: 1;

name ​

ts
name: string;

version ​

ts
version?: string;

description ​

ts
description?: string;

envPrefix ​

CLI-wide env namespace. Each relative envVar, and each count and template of a relative envIndexed, reads with this prefix prepended; a fragment marked envAbsolute reads its names as written.

ts
envPrefix?: string;

groupOrder ​

Named help groups to display first, in order.

ts
groupOrder?: readonly string[];

defaultCommand ​

ts
defaultCommand?: CommandDefinitionFragmentV1;

commands ​

ts
commands: readonly CommandDefinitionFragmentV1[];

See Also ​

Released under the MIT License.