# Install kubie with Homebrew, apk, MacPorts, Nix, pacman, zypper

Much more powerful alternative to kubectx and kubens. Version 0.28.0 via Homebrew; verified 2026-07-04.

## Install

```sh
sudo av install brew:kubie
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install kubie
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install kubie
```

  Evidence: MacPorts ports tree: sysutils/kubie/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add kubie
```

  Evidence: Alpine Linux edge package indexes: kubie from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#kubie
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ku/kubie/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S kubie
```

  Evidence: Arch Linux sync databases: kubie from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install kubie
```

  Evidence: openSUSE Tumbleweed package metadata: kubie from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:kubie
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/kubie>
- **Version:** 0.28.0
- **Source summary:** Much more powerful alternative to kubectx and kubens
- **Homepage:** <https://sbstp.ca>
- **Repository:** <https://github.com/kubie-org/kubie>
- **Upstream docs:** <https://github.com/kubie-org/kubie#readme>
- **License:** Zlib
- **Source archive:** <https://github.com/kubie-org/kubie/archive/refs/tags/v0.28.0.tar.gz>
- **Last updated:** 2026-07-04T16:53:43+09:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- kubie (cli)
- kubie (alias)

## Build dependencies

- rust

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.28.0
- Package-manager updated: 2026-07-04
- Local data: ok
- Upstream repository: https://github.com/kubie-org/kubie
- Upstream latest detected: v0.28.0 (current)
## Project history and usage

kubie is a Rust CLI for Kubernetes context and namespace switching, positioned by its README as a more powerful alternative to kubectx, kubens, and shell prompt helpers.

### Project history

The tool grew around a specific Kubernetes operator pain point: switching contexts without letting one terminal session accidentally mutate another session's kubeconfig state. Its README emphasizes independent shells, recursive context sessions, split kubeconfig loading, `kubie exec`, and `kubie lint` rather than a large platform or daemon.

### Adoption history

kubie is distributed through Rust's crates.io ecosystem and through operating-system package managers including Homebrew, MacPorts, Nix, Arch Linux, Alpine, and others. That spread suggests adoption by CLI-heavy Kubernetes users rather than by a single vendor platform.

### How it is used

Users run `kubie ctx` and `kubie ns` to select contexts and namespaces, spawn isolated shells, execute a command across a chosen context and namespace, or lint Kubernetes config files. Its configuration lives at `~/.kube/kubie.yaml` and controls shell behavior, kubeconfig include/exclude patterns, prompt behavior, and interactive menu settings.

### Why package nerds care

kubie is interesting because it packages a small but safety-relevant workflow: preventing accidental cross-cluster context leakage. It represents the Rust CLI wave in Kubernetes tooling, where a compact binary replaces shell-function conventions common in older kubectl helper tools.

### Timeline

- 2020s: kubie is published as a Rust package and documented as an alternative to kubectx and kubens.
- 2020s: Package-manager coverage expands beyond Cargo to Homebrew, MacPorts, Nix, Arch Linux, and other distributions.
- 2026: The README continues to document session-isolated context switching, split kubeconfig loading, and `~/.kube/kubie.yaml` configuration.

### Related projects

- kubie is directly related to kubectl, Kubernetes kubeconfig workflows, kubectx, kubens, krew-style CLI extensions, and fuzzy-selector tools used in terminal Kubernetes operations.

### Sources

- <https://crates.io/crates/kubie>
- <https://formulae.brew.sh/formula/kubie>
- <https://github.com/ahmetb/kubectx>
- <https://github.com/kubie-org/kubie>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.kube/kubie.yaml
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** kubie
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Nix - kubie: normalized package name match | nixpkgs package indexes: pkgs/by-name/ku/kubie/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - kubie - 0.27.0-r0: normalized package name match | Alpine Linux edge package indexes: kubie from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A more powerful alternative to kubectx and kubens | https://github.com/sbstp/kubie
- apk - kubie-bash-completion - 0.27.0-r0: normalized package name match | Alpine Linux edge package indexes: kubie-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for kubie | https://github.com/sbstp/kubie
- apk - kubie-fish-completion - 0.27.0-r0: normalized package name match | Alpine Linux edge package indexes: kubie-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for kubie | https://github.com/sbstp/kubie
- apk - kubie-zsh-completion - 0.27.0-r0: normalized package name match | Alpine Linux edge package indexes: kubie-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for kubie | https://github.com/sbstp/kubie
- pacman - kubie - 0.28.0-1: normalized package name match | Arch Linux sync databases: kubie from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A more powerful alternative to kubectx and kubens | https://github.com/sbstp/kubie
- zypper - kubie - 0.28.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: kubie from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | A Kubernetes context switcher | https://github.com/kubie-org/kubie
- zypper - kubie-bash-completion - 0.28.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: kubie-bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Bash Completion for kubie | https://github.com/kubie-org/kubie
- zypper - kubie-fish-completion - 0.28.0-1.1: normalized package name match | openSUSE Tumbleweed package metadata: kubie-fish-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Fish Completion for kubie | https://github.com/kubie-org/kubie
- MacPorts - kubie: normalized package name match | MacPorts ports tree: sysutils/kubie/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Cloud CLI packages](https://www.automicvault.com/pkg/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [kubesess](https://www.automicvault.com/pkg/brew/kubesess/) - Shares av.db curated category or tags: cli, cloud-infrastructure, context-management, context-switching, kubernetes.
- [cdk8s](https://www.automicvault.com/pkg/brew/cdk8s/) - Shares av.db curated category or tags: cli, cloud-infrastructure, kubernetes.
- [chaoskube](https://www.automicvault.com/pkg/brew/chaoskube/) - Shares av.db curated category or tags: cli, cloud-infrastructure, kubernetes.
- [click](https://www.automicvault.com/pkg/brew/click/) - Shares av.db curated category or tags: cli, cloud-infrastructure, kubernetes.
- [cloud-provider-kind](https://www.automicvault.com/pkg/brew/cloud-provider-kind/) - Shares av.db curated category or tags: cli, cloud-infrastructure, kubernetes.
- [clusterawsadm](https://www.automicvault.com/pkg/brew/clusterawsadm/) - Shares av.db curated category or tags: cli, cloud-infrastructure, kubernetes.
- [clusterctl](https://www.automicvault.com/pkg/brew/clusterctl/) - Shares av.db curated category or tags: cli, cloud-infrastructure, kubernetes.
- [cozyhr](https://www.automicvault.com/pkg/brew/cozyhr/) - Shares av.db curated category or tags: cli, cloud-infrastructure, kubernetes.
- [glasskube](https://www.automicvault.com/pkg/brew/glasskube/) - Local package facts share a topical domain. Shared terms: cli, cloud, cloud-infrastructure, infrastructure, kubernetes.

## Combined YAML source

View the package source record on GitHub. [combined/kubie.yml](https://github.com/automic-vault/db/blob/main/combined/kubie.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
