Documentation

    How to use Firestore Studio, from the first connection to restoring a change.

    Connecting projects

    Four ways to connect

    Firebase CLI, Google account, service account and emulator compared.

    Most features work with all four connection types; the exceptions are listed below. They differ in how the app proves who you are to Google, and in how a project appears in the project switcher.

    TypeHow you connectShown in the switcher as
    Firebase CLI accountRun firebase login on this computer. The app reads that login.A group titled with the CLI email
    Google accountSign in to the app with Google.Google Account
    Service accountPaste a service account JSON key in the app.Service Accounts
    EmulatorEnter the host of a local Firebase emulator.Emulators

    Add a service account or an emulator from the + menu at the top of the sidebar, under Add Connection: Service Account and Firestore Emulator.

    Note: Pipeline queries, backups, point-in-time recovery, database creation and Explain are not available on an emulator. Each of those articles says so where it applies.

    Use your Firebase CLI login

    Projects from firebase login appear without any setup.

    If you are logged in with the Firebase CLI on this computer, the app finds the login and lists the same projects as firebase projects:list, with their display names. The group is titled with the CLI email.

    1. Step 1: On the command line run firebase login.
    2. Step 2: Open or restart Firestore Studio and sign in to the app.
    3. Step 3: Open the project switcher. Your projects are listed under the CLI email group.
    4. Step 4: To reload the list later, right-click the group and choose Refresh.

    Note: Only the primary CLI account is listed. If you added more accounts with firebase login:add, the others do not appear.

    Warning: If the CLI session expires, the app shows: Firebase CLI session expired. Run "firebase login --reauth" and click Refresh. The CLI group is removed until you do.

    Use a Google account

    Sign in with Google to list the Firebase projects you can access.

    When you sign in to Firestore Studio with Google, your Firebase projects are listed in the project switcher under Google Account. The display names come from your Google Cloud projects.

    1. Step 1: On the sign-in screen choose Sign in with Google.
    2. Step 2: Pick the Google account in the browser window that opens and approve the access it asks for.
    3. Step 3: Return to the app and open the project switcher. Your projects are under Google Account.
    4. Step 4: To reload the list, right-click the group and choose Refresh.

    Note: The sign-in requests the Google scopes cloud-platform.read-only and firebase.readonly. If Google reports a permission error for one project, other projects keep working.

    Warning: If the token expires and cannot be refreshed, the app shows: Google sign-in expired. Sign in again to refresh Google projects.

    Add a service account

    Connect a project with a service account JSON key.

    A service account connects the app to one project with the permissions of that account. Use it when you do not want to use your own login, or when the project belongs to another organization.

    1. Step 1: In the Firebase or Google Cloud console, create a key for the service account and download the JSON file.
    2. Step 2: In the app, open the + menu at the top of the sidebar and choose Service Account.
    3. Step 3: Enter a Name, for example Production Service Account.
    4. Step 4: Paste the whole contents of the file into Service Account JSON, from the opening brace to the closing brace.
    5. Step 5: Choose Add Service Account. The app validates the key and lists the projects it can reach.

    The name is required and must be shorter than 100 characters. The app refuses text that is not valid JSON, JSON whose type is not service_account, and keys that Google rejects.

    Warning: The key is stored encrypted on this computer. Anyone who has the key file has the account permissions, so keep the file private. Remove the connection with Delete Service Account in the switcher menu when you no longer need it.

    Add a local emulator

    Work against the Firebase emulator suite on your own machine.

    An emulator connection points the app at a local Firestore emulator, and optionally at the Authentication and Storage emulators of the same suite. Nothing is sent to Google.

    1. Step 1: Start your emulators, for example with firebase emulators:start.
    2. Step 2: In the app, open the + menu at the top of the sidebar and choose Firestore Emulator.
    3. Step 3: Enter a Name, for example Local Development.
    4. Step 4: Enter the Host as host and port, for example localhost:8080.
    5. Step 5: Optional: enter a Project ID. Leave it empty to use emulator-project. Use the ID your emulator data is stored under, for example the one passed to --project.
    6. Step 6: Under Databases add the database IDs your emulator is configured with. At least one is required.
    7. Step 7: Optional: set the Authentication emulator host (for example localhost:9099) and the Storage emulator host (for example localhost:9199). Leave them empty to have the app find them.
    8. Step 8: Choose Detect to check what the app can find for the host you typed. It reports the Authentication and Storage hosts it found, or says that nothing was found.
    9. Step 9: Choose Add Emulator.

    Note: Hosts must be written as a host name or IP address and a port. The emulator does not run pipeline queries, Explain, backups or point-in-time recovery.

    The Authentication and Storage tabs work on emulator connections too. If the app cannot find the emulator, those tabs ask for the host. See Emulator or host not reachable.

    Database kinds and labels

    Standard, Enterprise (native) and MongoDB-compatible databases.

    A project can hold several Firestore databases. The app shows a tag after each database ID so you can see which kind it is.

    TagMeaningWhat the app does
    (standard)Standard editionClassic queries and realtime listeners. Pipeline queries are not available.
    (native)Enterprise edition, Native modeClassic and Pipeline queries. Realtime listeners are not available.
    (mongo)Enterprise edition, MongoDB compatibilityNot supported. The database cannot be opened and cannot be chosen as a target.

    A database that has delete protection on is drawn with a warning color on its icon. The databases of a project are listed when you expand Firestore in the sidebar. The (default) database is the one Firestore creates with the project.

    Note: On an Enterprise (native) database the grid reloads after each change you make in the app. Use RUN QUERY to see changes made by someone else.

    Switch, rename and remove projects

    Use the project switcher and its right-click menus.

    1. Step 1: Click the project switcher at the top of the sidebar.
    2. Step 2: Type in Search projects to filter by name or ID.
    3. Step 3: Click a project to select it. The app remembers your selection when you restart.

    Projects are grouped as Google Account, the CLI email, Service Accounts and Emulators. Right-click a group for Refresh and Color. Right-click a project for its menu.

    Menu itemAvailable for
    Reveal in Firebase ConsoleEvery type except emulators
    Rename ProjectCLI and Google projects. Changes the project display name.
    Project infoCLI, Google and service-account projects. Shows source, project ID, project number, default location and bucket, pricing plan and labels, and lets you edit the display name.
    RenameService accounts and emulators. A local name only.
    Delete Service Account or Delete EmulatorService accounts and emulators. Asks first. Removes the saved connection from this computer.
    ColorCLI, Google and service-account projects. Tag a project with a color so you can tell similar projects apart.

    Note: CLI and Google projects have no Delete entry because they follow your login. If a saved project disappears from your account, its tab shows a Project no longer available notice with Refresh projects and Close tab.