# Install kubecfg with Homebrew, Nix

Manage complex enterprise Kubernetes environments as code. Version 0.37.0 via Homebrew; verified 2026-05-28.

## Install

```sh
sudo av install brew:kubecfg
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install kubecfg
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#kubecfg
```

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

## Package facts

- **Package key:** brew:kubecfg
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/kubecfg>
- **Version:** 0.37.0
- **Source summary:** Manage complex enterprise Kubernetes environments as code
- **Homepage:** <https://github.com/kubecfg/kubecfg>
- **Repository:** <https://github.com/kubecfg/kubecfg>
- **Upstream docs:** <https://github.com/kubecfg/kubecfg#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/kubecfg/kubecfg/archive/refs/tags/v0.37.0.tar.gz>
- **Last updated:** 2026-05-28T18:48:01Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- kubecfg (cli)
- kubecfg (alias)

## Build dependencies

- go

## 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.37.0
- Package-manager updated: 2026-05-28
- Local data: ok
- Upstream repository: https://github.com/kubecfg/kubecfg
- Upstream latest detected: v0.37.0 (current)
## Project history and usage

kubecfg is a Kubernetes configuration-management CLI built around Jsonnet. It lets teams describe Kubernetes resources as reusable code, render or diff them, and apply the resulting desired state to clusters.

### Project history

The kubecfg/kubecfg repository was created on 2021-11-17, and the first GitHub release listed by the releases API, v0.23.0, was published on 2021-12-21. The README describes kubecfg as a tool for managing Kubernetes resources as code and notes its similarity to a similarly named internal Google tool.

The project is intentionally thin around Jsonnet. Its README says kubecfg relies heavily on Jsonnet to describe Kubernetes resources and acts as a Kubernetes-specific wrapper around Jsonnet evaluation.

### Adoption history

kubecfg's adoption is concentrated in teams that want Kubernetes manifests in version control but need stronger abstraction and reuse than plain YAML. Its documentation and README emphasize reviewable configuration changes, reproducible desired state, and disaster-recovery-friendly infrastructure-as-code practices.

The Homebrew formula gives macOS and Linuxbrew users a package-manager path, while GitHub releases provide precompiled binaries for direct installation.

### How it is used

Users write Jsonnet, JSON, or YAML inputs, then use kubecfg show, diff, update, and delete against Kubernetes resources. The README quickstart demonstrates rendering YAML, applying objects, comparing local desired state with the server, updating the cluster, and deleting the demo resources.

Features such as dependency-aware sorting, extra Jsonnet builtins, and optional garbage collection make kubecfg fit repositories where Kubernetes configuration is treated as code rather than as hand-edited deployment YAML.

### Why package nerds care

kubecfg is interesting to package nerds because it represents the Jsonnet branch of Kubernetes configuration tooling. In the package ecosystem it sits beside Helm and Kustomize, but its core bet is a general-purpose data-templating language rather than chart packages or patch overlays.

Its small CLI shape also makes it a classic infrastructure-as-code package: installable by Homebrew, runnable in CI, and tied closely to the Kubernetes and Jsonnet release surfaces.

### Timeline

- 2021-11-17: GitHub repository created.
- 2021-12-21: GitHub release v0.23.0 published.
- 2021-12-22: GitHub release v0.24.0 published.
- 2026-05-28: GitHub release v0.37.0 published.

### Related projects

- Jsonnet is the data-templating language kubecfg relies on.
- Kubernetes is the target resource API.
- Helm and Kustomize solve adjacent Kubernetes configuration packaging and customization problems with different models.

### Sources

- <https://api.github.com/repos/kubecfg/kubecfg>
- <https://api.github.com/repos/kubecfg/kubecfg/releases>
- <https://formulae.brew.sh/formula/kubecfg>
- <https://github.com/kubecfg/kubecfg>
- <https://jsonnet.org/>
- <https://kubecfg.github.io/kubecfg>


## Security Notes

infrastructure mutation or orchestration signal.

- **Geiger risk:** orange / medium
- infrastructure mutation or orchestration signal

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** kubecfg
- **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 - kubecfg: normalized package name match | nixpkgs package indexes: pkgs/by-name/ku/kubecfg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/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.
- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [talm](https://www.automicvault.com/pkg/brew/talm/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration-management, infrastructure-as-code, kubernetes.
- [tanka](https://www.automicvault.com/pkg/brew/tanka/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration-management, jsonnet, kubernetes.
- [qbec](https://www.automicvault.com/pkg/brew/qbec/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration-management, jsonnet, kubernetes.
- [cdk8s](https://www.automicvault.com/pkg/brew/cdk8s/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, kubernetes.
- [helmfile](https://www.automicvault.com/pkg/brew/helmfile/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration-management, kubernetes.
- [yoke](https://www.automicvault.com/pkg/brew/yoke/) - Shares av.db curated category or tags: cli, cloud-infrastructure, infrastructure-as-code, kubernetes.
- [ansible](https://www.automicvault.com/pkg/brew/ansible/) - Shares av.db curated category or tags: cli, cloud-infrastructure, configuration-management.
- [chaoskube](https://www.automicvault.com/pkg/brew/chaoskube/) - Shares av.db curated category or tags: cli, cloud-infrastructure, kubernetes.
- [helmsman](https://www.automicvault.com/pkg/brew/helmsman/) - Local package facts share a topical domain. Shared terms: as, cli, cloud, cloud-infrastructure, code.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- 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
