flutterfire cli not working from VS Code terminal
I have added the flutterfire cli path into the environment variables on Windows. Still VS Code terminal does not know flutterfire command. Even though it is working in windows cmd.
Try flutterfire.bat instead of flutterfire
Eg: flutterfire.bat configure
I have the same issue. I added path to environment variable as well, but still getting flutterfire cli not working. Tried .bat also but didn't work
I initially had the same problems. Neither flutterfire nor flutterfire.bat worked, when freshly installed the first time + setting up extra PATH directories.
Eventually, after a system reboot and doing:
-
dart pub global activate flutterfire_cli -
flutterfire.bat
... it just worked.
In a linux-like environment (ex: git-bash), adding an alias helps too. There are multiple ways to accomplish this. One of them is:
-
alias flutterfire=flutterfire.bat
I initially had the same problems. Neither
flutterfirenorflutterfire.batworked, when freshly installed the first time + setting up extra PATH directories.Eventually, after a system reboot and doing:
dart pub global activate flutterfire_cliflutterfire.bat... it just worked.
In a linux-like environment (ex: git-bash), adding an alias helps too. There are multiple ways to accomplish this. One of them is:
alias flutterfire=flutterfire.bat
This worked for me 05-01-24 in visual studio code on windows. Thanks!