DEV Community

Cover image for How to add Firebase CLI to your Flutter Project- Fast Steps
Chibueze  felix
Chibueze felix

Posted on • Updated on

How to add Firebase CLI to your Flutter Project- Fast Steps

First of all a quick disclaimer this will be quick and short as well directly targeted at macOS users.
What motivated me to do this because I needed a TLDR version of doing this and it took time and various tabs to achieve. So this might help and save you some time

Create and app on firebase enter your name of choice.

Add firebase to your PATH like so:
on your terminal enter nano ~/zshrc
add this to the list export PATH="$PATH":"$HOME/.pub-cache/bin" quit and save

Install firebase tool with command
on your terminal enter curl -sL firebase.tools | upgrade=true bash

Enter password(if any)
Login to firebase
on your terminal enter firebase login this open your browser and ask for access to your firebase account.

Activate firebase on your app. On the directory of your flutter project.
on your terminal enter flutter configure
This configures all requirement onto your app. Confirm installation with firebase --version

Add flutter_core package to you app.

Thats it. Short right?? Now you can use most firebase services such as Firebase app distribution, realtime database etc.

Connect with me on linkedIn and twitter 😋

Top comments (0)