diff --git a/Makefile b/Makefile index 7713bfab..5f17c96c 100644 --- a/Makefile +++ b/Makefile @@ -51,6 +51,7 @@ help: @echo " $(YELLOW)make test$(NC) Run tests" @echo " $(YELLOW)make lint$(NC) Run linters" @echo " $(YELLOW)make reset-demo-tenants$(NC) Reset DB + initialize 2 demo tenants (non-interactive)" + @echo " $(YELLOW)make reset-demo-tenants-dry-run$(NC) Preview the reset-demo-tenants workflow without executing it" @echo "" @echo "$(GREEN)$(BOLD)📡 Service URLs (when running):$(NC)" @echo " • WebUI: $(BLUE)http://localhost:5173$(NC)" @@ -153,6 +154,19 @@ reset-demo-tenants: @echo "→ Running API-side tenant initializer script (may wait for API to become available)" @python3 scripts/init_demo_tenants.py || echo "$(YELLOW)⚠ Demo initialization may have failed. Ensure API is running and try running 'python3 scripts/init_demo_tenants.py' manually.$(NC)" +# Dry-run version — prints what would happen (non-destructive). Uses make -n to preview the starter/db-reset command +.PHONY: reset-demo-tenants-dry-run +reset-demo-tenants-dry-run: + @echo "$(BLUE)🔎 Dry-run: previewing reset-demo-tenants workflow (no destructive actions will be performed)$(NC)" + @echo "" + @echo "Step 1: show db-reset command in 'starter' (dry-run)" + @make -n -C starter db-reset || true + @echo "" + @echo "Step 2: preview the API-side initializer script (note: script not executed in dry-run)" + @echo " python3 scripts/init_demo_tenants.py" + @echo "" + @echo "Run 'make reset-demo-tenants' to actually perform the reset and seeding (destructive)." + # ============================================================================ # SETUP & UTILITIES # ============================================================================