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 😋

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay