AI Prompt: Deploy to a Firebase hosting service

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

This prompt instructs the AI to analyze your code and choose the correct Firebase hosting service based on the app's needs. No more decision-making or misconfigured services.

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


For supported AI coding agents, you can run this prompt using the command: /firebase:deploy

Below, you can find important prerequisites and limitations for this prompt, as well as usage instructions for supported AI coding agents.


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 more capabilities are supported!

  • This prompt deploys an existing codebase of a web 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 the pay-as-you-go Blaze pricing plan. You might be eligible to claim $300 of credits to get started.

Use the prompt

  1. If you haven't already, install the Firebase MCP server.
    Once installed your agentive MCP-capable AI assistant can access our MCP tools and prompts.

  2. Many AI coding agents provide a way to conveniently run this prompt. For example, as a slash command:

    /firebase:deploy
    

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

Review the prompt's content

You can review the contents of the deploy prompt in the Firebase GitHub repository.

This deploy prompt orchestrates several service-specific prompts for each constituent task or Firebase service.