Contextium CLI

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
contextium login
contextium workspaces
contextium libraries -w my-workspace
contextium cat --all -w my-workspace | pbcopy
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
contextium logout
contextium whoami
Setup
contextium setup
contextium init
contextium setup-claude
Workspaces and Libraries
contextium workspaces
contextium libraries -w <workspace>
contextium create-library -w <workspace> -n "Docs"
contextium update-library <libraryId> -n "New Name"
Files and Content
contextium files <library> -w <workspace>
contextium structure <library> -w <workspace>
contextium cat <fileId> -w <workspace>
contextium cat --all -w <workspace>
contextium new <library> -t "Title" -p path.md -w <workspace>
contextium edit <fileId> -c "Updated content" -m "summary"
contextium delete <fileId> --confirm
contextium versions <fileId>
contextium sync -w <workspace>
contextium status -w <workspace>
Search
contextium search "authentication flow" -w <workspace>
contextium find "api" -w <workspace>
Tags
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"
contextium tags list -w <workspace>
contextium tags create -w <workspace> --type <typeId> --value authentication
contextium tags update -w <workspace> --tag <tagId> --value auth
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>
contextium tags search -w <workspace> --tags topic:authentication
contextium tags file-tags -w <workspace> --file <fileId>
Agents and Skills
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>
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"
contextium workflow "Backend Task" -w <workspace>
Marketplace
contextium marketplace list
contextium marketplace list --type skill --category backend
contextium marketplace show code-review-assistant
contextium marketplace install code-review-assistant -w <workspace>
Global Flags
-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
contextium cat --all -w my-workspace | pbcopy
contextium cat --all -w my-workspace -l coding-standards | pbcopy
contextium search "deployment process" -w my-workspace
Set up a new team member
contextium login
contextium workspaces
contextium libraries -w acme-corp
contextium workflow "Onboarding" -w acme-corp
Organise docs with tags
contextium tags create-type -w my-workspace -n "Topic" --slug topic
contextium tags create -w my-workspace --type <typeId> --value authentication
contextium tags create -w my-workspace --type <typeId> --value deployment
contextium tags apply -w my-workspace --tag topic:authentication --file <fileId>
contextium tags search -w my-workspace --tags topic:authentication
Links
License
MIT © Contextium