npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@belmonddev/aikido-cli

v2.0.0

Published

CLI tool for Aikido Security platform - list issues, repos, and export security data

Readme

@belmonddev/aikido-cli

CLI tool for interacting with the Aikido Security platform. List security issues, repositories, and export vulnerability data directly from the command line.

Installation

npm install -g @belmonddev/aikido-cli

Or use directly via npx:

npx @belmonddev/aikido-cli <command>

Authentication

The Aikido CLI uses OAuth Client Credentials (not IDE tokens).

Interactive Login (Recommended)

  1. Run the login command:

    belmond-aikido login
  2. A browser will open to Aikido's API Credentials page

  3. Click "Add Client" to create new credentials

  4. Copy your Client ID and Client Secret

  5. Enter them when prompted

Credentials are stored in ~/.config/belmond-aikido/config.json.

Environment Variables (For CI/CD)

Set the following environment variables:

export AIKIDO_CLIENT_ID="your-client-id"
export AIKIDO_CLIENT_SECRET="your-client-secret"

Create client credentials at: https://app.aikido.dev/settings/integrations/api/aikido/rest

Note: IDE Personal Access Tokens (from /settings/integrations/ide) do NOT work with this CLI. You need API Client Credentials.

Commands

login

Authenticate with Aikido using OAuth Client Credentials.

belmond-aikido login

logout

Remove stored credentials.

belmond-aikido logout

repos

List all connected code repositories.

belmond-aikido repos
belmond-aikido repos --json

issues

List open security issues.

# List all issues
belmond-aikido issues

# Filter by severity
belmond-aikido issues --severity critical

# Filter by repository
belmond-aikido issues --repo vision

# Filter by status
belmond-aikido issues --status new
belmond-aikido issues --status todo
belmond-aikido issues --status pull_request_open

# Combine filters
belmond-aikido issues --severity high --repo my-app

# Limit results
belmond-aikido issues --limit 10

# JSON output for scripting
belmond-aikido issues --json

Options:

  • -s, --severity <level> - Filter by severity (critical, high, medium, low)
  • -r, --repo <name> - Filter by repository name (partial match supported)
  • --status <status> - Filter by status (new, todo, pull_request_open)
  • -l, --limit <number> - Limit number of results
  • --json - Output as JSON

issue <id>

Get details for a specific issue.

belmond-aikido issue 12345
belmond-aikido issue 12345 --json

export

Export all issues to a file.

# Export as JSON
belmond-aikido export --output issues.json

# Export as CSV
belmond-aikido export --format csv --output issues.csv

# Filter exports
belmond-aikido export --severity critical --output critical-issues.json

Options:

  • -f, --format <format> - Output format: json (default) or csv
  • -o, --output <file> - Output file path
  • -s, --severity <level> - Filter by severity
  • -r, --repo <name> - Filter by repository

Examples

# Quick check of critical issues
belmond-aikido issues --severity critical

# Export issues for a specific repo
belmond-aikido export --repo vision --output vision-issues.json

# Get detailed info about an issue
belmond-aikido issue 12345

# JSON output for scripting
belmond-aikido issues --json | jq '.[] | select(.severity == "critical")'

Programmatic Usage

The package also exports classes for programmatic use:

import { createAuth, createClient } from '@belmonddev/aikido-cli';

const auth = createAuth();
const client = createClient(auth);

// Fetch repositories
const repos = await client.getRepositories();

// Fetch issues with filters
const issues = await client.getIssueGroups({
  severity: 'critical',
  repo: 'my-repo',
});

// Get issue details
const detail = await client.getIssueGroupDetail(12345);

// Export issues
const exportData = await client.exportIssues({ format: 'json' });

Configuration

Config file location: ~/.config/belmond-aikido/config.json

The CLI stores:

  • OAuth Client ID and Secret
  • Access tokens and refresh tokens
  • Token expiry information

Troubleshooting

"No credentials found"

Run belmond-aikido login or set environment variables AIKIDO_CLIENT_ID and AIKIDO_CLIENT_SECRET.

"Authentication failed"

Your token may have expired. Run belmond-aikido login to re-authenticate.

"Rate limit exceeded"

Wait a few minutes before making more requests.

API Reference

This CLI uses the Aikido Public REST API. Full documentation: https://apidocs.aikido.dev/

License

ISC