Short answer
Run dart pub global activate flutterfire_cli. Then add the pub cache bin folder to PATH: $HOME/.pub-cache/bin on macOS and Linux (in ~/.zprofile or ~/.bashrc), %LOCALAPPDATA%\Pub\Cache\bin on Windows. Close and reopen the terminal and editor, then run flutterfire configure. As a quick workaround, dart pub global run flutterfire_cli:flutterfire configure runs it without PATH.
Why the shell can’t find flutterfire, and the fix
01
The CLI was never activated on this machine
“Install the FlutterFire CLI by running the following command from any directory: dart pub global activate flutterfire_cli” Firebase, Add Firebase to your Flutter app
The FlutterFire CLI isn’t part of Flutter or the Firebase CLI. Activate it once per machine, from any folder.
dart pub global activate flutterfire_cli02
The pub cache bin folder isn’t on PATH
“Verify that the bin directory for the system cache is in your path.” Dart, dart pub global
The activate command prints a warning when this folder is missing from PATH, and it is easy to miss. Add it, then close and reopen every terminal and your editor so they read the new PATH.
# macOS (zsh): add to ~/.zprofile export PATH="$PATH:$HOME/.pub-cache/bin" # Windows: add this folder to the Path user variable %LOCALAPPDATA%\Pub\Cache\bin03
You need it working right now
dart pub global run starts an activated package without PATH. It’s fine for a one-off configure; fix PATH for everyday use.
dart pub global run flutterfire_cli:flutterfire configure04
flutterfire runs, then fails on the Firebase CLI
flutterfire configure calls the Firebase CLI to list your projects. If firebase isn’t installed or you aren’t logged in, it stops there. Install the Firebase CLI, run firebase login, and try again.
npm install -g firebase-tools firebase login flutterfire configure
Checked against the vendor’s docs on : Firebase: Add Firebase to your Flutter app; Dart: dart pub global (PATH and pub cache).
Rather hand it over?
Fixed scope, fixed price, paid upfront. The work happens in writing; no call needed.
- from $450App Fix TicketOne reproducible bug in an existing mobile or web app, diagnosed and fixed.See scope and start
- from $450AI-Built App RescueA Lovable, Bolt or Cursor app checked end to end in 3 days, then its worst problems fixed at a fixed price.No issues worth fixing, no charge. If the Launch Check finds nothing rated medium or higher, Simon refunds the full $450. You keep the report either way. This applies to the first 10 Launch Checks bought after October 30, 2026.See scope and start
Related: flutter: command not found · Firebase “google-services” plugin not found · Flutter “Target of URI doesn’t exist” · “firebase: command not found”