This guide walks you through installing and using graphify-dotnet as a command-line tool on your machine.
# Install from NuGet
dotnet tool install -g graphify-dotnet
# Run against current directory
graphify run .
# Check it worked
graphify --help- .NET 10 SDK or later (download)
- Command-line access (PowerShell, Bash, or equivalent)
Verify installation:
dotnet --versionStarting with v0.5.0, graphify-dotnet is published on NuGet.org. Install with:
dotnet tool install -g graphify-dotnetThis installs the global tool and adds it to your PATH automatically.
If you're developing or testing a local build:
# Build the NuGet package
dotnet pack src/Graphify.Cli/ -c Release
# Install from your local build output
dotnet tool install -g graphify-dotnet \
--add-source src/Graphify.Cli/bin/Release \
--allow-prerelease-versionsFor quick testing without installing globally:
# Clone or navigate to the repository
cd graphify-dotnet
# Run directly from source
dotnet run --project src/Graphify.Cli -- run .
# With options
dotnet run --project src/Graphify.Cli -- watch . --output ./my-graphOnce installed, the graphify command is available system-wide:
# Analyze current directory
graphify run .
# Analyze a specific path with custom output
graphify run ./src --output ./docs/graph
# Watch for changes and incrementally update the graph
graphify watch . --output ./graph-out
# Measure token reduction in an existing graph
graphify benchmark ./graph-out/graph.json
# View current configuration
graphify config show# Run with Azure OpenAI (configured via env vars or secrets)
graphify run . --provider azureopenai
# Run with Ollama (local models)
graphify run . --provider ollama
# Specify custom endpoint and credentials
graphify run . --provider azureopenai \
--endpoint https://myresource.openai.azure.com/ \
--api-key sk-... \
--deployment gpt-4o
# Custom Ollama endpoint
graphify run . --provider ollama \
--endpoint http://custom:11434 \
--model codellamagraphify run [path] [options]— Full pipeline: detect files, extract knowledge, build graph, exportgraphify watch [path] [options]— Watch for file changes and incrementally re-processgraphify benchmark [graph.json]— Measure token reduction of a generated graphgraphify config show— Display active configuration from all sources
| Option | Short | Default | Description |
|---|---|---|---|
--output |
-o |
graphify-out |
Directory where output files are saved |
--format |
-f |
json,html,report |
Export formats (comma-separated: json, html, report) |
--verbose |
-v |
— | Enable detailed output and diagnostics |
--provider |
-p |
— | AI provider: azureopenai, ollama, or copilotsdk |
--endpoint |
— | — | Custom endpoint URL |
--api-key |
— | — | API key (Azure OpenAI) |
--deployment |
— | — | Deployment name (Azure OpenAI) |
--model |
— | — | Model ID (Ollama) |
--help |
-h |
— | Show command help |
# Analyze with HTML and JSON output
graphify run ./src --format json,html --output ./reports
# Watch with verbose logging
graphify watch . --verbose
# Custom output location
graphify run /path/to/project --output /path/to/output
# Benchmark a graph
graphify benchmark ./graphify-out/graph.json
# Run with Ollama using custom endpoint
graphify run . --provider ollama --endpoint http://192.168.1.100:11434 --model llama3.2To get the latest version:
dotnet tool update -g graphify-dotnetThis updates to the latest stable release on NuGet.
To remove the global tool:
dotnet tool uninstall -g graphify-dotnetThis removes the tool from your PATH and deletes the installation.
Problem: graphify: command not found or graphify is not recognized
Solution: Verify the tool installed:
dotnet tool list -g | grep graphifyIf it's listed, your PATH may not be updated:
- PowerShell: Restart your terminal or run
$env:PATH -split ';' | Select-String 'dotnet' - Bash/Linux/macOS: Source your shell profile:
source ~/.bashrcorsource ~/.zshrc
Problem: Multiple versions installed or conflicts with project tools
Check installed version:
graphify --helpView all installed tools:
dotnet tool list -gForce reinstall:
dotnet tool uninstall -g graphify-dotnet
dotnet tool install -g graphify-dotnetProblem: Installation fails with permission errors
Solution (Windows): Run PowerShell as Administrator
# Run as Admin
dotnet tool install -g graphify-dotnetSolution (Linux/macOS): Use sudo if necessary:
sudo dotnet tool install -g graphify-dotnetProblem: dotnet: command not found or SDK not detected
Solution: Install .NET 10 SDK from dotnet.microsoft.com
Verify after installation:
dotnet --version- Watch Mode Guide — Incremental knowledge graph updates
- README — Project overview