# Add a new application using code

There are two ways to add a new application: [manually by using a form](/user/kubernetes/applications/add.md) or automatically by using code. This article explains how to add an application using code.

{% hint style="info" %}
Creating from code isn't just for applications - you can also deploy namespaces, ingresses, ConfigMaps, secrets, volumes and more using code.
{% endhint %}

From the menu, select **Applications** and click **Create from code**. Next, choose whether you want to deploy your application using a **Manifest** or a **Helm chart**.

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

{% content-ref url="/pages/D0nkYXy4Aw1xJ9jmsYxj" %}
[Create an application from a Manifest](/user/kubernetes/applications/manifest/create.md)
{% endcontent-ref %}

{% content-ref url="/pages/kVeR1as9gIc4qcbbhLRD" %}
[Create an application from a Helm chart](/user/kubernetes/applications/manifest/helm.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/user/kubernetes/applications/manifest.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.
