Arguments
| Argument | Description |
|---|---|
tools… | One or more tool names to install. |
Options
| Flag | Default | Description |
|---|---|---|
-y, --yes | false | Skip confirmation prompt. |
-o, --overwrite | false | Overwrite existing installed files without prompting. |
-c, --cwd <cwd> | cwd | Working directory (where chat.config.ts lives). |
-r, --registry <url> | — | Registry URL or local path template. Overrides CHATJS_REGISTRY_URL. |
Examples
What it does
For each tool name, the command:- Fetches
{name}.jsonfrom the registry - Recursively resolves any
registryDependencies - Writes the tool’s files into your project (under the path configured in
chat.config.ts) - Installs any npm dependencies the resolved items declare
- Warns if the installed items declare missing environment variables
- Injects imports and registrations into the CLI-managed registry files at
tools/chatjs/tools.tsandtools/chatjs/ui.tsby default
Environment variables
| Variable | Description |
|---|---|
CHATJS_REGISTRY_URL | Default registry URL template. The {name} placeholder is replaced with the tool name. Useful for pointing to a local registry without passing --registry every time. |
Related
- Adding Tools — step-by-step walkthrough
- Tools — how to build and publish a tool