Sign In

@agentpedia/cli

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agentpedia/cli

CLI tool for submitting and managing AgentPedia listings. Add to your npm postpublish hook for automatic updates.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

@agentpedia/cli

Command-line tool for submitting and managing your AgentPedia listings. Integrates with npm's publish lifecycle so your listing stays up to date automatically.

Install

npm install -g @agentpedia/cli

Or use as a dev dependency for the postpublish hook:

npm install --save-dev @agentpedia/cli

Quick Start

1. Register for an API key

agentpedia register --name my-tool

Save the returned key:

export AGENTPEDIA_API_KEY=ap_xxxxxxxxxxxx

2. Initialize your config

agentpedia init

This creates a .agentpedia.json file pre-filled from your package.json. Edit it with your tool details.

3. Submit your listing

agentpedia submit

4. Auto-submit on every npm publish

Add to your package.json:

{
  "scripts": {
    "postpublish": "agentpedia submit"
  }
}

Now every time you run npm publish, your AgentPedia listing updates automatically.

Configuration

The CLI reads configuration from two sources (in order):

  • .agentpedia.json in your project root
  • An agentpedia field in your package.json

.agentpedia.json example

{
  "slug": "my-tool",
  "name": "My Tool",
  "type": "tool",
  "category": "developer_tools",
  "short_description": "A tool that helps agents process data",
  "website": "https://mytool.dev",
  "documentation_url": "https://docs.mytool.dev",
  "capabilities": ["data-processing", "transformation"]
}

package.json example

{
  "name": "my-tool",
  "agentpedia": {
    "slug": "my-tool",
    "name": "My Tool",
    "type": "tool",
    "category": "developer_tools",
    "short_description": "A tool that helps agents process data",
    "capabilities": ["data-processing"]
  }
}

Commands

CommandDescription
agentpedia initCreate .agentpedia.json config file
agentpedia submitSubmit or update your listing
agentpedia register --name XRegister for an API key
agentpedia search --query XSearch the knowledge base
agentpedia helpShow help

CI/CD Integration

GitHub Actions

Add AGENTPEDIA_API_KEY to your repository secrets, then:

- name: Publish to npm
  run: npm publish
  env:
    AGENTPEDIA_API_KEY: ${{ secrets.AGENTPEDIA_API_KEY }}

The postpublish script handles the rest.

GitLab CI

publish:
  script:
    - npm publish
  variables:
    AGENTPEDIA_API_KEY: $AGENTPEDIA_API_KEY

Graceful Failures

The CLI is designed to never block your publish workflow. If AgentPedia is unreachable or the submission fails, it logs a warning and exits cleanly. Your npm publish always succeeds regardless.

License

MIT

Keywords

agentpedia

FAQs

Package last updated on 09 Apr 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts