ucp-cli-0.1.12 is not a library.
UCP CLI
Command-line interface for the Unified Content Protocol (UCP).
Overview
The ucp CLI provides comprehensive access to UCP functionality including document management, block operations, UCL execution, and agent traversal. It is ideal for automation, CI pipelines, regression testing, and rapid document inspection without writing host-language code.
Installation
Usage
# Get help
# Create a new document
# Add a block
# View document structure
# Validate document
Global Flags
-v, --verbose- Enable debug-level logging--trace- Enable trace-level logging-f, --format <text|json>- Output format (default: text)
Command Categories
Document Management
create- Create a new UCP documentinfo- Display document informationvalidate- Validate a document
Block Operations
block add- Add a new blockblock get- Get block by IDblock delete- Delete a blockblock move- Move a blockblock list- List all blocksblock update- Update block content
Edge Operations
edge add- Add an edge between blocksedge remove- Remove an edgeedge list- List edges for a block
Navigation
nav children- Show child blocksnav parent- Show parent blocknav siblings- Show sibling blocksnav descendants- Show all descendants
Search & Structure
find- Find blocks matching criteriaorphans- Find orphaned blockstree- Display document hierarchyprune- Prune orphaned or tagged blocks
Transactions
tx begin- Begin a transactiontx commit- Commit a transactiontx rollback- Rollback a transactiontx savepoint- Create a savepoint
Snapshots
snapshot create- Create a snapshotsnapshot restore- Restore from snapshotsnapshot list- List snapshotssnapshot delete- Delete a snapshotsnapshot diff- Compare two snapshots
Import/Export
import markdown- Import from Markdownimport html- Import from HTMLexport markdown- Export to Markdownexport json- Export to JSON
UCL (Unified Content Language)
ucl exec- Execute UCL commandsucl parse- Parse and validate UCL
Agent
agent session create- Create agent sessionagent session list- List sessionsagent session close- Close sessionagent goto- Navigate to blockagent back- Go back in historyagent expand- Expand contextagent follow- Follow edge typeagent search- Search blocksagent context add- Add to contextagent view- View current position
LLM
llm id-map- Create ID mappingllm shorten-ucl- Convert to short IDsllm expand-ucl- Expand short IDsllm prompt- Generate prompt docsllm context- Manage context window
License
MIT