# kubectx

> For the complete documentation index, see [llms.txt](https://docs.ringleader.dev/llms.txt).


> Fast switching between Kubernetes contexts.


Installs `kubectx`, for switching the active Kubernetes context.

```yaml
devtools:
  - name: kubectx
```

## Version behavior

| `version` | Result |
|-----------|--------|
| omitted | the distribution's `kubectx` package |
| `v0.9.5` or `0.9.5` | the official upstream release tarball for the workstation's architecture |

## Updates

Without a `version`, kubectx comes from the distribution's packages, so it moves with the
[operating system updates](https://docs.ringleader.dev/reference/tools/devtools/#operating-system-updates) the workstation applies. An upstream release you pinned
with `version` stays on it.

## Example

```yaml
devtools:
  - name: kubectl
  - name: kubectx
  - name: kubens
  - name: fzf        # enables kubectx/kubens interactive selection
```

## Notes

- The distribution's `kubectx` package ships **both** the `kubectx` and `kubens`
  binaries, so a versionless `kubectx` and a versionless
  [`kubens`](https://docs.ringleader.dev/reference/tools/devtools/kubens/) resolve to the same package
  install. That is expected; each is a separate devtool so you can request only one.
- With [`fzf`](https://docs.ringleader.dev/reference/tools/devtools/fzf/) present, running `kubectx`
  with no argument opens an interactive picker.
- A workstation that already has `kubectx` on PATH is skipped, so changing `version`
  moves only workstations that do not have it yet.
- Works on Debian, Ubuntu, and Alpine.

