Skip to content

sync

sync updates managed regions only — router routes and DI registrations — without rewriting hand-authored code outside markers.

Terminal window
dart run stackchain sync [options]
Option Description
--dry-run Preview merges
--skip-analyze Skip analyze in gate
Region ID Typical file
routes lib/app/router/…
core lib/core/di/injection.dart
features lib/core/di/injection.dart

Markers look like:

// <stackchain:routes>
// ... generated route table ...
// </stackchain:routes>

When routing: navigator, router file sync is skipped.

Terminal window
dart run stackchain sync
dart run stackchain sync --dry-run