llmwire - v2.2.0
    Preparing search index...

    Function runOllamaCLI

    • Run the native ollama CLI with a subcommand and arguments. Uses the system PATH to find ollama unless executablePath is set.

      Parameters

      Returns Promise<OllamaCLIResult>

      const result = await runOllamaCLI('pull', ['llama3.1:8b'], { onStderr: (c) => console.log(c) });
      const listResult = await runOllamaCLI('ls', []);