> 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/start/upgrade/tobe.md).

# Switching to Portainer Business Edition

It’s easy and quick to upgrade from Portainer CE (both 1.x and 2.x branches) to Portainer Business Edition without losing your data. The following instructions apply whether you’re using a 5 node free license or you’ve purchased a license for Portainer Business Edition.

From version 2.17, you can upgrade your Portainer CE installation to Portainer BE from within Portainer itself.

{% content-ref url="/pages/Zul2S28HrwiPF908dXG7" %}
[Upgrade to Business Edition from within Portainer Community Edition](/start/upgrade/tobe/inapp.md)
{% endcontent-ref %}

If you would like to upgrade manually, you can find instructions for your environment at the following links:

{% content-ref url="/pages/-MgcpqhMHser75w3yeLp" %}
[Docker Standalone](/start/upgrade/tobe/docker.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MgcpyCysZB-wfPPen19" %}
[Docker Swarm](/start/upgrade/tobe/swarm.md)
{% endcontent-ref %}

{% content-ref url="/pages/-Mgcq3YMyRW5k1qNAUpt" %}
[Kubernetes](/start/upgrade/tobe/kubernetes.md)
{% endcontent-ref %}

For Agent-only deployments, you do not need to upgrade the Agent to Business Edition.

{% content-ref url="/pages/bw9offS4R1V52lu9C5hz" %}
[Upgrading Agent-only deployments](/start/upgrade/tobe/agent.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:

```
GET https://docs.portainer.io/start/upgrade/tobe.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.
