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
Tags are flat and untyped — a tag is just a #value (no categories, no type:value format). A file is tagged by typing #value inside its content; the tag is reconciled when the file is saved.
contextium tags list -w <workspace>
contextium tags search -w <workspace> --tags authentication
contextium tags file-tags -w <workspace> --file <fileId>
To tag a file, author the tag inline — add a #authentication token to the file's content (e.g. contextium edit-file <id> --content "… #authentication"); the tag is created on save. To untag, remove the token. There are no tags create, tags update, or tags delete commands, and tags apply/apply-bulk/remove are deprecated — tagging is entirely inline.
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 edit-file <fileId> --content "… #authentication"
contextium tags search -w my-workspace --tags authentication
Links
License
MIT © Contextium