> For the complete documentation index, see [llms.txt](https://docs.codelessly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codelessly.com/setting-up-custom-domains/deploy-on-netlify.md).

# Deploy on Netlify

Learn how to configure & deploy your website built with Codelessly on Netlify.

This guide is about deploying and publishing your project as a website on [Netlify](https://www.netlify.com/) using a Github repository linked to your project. If you haven't done so already , checkout our guide on [Linking your project to a Github Repository](https://app.gitbook.com/o/rXXdMMDhFOAfV2g6j8A1/s/x4NeiXalJWaOaV6tsK5f/~/changes/21/custom-deployments-and-publishing/linking-with-github-repository).

> [Netlify](https://www.netlify.com/) is the modern development platform that allows you to build and deploy your websites from a Github repository. You must have an active account on [Netlify](https://www.netlify.com/) before starting this guide.

1. If you haven't done so already,  [Link your project to a Github Repository](https://app.gitbook.com/o/rXXdMMDhFOAfV2g6j8A1/s/x4NeiXalJWaOaV6tsK5f/~/changes/21/custom-deployments-and-publishing/linking-with-github-repository).
2. Open [Netlify](https://www.netlify.com/) and login.
3. Based on whether you have used [Netlify](https://netlify.com) before or this is your first project, Either go to `Sites>Add new site>Import an existing project` or `Sites>Import from Git`. \
   If you are using Netlify for the first time, you will be asked to deploy your first project. If you are in signup phase then you will be presented with **Deploy your first project** screen. Skip this step in that case.
4. Click on `Deploy with Github` option and authenticate & link with [Github](https://github.com) if it asks to.
5. Select the **owner** and **repository name** for the repository you that [Codelessly](https://codelessly.com) automatically created for you. This must match the **owner** and **repository name** you specified in **Codelessly's publish settings**.
6. Click on Deploy button and wait for it to deploy. 🎉

At this point, your deployment should be ready with a URL to access your website. Follow this guide to [use custom domain for your website on Netlify](https://docs.netlify.com/domains-https/custom-domains/#assign-a-domain-to-a-production-site).

> [Netlify](https://netlify.com) automatically builds your website when it detects updates to your linked repository. Its all automatic, you don't have to worry about it.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.codelessly.com/setting-up-custom-domains/deploy-on-netlify.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
