# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
