Skip to content

init command

Generate a new node-llama-cpp project from a template

INFO

This command is also available via:

shell
npm create node-llama-cpp@latest [name]

Usage

shell
npx --no node-llama-cpp init [name]

Options

Option Description
--name [string] Project name (string)
--template [string] Template to use. If omitted, you will be prompted to select one (string)

choices: node-typescript, electron-typescript-react

--gpu [string] Compute layer implementation type to use for llama.cpp (default: Uses the latest local build, and fallbacks to "auto") (string)

choices: auto, metal, cuda, vulkan, false

-h, --help Show help
-v, --version Show version number