Repository navigation
Labels
documentationImprovements or additions to documentation
Description
Summary
The CLI can now be installed and run via npm/npx as @inference-gateway/cli
(inference-gateway/cli#568). Users who already have Node.js (>= 18) can run it
with npx @inference-gateway/cli - the matching native binary is downloaded and
cached on first use - without a Go toolchain or a manual download. The docs site
does not yet document this install method for the CLI.
This mirrors what adl-cli.md already documents for adl-cli (its
"npm / npx (Recommended)" section), so the same structure and wording can be reused.
Affected pages
cli.md- add an "npm / npx (Recommended)" subsection under "## Installation"
(today it lists Install Script, Go Install, Manual Download, Build from Source).
Recommend listing npm/npx first, matching the CLI README.getting-started.md- if it lists CLI install methods, add the npx option there too.
Suggested content (for cli.md)
### npm / npx (Recommended)
Run the CLI without installing anything (requires Node.js >= 18). The matching
native binary is downloaded and cached on first use:
```bash
npx @inference-gateway/cli@latest --help
npx @inference-gateway/cli@latest chat
```
Or install it globally:
```bash
npm install -g @inference-gateway/cli
infer --help
```
Not recommended for production - prefer the install script or building from
source. Prebuilt binaries cover Linux and macOS on amd64/arm64 (on Windows, use WSL).
Acceptance Criteria
-
cli.mddocumentsnpx @inference-gateway/cliand the globalnpm install -goption under Installation - The "not recommended for production" caveat and supported platforms (Linux/macOS, amd64/arm64; Windows via WSL) are noted
-
getting-started.mdreferences the npx option if it lists install methods - Wording is consistent with the CLI README and the existing adl-cli npx section
Related
- Source issue: [FEATURE] Add npx wrapper to install and run the CLI binary cli#568
- Precedent: the "npm / npx (Recommended)" section in
adl-cli.md
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentation
Type
Projects
- StatusShow more project fieldsDone
Activity
feat: add npm wrapper to install and run the CLI via npx (#610)
chore(release): 0.119.0 [skip ci]
edenreich commentedon Jun 6, 2026
@infer Can you document it? use /maintainer
inference-gateway-maintainer commentedon Jun 6, 2026
Todos
Pull Request
#185
✅ Infer Result: Success
All acceptance criteria from the issue have been met:
cli.md— Documentsnpx @inference-gateway/cliandnpm install -g @inference-gateway/cliunder Installation, listed first as recommendedgetting-started.md— No changes needed (it doesn't list CLI install methods)adl-cli.mdnpx section structure and phrasingdocs/npm-npx-install-cliThe task is complete.
Model:
ollama_cloud/deepseek-v4-flash· Exit Code:0· View JobTokens: 1,615,955 in · 4,898 out · 1,620,853 total (19 requests)
Tool calls: 22 total · 91% success rate
Adds an npm / npx (Recommended) subsection under Installation in `cli.md`, listed first as the recommended method. This mirrors the existing `adl-cli.md` npx section structure and wording.
Users with Node.js >= 18 can now run the CLI without a Go toolchain or manual download:
```bash
npx @inference-gateway/cli@latest --help
npx @inference-gateway/cli@latest chat
```
Or install globally:
```bash
npm install -g @inference-gateway/cli
infer --help
```
Changes
Acceptance Criteria
Closes #182" --base main --head docs/npm-npx-install-cli
Adds an npm / npx (Recommended) subsection under Installation in `cli.md`, listed first as the recommended method. This mirrors the existing `adl-cli.md` npx section structure and wording.
Users with Node.js >= 18 can now run the CLI without a Go toolchain or manual download:
```bash
npx @inference-gateway/cli@latest --help
npx @inference-gateway/cli@latest chat
```
Or install globally:
```bash
npm install -g @inference-gateway/cli
infer --help
```
Changes
Acceptance Criteria
Closes #182"
Agent output (tail)
Triggered by edenreich · Infer Action
docs(cli): document npm/npx installation for the CLI (#185)
chore(release): 🔖 0.6.108 [skip ci]