Deploy from AI code generation tool
To deploy your project from an AI code generation tool, follow these steps and best practices.
Before you begin
Section titled “Before you begin”- Have your AI-generated code ready to deploy
- Recommended: Create a Netlify account (Note: You can also deploy and then claim your deployment later in certain cases)
Choose your deployment method
Section titled “Choose your deployment method”You can deploy to Netlify from any AI code generation tool by either using the Drag and Drop publisher or by sharing Netlify context with your AI tool.
Deployment method | Description | Optimized for |
---|---|---|
Drag and drop | Download your code files into a project folder, then drag and drop that folder into the Netlify Drop publisher. | Deploying from a local folder on your computer |
Share Netlify context | Share Netlify context with your AI tool and then prompt your tool to deploy with Netlify or use the Netlify CLI directly. | Deploying from an AI code generation tool or the terminal |
Method 1: Drag and drop
Section titled “Method 1: Drag and drop”- If you haven’t already, create a Netlify account and stay signed into your Netlify team.
- Download your code files from your AI code generation tool. You can ask your AI tool how to do this, or if that doesn’t help, look up their documentation.
- Create a project folder for your code files if needed and move your code files into that folder.
- Drag and drop that folder into the Netlify Drop.
Next time you want to deploy, you can drag and drop the same folder into the Netlify Drop Publisher to start a new manual deployment.
Have more questions? Check out the Drag and drop docs.
Method 2: Share Netlify context
Section titled “Method 2: Share Netlify context”-
Share Netlify deployment context with your AI tool. We recommend sharing both if they are both supported.
- Share Netlify’s
llms.txt
URL at https://docs.netlify.com/llms.txt - Install the Netlify MCP Server
- Share Netlify’s
-
Once you’ve shared Netlify context, prompt your AI tool to deploy to Netlify. You can also use the Netlify CLI commands directly.
Example deploy prompt:
Deploy this project to Netlify. Ask me questions if you need more details.To help reduce complexity, explain as if I'm new to web development butstill use the technical terms I'd need to understand for debugging,troubleshooting, and looking up more information.
Have more questions? Check out the Build with AI docs.
Next steps
Section titled “Next steps”Need help refining your project? See our Build with AI and Prototyping best practices guides.
Did you find this doc useful?
Your feedback helps us improve our docs.