@karmaniverous/get-dotenv
    Preparing search index...

    Type Alias CreateCliOptions

    Create a get-dotenv CLI host with included plugins.

    Options:

    • importMetaUrl (required): the host module's import.meta.url; its package root is the host root (packaged config, version, description)
    • alias: command name used for help/argv scaffolding (default: "getdotenv")
    • branding: optional help header; when omitted, brand() uses " v"

    Usage:

    import { createCli } from '@karmaniverous/get-dotenv/cli';

    await createCli({
    alias: 'mycli',
    importMetaUrl: import.meta.url,
    })();
    type CreateCliOptions = {
        alias?: string;
        branding?: string;
        compose?: (program: GetDotenvCli) => GetDotenvCli;
        description?: string;
        importMetaUrl: string;
        rootOptionDefaults?: Partial<RootOptionsShape>;
        rootOptionVisibility?: Partial<Record<keyof RootOptionsShape, boolean>>;
        version?: string;
    }
    Index
    alias?: string

    CLI command name used for help and argv scaffolding. Defaults to 'getdotenv' when omitted.

    branding?: string

    Optional help header text. When omitted, brand() uses "<alias> v<resolved-version>" if a version can be read.

    compose?: (program: GetDotenvCli) => GetDotenvCli

    Optional composer to wire the CLI (plugins/options). If not provided, the shipped default wiring is applied. Any configureOutput/exitOverride you call here override the defaults.

    description?: string

    Root command description shown in help. Overrides the host package's package.json description.

    importMetaUrl: string

    The host module's import.meta.url (required). The host root is the nearest package.json directory above it. It supplies:

    • the packaged config layer, <hostRoot>/getdotenv.config.* (it replaces get-dotenv's own; when the host root is the project root, the packaged layer is skipped so the same file isn't applied twice);
    • the version (package.json version, unless version is given);
    • the description (package.json description, unless description is given).
    rootOptionDefaults?: Partial<RootOptionsShape>

    Host root defaults. They rank above baseRootOptionDefaults and below config rootOptionDefaults, the parent options bag and CLI flags; they are merge-time defaults (and top-level -h labels), never Commander option defaults. Note: shipped CLI does not force loadProcess OFF; base defaults apply unless set here.

    rootOptionVisibility?: Partial<Record<keyof RootOptionsShape, boolean>>

    Visibility map to hide families/singles from help. When a key is false, the corresponding option(s) are hidden (via hideHelp) after flags are declared: they leave root help and every subcommand's inherited <alias> options (anywhere) section. Config rootOptionVisibility ranks above it, so a config true shows a flag this map hides.

    version?: string

    Version printed by -V, --version and shown in the default help header. Overrides the host package's package.json version.