DEV Community

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

Posted on • Edited on

1

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 😋

Heroku

Built for developers, by developers.

Whether you're building a simple prototype or a business-critical product, Heroku's fully-managed platform gives you the simplest path to delivering apps quickly — using the tools and languages you already love!

Learn More

Top comments (0)

Image of Quadratic

Free AI chart generator

Upload data, describe your vision, and get Python-powered, AI-generated charts instantly.

Try Quadratic free

👋 Kindness is contagious

If you found this post useful, please drop a ❤️ or a friendly comment!

Okay.