1. Introduction
This lab guides you through migrating your existing workspaces to Google Antigravity, a code-first, agentic IDE. Here is a 1-minute video that covers the steps we will follow in this lab.
2. Install the Antigravity IDE
Antigravity is Google's code-first, agentic IDE. This lab uses Antigravity to perform automated project transformations.
- Navigate to antigravity.google.
- Download the installer for your operating system (macOS, Windows, or Linux).
- Run the installer and follow the on-screen instructions.
- Open Antigravity to ensure it's working correctly.
3. Install Node.js
Antigravity and the Firebase CLI rely on Node.js. Ensure you have version 20 or higher.
- Download the LTS version of Node.js from nodejs.org.
- Run the installer and accept the default settings.
- Open a terminal and run
node --versionto confirm the version is 20.x or higher.
4. Install the Firebase CLI
The Firebase CLI lets you deploy your app from the command line.
- In your terminal, run the following command to install the CLI globally:
npm install -g firebase-tools - If prompted for permissions on macOS or Linux, you may need to run:
sudo npm install -g firebase-tools - Verify the installation:
Ensure the version is 15.10.0 or higher.firebase --version
5. Export your project from Firebase Studio
- Open your workspace in Firebase Studio.
- Click the Move now button at the top of the workspace.
- Follow the on-screen instructions to zip and download their project files
- Note: If no window appears, check for pop-up blockers in your browser address bar.
- Extract the downloaded ZIP folder to a local directory.
6. Initialize your app in Antigravity
- Open the extracted folder in Antigravity.
- In the Agent pane, select the Gemini Flash model.
- Enter the following prompt:
@fbs-to-agy-export - Follow the agent's guidance and provide assistance if prompted to complete the project transformation.
7. Preview your app locally
- Navigate to the Run and Debug menu in the left sidebar.
- Click the Play button to start the local development server.
- Follow the instructions in the terminal to view your application.
8. Publish your app
- Open the Agent chat panel.
- Enter the following prompt:
Publish my app - When prompted to run
firebase deploy, select Yes. - The agent will either link to your existing App Hosting URL or walk you through a new setup.
9. Conclusion
You have successfully migrated your Firebase Studio project to Antigravity and redeployed it using agentic workflows.