> 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/dashboard/kubectl.md). Agents can also search and read this documentation through its [MCP server](https://docs.portainer.io/~gitbook/mcp).

# kubectl shell

Although the Portainer UI provides access to a lot of Kubernetes functionality, sometimes you need to drop into the console. We have provided a shell within the UI that includes `kubectl`, `helm`, `bash` (with completion and the `k` / `ks` aliases), `jq`, and `wget`. The shell is preloaded with a `kubeconfig` for the user's context, restricting access to the permissions defined in Portainer for that user.

To access the shell, select **kubectl shell** from the menu. Once the shell loads, you can run `kubectl` and `helm` commands as needed.

{% hint style="warning" %}
As of version 2.45.4 LTS / 3.1 STS, `curl` is no longer included in the kubectl shell, to reduce its exposure to CVEs. Use `wget` for simple HTTP(S) requests instead, for example `wget -qO- https://example.com`.
{% endhint %}

<figure><img src="https://content.gitbook.com/content/mv26SNKCYAMuOXsw4yjn/blobs/OYgx9vrmLHkyMpWWGm0e/2.33-kube-shell.gif" alt=""><figcaption></figcaption></figure>
