> 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/portainer-documentation/sts/user/kubernetes/applications/edit.md).

# Edit an application

From the menu select **Applications**, select the application you want to edit, then click **Edit this application**, **Edit external application**, or **Edit Git settings**.

<figure><img src="https://content.gitbook.com/content/mv26SNKCYAMuOXsw4yjn/blobs/y8U2xx9GjwjPmRRwNYKs/edit-application.gif" alt=""><figcaption></figcaption></figure>

Your editing options will depend on how the application was deployed initially.

{% hint style="info" %}
Regardless of the deployment method, you can [edit an application's YAML directly](https://docs.portainer.io/portainer-documentation/sts/user/kubernetes/applications/inspect.md#yaml-tab) through the YAML tab.
{% endhint %}

## Applications deployed from Git

If the application was [deployed from a Git repository](https://docs.portainer.io/portainer-documentation/sts/user/kubernetes/applications/manifest.md#repository) you can edit any [Git settings](https://docs.portainer.io/portainer-documentation/sts/user/kubernetes/applications/manifest/create.md#repository) that you set on the application deployment.

{% hint style="info" %}
If this application is deployed by a [GitOps workflow](https://docs.portainer.io/portainer-documentation/sts/user/app-delivery/workflows.md), it also shows a **Managed by Workflow** card, and its **Remove** action is not available - see [Workflow-managed resources](https://docs.portainer.io/portainer-documentation/sts/user/app-delivery/workflows/manage-a-workflow.md).
{% endhint %}

<figure><img src="https://content.gitbook.com/content/mv26SNKCYAMuOXsw4yjn/blobs/5rIuV70F0E0edZw73G1e/2.41-edit-apps-deployed-from-git.png" alt=""><figcaption></figcaption></figure>

If you want to redeploy, select the **Redeploy** tickbox before saving. If you're simply updating the repository settings and don't need to redeploy, click **Save settings**.

If you need to **pull and redeploy**, this can be done from the application view.

<figure><img src="https://content.gitbook.com/content/mv26SNKCYAMuOXsw4yjn/blobs/GUpGa46XZcQCellFaXTm/2.41-application-options.png" alt=""><figcaption></figcaption></figure>

## Applications deployed from the Web Editor

If the application was deployed from the Web Editor, you will be given the ability to edit the manifest manually.

{% hint style="info" %}
You can search within the web editor at any time by pressing `Ctrl-F` (or `Cmd-F` on Mac).
{% endhint %}

<figure><img src="https://content.gitbook.com/content/mv26SNKCYAMuOXsw4yjn/blobs/u0jCEShJryUADDOVWI3N/2.20-kubernetes-applications-edit-webeditor.png" alt=""><figcaption></figcaption></figure>

Make the required changes then click **Update application**.

## Applications deployed from an Edge Stack

If the application was deployed from an Edge stack, selecting **Edit this application** redirects you to the [Edit Edge Stacks page](https://docs.portainer.io/portainer-documentation/sts/user/edge/stacks.md), where you can view the stack details or modify the stack.

## Applications deployed from a form

When editing an application deployed from a form, you will be able to update the configuration using the same form. Refer to [adding a new application using a form](https://docs.portainer.io/portainer-documentation/sts/user/kubernetes/applications/add.md) for details.
