-
Notifications
You must be signed in to change notification settings - Fork 3
Cookbook
Recipes for common flutter-cli workflows.
Run on every connected device at once:
flutter-cli run -d allPress r to hot-reload all devices simultaneously. Use Tab to focus a single device panel and r to reload only that one.
While the TUI is running, press s to take a screenshot of the focused device. Screenshots land in screenshots/<device-id>/<timestamp>.png.
To automate screenshots across all devices from outside the TUI:
flutter-cli screenshot -d all --out screenshots/- Start your app:
flutter-cli run - Press
nto open the network inspector panel. - Use your app to trigger the HTTP calls you care about.
- Press
/to filter by URL substring (e.g.,/api/v1). - Press
Enteron a request to expand headers and body. - Press
xto export everything as a HAR file for analysis in browser DevTools or HAR Viewer.
With the TUI open, press i to enable the Flutter widget inspector overlay on the focused device. The VM Service URL is also shown in the panel header — paste it into your browser DevTools or IDE for deeper inspection.
Press d to print the full DevTools URL to the log.
/ → type a regex, e.g. ERROR|WARN
Press / in the TUI, type your filter (plain string or regex), and press Enter. Only matching lines are shown. Press Esc to clear.
For permanent filtering, pass --log-filter on startup:
flutter-cli run --log-filter "ERROR|WARN"flutter-cli run --flavor staging -- --dart-define=ENV=stagingArguments after -- are forwarded verbatim to flutter run.
flutter-cli detects non-interactive terminals and falls back to plain log streaming automatically. You can also force it:
flutter-cli run --no-tuiUseful in CI where you want the multi-device orchestration but not the TUI renderer.
Press d inside the TUI to print the VM Service / DevTools URL for the focused device. Then open it in your browser, or press D (capital) to have flutter-cli open it for you via flutter pub global run devtools.
flutter-cli run --watchTriggers hot reload automatically whenever a Dart file in lib/ changes. Uses filesystem events — no polling.