AI Prompt: Deploy to a Firebase hosting service

This prompt can help you deploy your web app to an appropriate Firebase hostingservice.

This prompt instructs the AI to analyze your code and choose the correctFirebase hosting service based on the app’s needs. No more decision-making ormisconfigured services.

You can use this prompt with an existing Firebase project; however, if you don'thave a Firebase project, the prompt will guide you through setting up everythingfor Firebase.


If you're using theFirebase extension for the Gemini CLI, just run this command:/firebase:deploy

Below, you can find important prerequisites and limitations for this prompt, as well as usage instructions for other agentive MCP-capable AI assistants.


Prerequisites and Limitations

We're working hard to improve the experience, so this list of prerequisites and imitations may change frequently. So check back often to see if morecapabilities are supported!

  • This prompt deploys anexisting codebase of aweb app.

  • This prompt is not yet optimized for:

    • Flutter apps that target web
  • For deployment to Firebase App Hosting, your Firebase Project must be on thepay-as-you-go Blaze pricing plan. You might be eligible to claim $300 ofcredits to get started.

Use the prompt

Important: Keep the following in mind when using generative AI with your app:
  • Generative AI can make mistakes. Always check its changes or output before deploying to production.
  • Frequently commit snapshots of your code, especially before making major changes to your app.
  1. If you haven't already,install the Firebase MCP server.
    Once installed your agentive MCP-capable AI assistant can access our MCPtools and prompts.

    Note that theFirebase extension for Gemini CLIautomatically installs the Firebase MCP server.

  2. Most agentive MCP-capable AI assistants provide some way to conveniently runthis prompt. For example, the Gemini CLI makes these prompts available asslash commands:

    /firebase:deploy

You can also adapt any of the Firebase pre-written prompts for your specificenvironment or requirements.

Review the prompt's content

You can review the contents of thedeploy prompt in the Firebase GitHub repo.

Thisdeploy prompt orchestrates several service-specific prompts foreach constituent task or Firebase service.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-07 UTC.