CLI Reference
CLI Reference
IWE provides a powerful command-line interface for managing markdown-based knowledge graphs. The CLI enables you to initialize projects, normalize documents, explore connections, export visualizations, and create consolidated documents.
Quick start
- Initialize a project:
iwe init - Create a new document:
iwe new "My Note" - Normalize all documents:
iwe normalize - View document paths:
iwe paths - Analyze your knowledge base:
iwe stats - Export graph visualization:
iwe export dot
Installation and setup
Before using the CLI, ensure IWE is installed and available in your PATH. Initialize any directory as an IWE project:
cd your-notes-directory
iwe initThis creates a .iwe/ directory with configuration files.
Global usage
iwe [OPTIONS] <COMMAND>Global options
| Option | Description |
|---|---|
-V, --version | Display version information |
-v, --verbose <LEVEL> | Set verbosity level (default: 0). Use 1 for INFO, 2 for DEBUG |
-h, --help | Show help information |
Commands
Initialize a new IWE project
Create documents from templates
Normalize document formatting
Display navigation paths
List root documents
Consolidate linked documents
Generate graph statistics
Export graph visualizations