Using the CLI
Practical workflows for installing, publishing, updating, and automating Intertool registry items from the command line.
The Intertool CLI installs approved registry items into local agent projects and publishes new items back to your registry.
Install the CLI
Until the npm package is published, link the CLI from this repository:
cd cli
npm install
npm run build
npm linkAfter the package is released to npm:
npm install -g intertoolVerify the binary is available:
intertool --version
intertool --helpLog in
Use your registry URL. For SaaS registries, include the organization path.
intertool login --url https://your-registry.example.com
intertool login --url https://intertool.sh/example-orgThe browser flow creates a personal API token and stores it at ~/.intertool/config.json.
For CI or headless environments, pass a token directly:
intertool login --url https://your-registry.example.com --token itk_...Check the active account:
intertool whoamiClear local credentials:
intertool logoutFind items
Search the authenticated registry:
intertool search "code review"
intertool search "type:mcp-server tag:automation"
intertool search "author:platform"Show full registry details for one item:
intertool info code-reviewInstall items
Run install from the project where your agent tooling should use the item:
cd ~/work/my-agent-project
intertool install @team/code-reviewInstall writes files under the current project:
| Item type | Installed file |
|---|---|
skill | .claude/skills/<slug>/SKILL.md |
agent-tool | .claude/skills/<slug>/SKILL.md |
prompt-template | .claude/skills/<slug>/SKILL.md |
mcp-server | .claude/mcp-servers/<slug>/server.json |
If the item includes package files, they are downloaded into the same install directory. The CLI also writes .intertool.json metadata for update checks and adds .claude/skills/ and .claude/mcp-servers/ to .gitignore.
List what is installed locally:
intertool listRemove an installed item:
intertool remove code-review
intertool rm @team/code-reviewUpdate installed items
Update one item:
intertool update @team/code-reviewUpdate every Intertool-installed item in the current project:
intertool updateWhen no name is provided, the CLI scans .claude/skills/*/.intertool.json and .claude/mcp-servers/*/.intertool.json.
Publish a skill
Scaffold a publishable SKILL.md:
intertool init --type skill --name "Code Reviewer" --description "Reviews pull requests" --category dev-tools --tags review,qualityEdit the generated file, then publish:
intertool publish SKILL.mdYou can also publish an existing SKILL.md that contains frontmatter:
---
name: Code Reviewer
type: skill
description: Reviews pull requests
category: dev-tools
tags: [review, quality]
---
Review code for correctness, safety, and maintainability.Override metadata with flags when needed:
intertool publish SKILL.md --name "Code Reviewer" --category dev-tools --tags review,qualityIf admin review is required, the command succeeds but reports that the item was submitted for review. It becomes searchable and installable only after approval.
Publish an MCP server
Scaffold a server package:
intertool init --type mcp-server --name "Internal API" --description "Connects to internal APIs"This creates:
server.jsonfor the MCP server configurationREADME.mdfor the registry READMEintertool.yamlfor Intertool-only metadata such as category and tags
Publish it:
intertool publish server.jsonFor existing MCP configs, you can pass metadata as flags:
intertool publish server.json --type mcp-server --category integrations --tags api,internalIntertool preserves the full server.json config for install and raw download.
Automation and JSON output
Use --json when scripting:
intertool search "code review" --json
intertool install @team/code-review --json
intertool publish SKILL.md --jsonPublish JSON includes status, published, and submitted_for_review:
{
"ok": true,
"published": false,
"submitted_for_review": true,
"status": "review",
"slug": "code-review",
"url": "https://your-registry.example.com/skills/code-review",
"message": "Skill submitted for review"
}Shell completions
Generate completions for your shell:
intertool completions bash >> ~/.bashrc
intertool completions zsh >> ~/.zshrc
intertool completions fish > ~/.config/fish/completions/intertool.fishTroubleshooting
If a command cannot connect, confirm the registry is reachable and the saved URL is correct:
intertool loginIf authentication fails, create a fresh token from the web app settings or rerun:
intertool login --url https://your-registry.example.comIf an item cannot be installed, confirm it is published. Items in review are hidden from search and install results for regular members.