Foundry uses the value of the main
field in your package.json
as a path to look for the file where are all your Cloud Functions exported. If your package.json
doesn't specify the main
field, Foundry expects that all your Cloud Functions are exported in the index.js
file that is placed in the same directory as is your package.json
file.
The cloud environment exists only for the time of your session. Once your session ends, the environment is terminated.
We don't store your code or any data for a duration longer than is the duration of your session. Once your session ends, your cloud environment is terminated and only metadata (environment variables) is preserved.
The service account is needed for any action that requires copying data from your production Firestore database, production RealtimeDB or production Firebase Auth to their emulated equivalents. You can definitely use Foundry without specifying a path to your service account. Some features just won't be available though.
Go to and select your project.
In your Firebase dashboard, select the settings icon. The icon is placed at the top of the left sidebar:
3. A popup menu will appear, select "Project settings":
4. This will take you to your projects settings with links to different sections on top. Select "Service accounts.":
5. A window with info about the Firebase Admin SDK will appear. There, click on "Generate new private key" at the bottom:
6. This will present a modal window informing you about security implications. Read the text and then click on the "Generate key" button at the bottom. This will download a JSON file that is your service account key: