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

@contextium/cli

v1.0.65

Published

Command-line tool for managing Contextium documentation, agents, skills, and workflows — pipe context to AI coding assistants

Readme

Contextium CLI

npm version License: MIT

Command-line tool for managing Contextium — your team's AI knowledge store. Create and manage context libraries, agents, skills, workflows, and tags from the terminal. Pipe your team's documentation directly into Claude, Cursor, Copilot, and any other AI coding assistant.

What is Contextium?

Contextium is a central file system for team knowledge that AI assistants can read directly. Use it to store:

  • Coding standards and style guides your AI should always follow
  • SOPs for onboarding, deployments, incident response
  • AI agent configs — pre-configured assistants with defined roles and skills
  • Workflows — bundles of context that load in one command
  • Tags for organising and searching across all your documentation

The CLI lets you manage all of this from your terminal and pipe content into any AI workflow.

Install

npm install -g @contextium/cli

Or run without installing:

npx @contextium/cli --help

Quick Start

# 1. Authenticate
contextium login

# 2. See your workspaces
contextium workspaces

# 3. List context libraries
contextium libraries -w my-workspace

# 4. Pull all content into your clipboard (pipe to Claude, Cursor, etc.)
contextium cat --all -w my-workspace | pbcopy

# 5. Find a specific file
contextium find "authentication" -w my-workspace

Connect to Claude and Cursor

The CLI pairs with the Contextium MCP server so Claude and Cursor can read your workspace automatically.

Quickest setup:

contextium setup-claude

This writes the MCP config to ~/Library/Application Support/Claude/claude_desktop_config.json for you. Restart Claude Desktop and your team's docs are live in Claude.

Or connect via the hosted remote MCP (no local install needed):

{
  "mcpServers": {
    "contextium": {
      "type": "sse",
      "url": "https://mcp.contextium.io/sse"
    }
  }
}

Commands

Auth

contextium login           # Authenticate with your Contextium account
contextium logout          # Sign out
contextium whoami          # Show current user and workspace

Setup

contextium setup           # Guided interactive setup
contextium init            # Initialise Contextium in current project
contextium setup-claude    # Auto-write Claude Desktop MCP config

Workspaces and Libraries

contextium workspaces                                  # List workspaces
contextium libraries -w <workspace>                    # List context libraries
contextium create-library -w <workspace> -n "Docs"    # Create a library
contextium update-library <libraryId> -n "New Name"   # Rename a library

Files and Content

# List and browse
contextium files <library> -w <workspace>              # List files in a library
contextium structure <library> -w <workspace>          # Show folder tree
contextium cat <fileId> -w <workspace>                 # Read a file
contextium cat --all -w <workspace>                    # Dump all files (pipe to AI)

# Create and edit
contextium new <library> -t "Title" -p path.md -w <workspace>   # Create file
contextium edit <fileId> -c "Updated content" -m "summary"      # Update file
contextium delete <fileId> --confirm                             # Delete (trash)

# Version history
contextium versions <fileId>

# Sync local cache
contextium sync -w <workspace>
contextium status -w <workspace>

Search

contextium search "authentication flow" -w <workspace>   # Full-text search
contextium find "api" -w <workspace>                     # Find files by name/content

Tags

# Tag types (categories)
contextium tags types -w <workspace>
contextium tags create-type -w <workspace> -n "Topic"
contextium tags type-get -w <workspace> --type <typeId>
contextium tags type-update -w <workspace> --type <typeId> --name "Topic"

# Tags
contextium tags list -w <workspace>
contextium tags create -w <workspace> --type <typeId> --value authentication
contextium tags update -w <workspace> --tag <tagId> --value auth

# Apply / remove
contextium tags apply -w <workspace> --tag topic:authentication --file <fileId>
contextium tags apply-bulk -w <workspace> --tag <tagId> --files <file1,file2>
contextium tags remove -w <workspace> --tag <tagId> --file <fileId>

# Search by tags
contextium tags search -w <workspace> --tags topic:authentication
contextium tags file-tags -w <workspace> --file <fileId>

Agents and Skills

# Agents — AI assistants with defined roles
contextium agents list -w <workspace>
contextium agents create -w <workspace> -n "Code Reviewer"
contextium agents update -w <workspace> --agent <agentId> --name "Reviewer"
contextium agents add-skill -w <workspace> --agent <agentId> --skill <skillId>
contextium agents remove-skill -w <workspace> --agent <agentId> --skill <skillId>

# Skills — reusable knowledge blocks
contextium skills list -w <workspace>
contextium skills create -w <workspace> -n "API Patterns"

Workflows

contextium workflows list -w <workspace>
contextium workflows create -w <workspace> -n "Backend Task"
contextium workflows update -w <workspace> --id <workflowId> --name "Backend Delivery"

# Load a workflow — returns all associated agents, skills, and files
contextium workflow "Backend Task" -w <workspace>

Marketplace

contextium marketplace list                                        # Browse all listings
contextium marketplace list --type skill --category backend        # Filter
contextium marketplace show code-review-assistant                  # View details
contextium marketplace install code-review-assistant -w <workspace> # Install

Global Flags

| Flag | Description | |------|-------------| | -w, --workspace <name\|slug\|id> | Workspace selector | | -h, --help | Show command help | | -V, --version | Show CLI version |

Run contextium <command> --help for command-specific options.

Example Workflows

Pipe team docs into an AI prompt

# Get all docs and copy to clipboard
contextium cat --all -w my-workspace | pbcopy

# Get just a specific library
contextium cat --all -w my-workspace -l coding-standards | pbcopy

# Search and pipe results
contextium search "deployment process" -w my-workspace

Set up a new team member

# Authenticate
contextium login

# See what's available
contextium workspaces
contextium libraries -w acme-corp

# Load the onboarding workflow
contextium workflow "Onboarding" -w acme-corp

Organise docs with tags

# Create a tag type
contextium tags create-type -w my-workspace -n "Topic" --slug topic

# Create tags
contextium tags create -w my-workspace --type <typeId> --value authentication
contextium tags create -w my-workspace --type <typeId> --value deployment

# Tag files
contextium tags apply -w my-workspace --tag topic:authentication --file <fileId>

# Find all authentication files
contextium tags search -w my-workspace --tags topic:authentication

Links

  • Website: https://contextium.io
  • Documentation: https://contextium.io/docs/cli
  • MCP Server: https://www.npmjs.com/package/@contextium/mcp-server
  • Remote MCP: https://mcp.contextium.io
  • GitHub: https://github.com/tomjutla/contextium
  • Support: [email protected]

License

MIT © Contextium