> For the complete documentation index, see [llms.txt](https://docs.portainer.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.portainer.io/sts/user/edge/stacks/add.md).

# Add a new Edge Stack

From the menu select **Edge Stacks** then click **Add stack**.

<figure><img src="/files/ZLLgorsWPuYSb6lYtsNT" alt=""><figcaption></figcaption></figure>

Give the stack a descriptive name then select one or more [Edge Groups](/sts/user/edge/groups.md).

<figure><img src="/files/2Wgao8x462F4SKbCj2xv" alt=""><figcaption></figcaption></figure>

In **Deployment type**, select the type of deployment you are performing.

{% hint style="info" %}
This may be auto-selected based on the environments in your choice of [Edge Groups](/sts/user/edge/groups.md).
{% endhint %}

<figure><img src="/files/k2aiETT5nncG7Dl58lQR" alt=""><figcaption></figcaption></figure>

Next, define how to deploy your app from one of the **Build Method** options. These options will differ based on your selected development type.

{% content-ref url="/pages/cPOyAk14OfZT5goD7Lsk" %}
[Compose deployment](/sts/user/edge/stacks/add/compose-deployment.md)
{% endcontent-ref %}

{% content-ref url="/pages/tMeGcmM3YmR9qilehWOl" %}
[Kubernetes deployment](/sts/user/edge/stacks/add/kubernetes-deployment.md)
{% endcontent-ref %}

{% content-ref url="/pages/D1R8PSAlN5kjNokb4wtu" %}
[Helm chart deployment](/sts/user/edge/stacks/add/helm-chart-deployment.md)
{% endcontent-ref %}


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.portainer.io/sts/user/edge/stacks/add.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
