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

  1. Initialize a project: iwe init
  2. Create a new document: iwe new "My Note"
  3. Normalize all documents: iwe normalize
  4. View document paths: iwe paths
  5. Analyze your knowledge base: iwe stats
  6. 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 init

This creates a .iwe/ directory with configuration files.

Global usage

iwe [OPTIONS] <COMMAND>

Global options

OptionDescription
-V, --versionDisplay version information
-v, --verbose <LEVEL>Set verbosity level (default: 0). Use 1 for INFO, 2 for DEBUG
-h, --helpShow help information

Commands

Additional resources