For AI agents: the complete documentation index is available at https://scriptedalchemy.github.io/agent-bundle/llms.txt, the full documentation bundle is available at https://scriptedalchemy.github.io/agent-bundle/llms-full.txt, and this page is available as Markdown at https://scriptedalchemy.github.io/agent-bundle/api/functions/test.invokeCli.md.
  • English
  • Function: invokeCli()

    invokeCli(argv, ...__namedParameters): Promise<CliInvocation>

    Dispatches one argv vector through the routed CLI shell in this process and returns its exit code, streams, and validated result.

    This is the cli-dispatch proof level. Nothing is spawned.

    Parameters

    argv

    readonly string[]

    __namedParameters

    ...HarnessOptionsArguments<InvokeCliOptions>

    Returns

    Promise<CliInvocation>