Skip to main content

Usage

devgraph watch [paths...] [options]

Options

OptionDescriptionDefault
--out-dir <dir>Output directory for generated artifacts.devgraph
--forceBypass the shrink guardfalse
--debounce <ms>Debounce time for filesystem events300
--helpShow help

What Watch Does

devgraph watch runs an initial build, then watches the repo for file changes. When files change it:
  1. debounces the event stream
  2. reruns the same sync engine used by devgraph build
  3. updates changed per-file artifacts in .devgraph/cache/
  4. rewrites manifest.json and graph.json

Typical Workflow

devgraph watch .
Keep this running while you work if you want the local graph to stay fresh without manual rebuilds.