Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'flutterfire configure' command not working, I need to set firebase in my flutter project

I followed "https://firebase.flutter.dev/docs/overview" instruction to set firebase in my flutter project.

step i took:

  1. "flutter pub add firebase_core" then dependencies were added, and generated_plugin_registrant.dart was created. generated_plugin_registrant.dart file

2) "dart pub global activate flutterfire_cli" it showed an warnign message ie "Warning: Pub installs executables into C:\Users\Asus\AppData\Local\Pub\Cache\bin, which is not on your path. You can fix that by adding that directory to your system's "Path" environment variable. A web search for "configure windows path" will show you how. Activated flutterfire_cli 0.1.1+2."

  1. then i added "C:\Users\Asus\AppData\Local\Pub\Cache\bin" in system; "path" environment variable.

  2. "flutterfire configure" now it gives error "bash: flutterfire: command not found".

like image 512
Hrishabh Avatar asked Nov 30 '25 03:11

Hrishabh


2 Answers

Step by step commands for getting flutterfire work in Mac:

dart pub global activate flutterfire_cli  
export PATH="$PATH":"$HOME/.pub-cache/bin"
curl -sL https://firebase.tools | bash  
firebase login
flutterfire configure

More details here

like image 127
Elmar Avatar answered Dec 02 '25 20:12

Elmar


I had the same problem. Following command worked for me (in Windows).

flutterfire.bat configure
like image 30
ST24 Avatar answered Dec 02 '25 18:12

ST24



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!