@openweave/weave-cli
v1.0.3
Published
Weave CLI - Command-line interface for OpenWeave agent framework
Readme
⌨️ Weave CLI
Command-line interface for OpenWeave intelligent agent framework
Overview
Weave CLI is the command-line tool for interacting with OpenWeave locally. It provides commands to scaffold projects, track progress, and manage the agent's knowledge graph.
Installation
npm install -g @openweave/weave-cliOr use directly with npx:
npx @openweave/weave-cli --helpCommands
weave init <project>
Initialize a new OpenWeave project session.
weave init my-project
# Creates:
# - my-project/.weave/context.json (knowledge graph state)
# - my-project/ROADMAP.md (milestone tracker)weave status
Show current project status and milestones.
weave status
# Output:
# 🗺️ OpenWeave Project Status
# M1 · WeaveGraph Core [✅ 100%]
# M2 · WeaveLint Core [🔄 50%]
# M3 · WeavePath Core [🔜 0%]weave milestones
List all milestones and sub-tasks.
weave milestones
# Shows detailed breakdown of all milestonesweave errors
List error registry and correction patterns.
weave errors
# Shows common errors encountered and corrections appliedweave query <term>
Search the knowledge graph.
weave query "authentication system"
# Returns nodes matching the query with relevance scoresweave save-node
Manually add a node to the knowledge graph.
weave save-node --label "API Design Decision" --type DECISIONweave orphans
Run code orphan detection on current project.
weave orphans --path ./src
# Shows unused functions, classes, and modulesConfiguration
Weave CLI uses .weave/config.json for project settings:
{
"project_name": "my-project",
"knowledge_graph_path": ".weave/context.json",
"roadmap_file": "ROADMAP.md",
"include_tests": false,
"max_context_depth": 2
}Environment Variables
WEAVE_PROJECT_ROOT— Override project root directoryWEAVE_VERBOSE— Enable verbose loggingWEAVE_DEBUG— Enable debug mode
Related Packages
- @openweave/weave-graph — Knowledge graph storage and retrieval
- @openweave/weave-lint — Code orphan detection
- @openweave/weave-path — Milestone planning
- @openweave/weave-link — MCP server for integrations
