Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

docs: add netlify section for cli readme (#2369)

Jaya Krishna Namburube52c53bd031
diff --git a/packages/cli/README.md b/packages/cli/README.md
index 503c13c27e..210a96fcb7 100644
--- a/packages/cli/README.md
+++ b/packages/cli/README.md
@@ -106,6 +106,8 @@ If you want to build a production version of the app, you can run `npm run build
## Deployment
+### Vercel
+
Once you've built the project locally, you can use the [Vercel CLI](https://vercel.com/docs/cli) to deploy your site directly to [Vercel](https://vercel.com):
```bash
@@ -114,6 +116,28 @@ vercel deploy
Follow the instructions [here](https://vercel.com/docs/cli) to install the `vercel` CLI. We plan to add more deployment targets in future.
+### Netlify
+
+If you want to deploy to netlify, you can use [Netlify CLI](https://docs.netlify.com/cli/get-started/) to deploy your site directly to [Netlify](https://netlify.com/):
+
+```bash
+netlify deploy
+```
+
+You can configure the project to support netlify serverless/edge-functions respectively, as deployment target at the time of initially setting up your project. Please check the [initiating-a-webstudio-project](#initiating-a-webstudio-project) section.
+
+You can manually change it using the `build` command. For serverless functions:
+
+```bash
+webstudio-cli build --template netlify-functions
+```
+
+and for edge functions:
+
+```bash
+webstudio-cli build --template netlify-edge-functions
+```
+
## Important Notes
If you use `vercel build` before `vercel deploy`, make sure to clean your `app` folder in the project afterward.