Skip to content

Firebase & Cloud Integration

Antigravity integrates with Google Cloud through Firebase Skills, Cloud Shell, and Cloud Workstations. Firebase Skills give agents deep context about Firebase APIs and best practices. Cloud Shell and Workstations come with Gemini CLI pre-installed. This lesson covers the cloud-native development workflow.

Gnome mascot

What you'll learn

  • Firebase Skills give Antigravity agents context about Firebase Authentication, Firestore, Hosting, and Functions
  • Cloud Shell and Cloud Workstations come with Gemini CLI pre-installed
  • Agents can deploy to Firebase Hosting, manage Cloud Functions, and interact with Firestore

Build it

Cloud Shell

You do not need to install the tools manually in a Cloud Shell environment. Simply initialize the CLI directly.

bash
# Cloud Shell already has Gemini CLI installed
# Just authenticate and start
gemini

Cloud Workstations

For persistent development, configure a Cloud Workstation instance. Connect via SSH before launching the tools.

bash
# Cloud Workstations come with Gemini CLI pre-installed
# Create a workstation in the Google Cloud Console
# SSH in and start coding with Gemini CLI

Firebase deployment

Deploy this app to Firebase Hosting. Use the Firebase skill for context.
First, build the production bundle. Then deploy to the staging channel.
If the deploy succeeds, deploy to production.

What goes wrong

MistakeHow you notice itThe fix
Firebase CLI not authenticatedDeploy fails with auth errorRun firebase login first. The agent can guide you but needs your credentials
Cloud Shell session times outAgent stops mid-taskCloud Shell sessions timeout after 1 hour of inactivity. Use Cloud Workstations for longer sessions

Next: Enterprise Deployment