Use this link to visit the page to download:
fcm-cli is a command-line tool for sending Firebase Cloud Messaging notifications through the HTTP v1 API.
Use it to:
- send push notifications to mobile devices
- send messages to one device or many devices
- manage repeat notification tasks
- test notification payloads before use
- run message jobs from a Windows computer
Before you start, make sure you have:
- a Windows PC
- an internet connection
- access to a Firebase project
- FCM service account details
- a device token or topic name for the target app
Follow these steps to run fcm-cli on Windows.
Go to:
Look for the latest release, build file, or download option on the page.
If the page gives you a Windows file, download it to your computer.
If the page gives you a zip file, save the zip file and extract it.
If the page gives you source files, download the package that matches Windows use.
If you downloaded a zip file:
- right-click the zip file
- choose Extract All
- pick a folder you can find later, such as Downloads or Desktop
Find the folder that contains the app files.
You may see files with names like:
- fcm-cli.exe
- config.json
- README.md
If you see an .exe file:
- double-click the file to run it
If Windows asks for permission:
- choose Run or Yes
If a black window opens, that is normal for a CLI tool.
You need a few details before you send a message.
Have these ready:
- Firebase project ID
- service account file
- FCM sender data
- target device token or topic
The service account file helps fcm-cli connect to Firebase.
Place it in the app folder or in the location that the setup steps ask for.
Prepare the message you want to send:
- title
- body
- target device token or topic
- extra data fields if needed
After the app opens, use the command shown by the tool or the sample command from the project files.
A common flow looks like this:
- choose the target
- add the title and message body
- point to your Firebase data
- send the notification
If the app uses typed commands, enter them in the window exactly as shown.
If the app uses a config file, fill in the values, save the file, then run the tool again.
Use this when you want to check that Firebase works.
Use this for updates, reminders, or account alerts.
Use this when many devices follow the same topic.
Use this when you want to send messages on a schedule or from another tool.
A typical setup may include:
- the main app file
- a config file
- a credentials file
- logs or output files
Keep these files in one folder so they are easy to find.
If the app does not start:
- check that you downloaded the right Windows file
- make sure the files were fully extracted
- try running the app as administrator
- move the folder to a simple path like
C:\fcm-cli - avoid running it from a protected folder
If Windows blocks the file:
- open the fileβs Properties
- look for an Unblock option
- apply the change and try again
A simple setup may look like this:
- Download the files from the GitHub page
- Extract them to a folder
- Add your Firebase service account file
- Add your project ID and target data
- Open the app
- Send a test notification
fcm-cli is built for message delivery through Firebase Cloud Messaging.
It is suited for:
- app alerts
- device push messages
- internal system notices
- automation jobs
- backend notification tasks
- check that you downloaded the right file for Windows
- re-extract the zip file
- try a new folder path
- open it from Command Prompt or PowerShell so you can see the message
- check the config file for typing errors
- confirm that the service account file is in the right place
- check your Firebase project ID
- check your service account file
- confirm that the device token or topic is valid
- make sure your internet connection is working
- confirm the app on the device allows push notifications
- check that the device token is current
- test with a new token
- make sure the app is linked to the same Firebase project
For fewer issues, keep the app in a short folder path such as:
C:\fcm-cliC:\Users\YourName\Downloads\fcm-cli
Avoid deep folder paths with many nested folders.
Before using the tool for real messages:
- send a test notification to one device
- check the title and body
- confirm the target receives it
- review the payload if the app supports it
- only then send a wider message
Have these values ready when you use the tool:
- Firebase project ID
- service account JSON
- device token
- topic name
- notification title
- notification body
- custom data fields
Visit this page to download and set up the app:
If you are new to Firebase, start with one test message.
Use one device first. That makes it easier to check your setup.
Once the message works, you can use the same setup for other targets and tasks