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

@intercom/cli

v0.5.0

Published

CLI tool for managing Intercom workspaces

Readme

Intercom CLI

CLI tool for managing Intercom workspaces. Designed for both human operators and AI agents.

Install

npm install -g @intercom/cli

Authentication

Existing workspace

Get an API access token from the Developer Hub:

  1. Go to the Developer Hub
  2. Click New app (or select an existing app)
  3. Under Authentication, copy the Access Token
  4. Set it in your environment:
export INTERCOM_TOKEN="<your-token>"

Or authenticate via the CLI:

intercom auth login --token "<your-token>"

New workspace

Use the setup command to provision a new workspace — no token required:

intercom setup --company-name "Acme"

Quick Start

# Check your identity
intercom me

# List help center articles
intercom articles list

# Get a conversation
intercom conversations get <conversation-id>

# Set up a workspace with articles and Fin
intercom setup --company-name "Acme" --articles-from ./docs

Commands

| Command | Description | |---|---| | intercom api <endpoint> | Raw API access (like gh api) | | intercom auth login\|logout\|status\|list\|switch | Manage authentication | | intercom auth bootstrap\|signup\|verify-email | Workspace provisioning | | intercom me | Show current admin and workspace | | intercom articles list\|get\|search\|create\|update\|delete | Manage help center articles | | intercom contacts list\|get\|create\|update\|delete\|search | Manage contacts | | intercom conversations list\|get\|reply\|search | Manage conversations | | intercom help-center list\|get\|create | Manage help center collections | | intercom messenger get\|update\|snippet | Configure Messenger | | intercom fin manifest\|enable\|download | Fin AI Agent core | | intercom fin procedures list\|get\|validate\|test\|publish | Fin procedures | | intercom fin guidance\|attributes\|audiences\|workflows\|simulations | Fin SDK resources | | intercom fin data-connectors list\|get | Fin data connectors | | intercom setup | Orchestrate full workspace setup | | intercom config get\|set\|list | Manage CLI configuration | | intercom pricing | Show current Intercom pricing | | intercom completion bash\|zsh\|fish | Generate shell completions |

Global Flags

| Flag | Description | |---|---| | --json | Output as pretty-printed JSON | | --jq <expr> | Filter JSON output (subset of jq) | | --workspace <id> | Override default workspace | | --verbose | Show HTTP request/response details | | --no-retry | Disable automatic rate limit retry | | --timeout <seconds> | Request timeout in seconds | | --agent | Force machine-readable output (JSON/NDJSON) | | --human | Force human-readable output even when piped | | --wide | Show all columns with wider truncation | | --version | Print CLI version |

Agent / Pipe Mode

When stdout is not a TTY (piped to another program), the CLI automatically outputs compact NDJSON — one JSON object per line. No flag needed:

# Automatic NDJSON when piped
intercom articles list | jq '.title'

# Force JSON with flag
intercom articles list --json

# Filter inline
intercom articles list --jq '.data[].title'

Raw API Access

The intercom api command provides direct access to any Intercom API endpoint:

# GET request (default)
intercom api /me

# POST with fields
intercom api /articles -f title="Hello" -f author_id=123

# Typed fields (booleans, numbers, file reads)
intercom api /articles -F draft:=true -F [email protected]

# Auto-paginate
intercom api /articles --paginate

# Use jq to filter
intercom api /contacts --jq '.data[].email'

Environment Variables

| Variable | Description | |---|---| | INTERCOM_TOKEN | API token (bypasses credential store) | | INTERCOM_API_BASE_URL | Override API base URL | | INTERCOM_APP_BASE_URL | Override app base URL | | INTERCOM_CONFIG_DIR | Override config directory | | INTERCOM_PASSWORD | Password for signup/bootstrap |

Development

git clone [email protected]:intercom/cli.git
cd cli
npm ci
npm run build   # Build to dist/
npm test        # Run tests (~5s)
npm run lint    # TypeScript typecheck
npm run dev     # Watch mode

# Try it locally
export INTERCOM_TOKEN="<your-token>"
node dist/index.js me

See SETUP.md for full developer setup guide.

License

MIT