Firetool

Home / Features / Firestore emulator

Firebase emulators

A desktop GUI for the Firestore emulator

Connect Firetool to the Firestore and Authentication emulators on your computer, work with their data as you would with a real project, and save, load or clear it when you need a fresh start.

Why use it

The same tools for local data as for production

The Firebase emulators keep your data on your computer, which is the safe place to try a query, a script or a migration. The Emulator Suite's own page in the browser shows the data, but each test run usually starts from a set of documents you prepared, and getting back to it takes several commands. Firetool connects to the emulators like any other project: the same table, editor, query bar and JS Query, plus saving the emulator's data to a folder and loading it back in a few clicks.

Browse and edit

Everything you do with a real project

Choose File → Connect to emulator… and give the Firestore emulator's address (and the Authentication emulator's, if you use it). The emulator then appears in the sidebar with its collections.

  • Table, tree and JSON views, filters, sorts and totals
  • Edit, import and export documents; JS Query scripts
  • Authentication users in the emulator: find, add, edit and delete
A customers collection in Firetool's table, with one document open as JSON in the editor on the right

Real data, locally

Copy a project's data into the emulator

Load into the emulator… can also take documents and users from one of your real projects, through Migrate environments: the preview lists what will be copied before anything is written. Personal data can be masked on the way when your environment rules say so.

  • Documents, subcollections and Authentication users
  • Preview first; nothing in the emulator is deleted unless you choose to clear it first
  • Every change is in the audit log
Migrate environments previewing documents to create and replace per collection, an index, the security rules and users, before anything is written

Save, load and clear

Get back to a known state

Right-click the emulator's project in the sidebar (or open Home) to find the emulator data commands.

Save emulator data…

Writes the emulator's data to a folder that firebase emulators:start --import can start from.

Load into the emulator…

Brings back a saved folder, a Firetool backup or another project's data, and shows what it will load first.

Clear emulator data…

Removes every document and user, after showing how many there are.

New in 4.5.5

See what your rules decide, and more of the Emulator Suite

Rules requests

From the emulator project's menu (or the command palette): each read and write your app makes that the emulator's security rules decide, as it happens. You see whether it was allowed or denied, who was signed in, what a write sent, and the rules with the deciding line marked. Denied only and Path contains… narrow the list. Firetool's own reads and writes skip the rules, so they don't show.

Live every second

On an emulator project, Live can run a query again every second, 2 or 5 seconds, because the emulator's reads cost nothing. Real projects keep at least 15 seconds, since each refresh is billed.

The Storage emulator

Give the Storage emulator's address when you connect (usually 127.0.0.1:9199; Firetool fills it in when it finds one running) and the project gets Storage: browse, preview, upload, download, move, copy, delete and edit file details.

Services on the emulators

With Pro, the emulator project has Services too: Pub/Sub and Cloud Functions work through their emulators on this computer. List, publish to and watch topics; list functions with their triggers and call one at the emulator's own address. The other services are Google Cloud only, and their cards say so.

How it works

From the Firebase CLI to Firetool in a minute

Start the emulators

Run firebase emulators:start as usual, with --import if you have a saved folder.

Connect

In Firetool choose File → Connect to emulator… and give the addresses the CLI printed.

Work, then save

Query and change the data, then Save emulator data… to keep the state for the next run.

Questions

Questions about the emulator

Does the emulator's data leave my computer?

No. Firetool talks to the emulators on your computer directly, and nothing about their data is sent anywhere else. What Firetool sends firetool.in (the licence and update checks) is described in the privacy policy and never includes your data.

Do I need Pro for the emulator?

Browsing, filtering and querying are free, as with real projects. Changing data, imports, exports, scripts and the emulator data commands need Pro, or the 30-day trial.

Can I load a saved folder into a different project ID?

Yes. Load into the emulator… loads the Firestore part of a saved folder into the emulator project you connected (its default database), whatever project it was saved from, and replaces documents with the same paths.

Does Firetool start the emulators for me?

No. Start them with the Firebase CLI as you do now; Firetool connects to them while they run.

Try it on your own data

Free for Windows, macOS and Linux, with every Pro feature for the first 30 days.