# Install govc with Homebrew, apk, Nix, scoop, zypper

Command-line tool for VMware vSphere. Version 0.55.1 via Homebrew; verified 2026-07-03.

## Install

```sh
sudo av install brew:govc
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install govc
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add govc
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#govc
```

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

- zypper (92%):

```sh
sudo zypper install govc
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/govc
```

  Evidence: Scoop official bucket manifest trees: bucket/govc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:govc
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/govc>
- **Version:** 0.55.1
- **Source summary:** Command-line tool for VMware vSphere
- **Homepage:** <https://github.com/vmware/govmomi/tree/main/govc>
- **Repository:** <https://github.com/vmware/govmomi>
- **Upstream docs:** <https://github.com/vmware/govmomi/tree/main/govc#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/vmware/govmomi/archive/refs/tags/v0.55.1.tar.gz>
- **Last updated:** 2026-07-03T15:09:17Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- govc (cli)
- govc (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.55.1
- Package-manager updated: 2026-07-03
- Local data: ok
- Upstream repository: https://github.com/vmware/govmomi
- Upstream latest detected: v0.55.1 (current)
## Project history and usage

govc is the vSphere command-line interface shipped inside the govmomi project. It gives VMware vSphere users a scriptable Go-based alternative to GUI operations, while also serving as a working example and test harness for the govmomi API bindings.

### Project history

govmomi started in 2014 as a Go library for interacting with VMware vSphere APIs for ESXi and vCenter Server. Its README presents govc as one of the repository's core deliverables alongside the vSphere API client, vcsim mock framework, and toolbox guest tools framework. govc's own README expands the role: it is built on govmomi, designed as a user-friendly alternative to the GUI, well suited for automation, and useful as a concrete example of govmomi API usage.

The changelog records govc's v0.1.0 release on 2015-03-17 and shows that early work already included cross-compilation, version variables, functional tests, device commands, VM information, VNC controls, datastore listing, and the CLI skeleton. The v0.2.0 release later in 2015 added more govc commands and cross-compilation improvements, helping the project become practical as a downloadable operations tool rather than only a Go source checkout.

The project kept govc and the library moving together as vSphere APIs changed. Later changelog entries show govc accumulating inventory, datastore, VM, host, session, import/export, Kubernetes/vSphere, CNS volume, GPU, storage-policy, and namespace-related commands. A 2024-era refactor moved most govc command packages under a shared `cli` package, formalizing the split between the command implementation and the top-level govc entry point.

### Adoption history

govc adoption followed vSphere automation needs: administrators and platform teams could use environment variables such as GOVC_URL, GOVC_USERNAME, GOVC_PASSWORD, GOVC_DATACENTER, GOVC_DATASTORE, GOVC_NETWORK, and related defaults to script against ESXi or vCenter. The README documents released binaries, Docker images, source builds, and a minimal runner image, making the CLI easy to place in shells, CI jobs, and containerized automation.

Package-manager adoption reflects that operational niche. The input metadata lists govc in Homebrew, Alpine, Nix, Scoop, and zypper, which fits the tool's role as an infrastructure CLI that needs to appear in both developer laptops and automation images.

### How it is used

A typical govc setup supplies a vCenter or ESX endpoint through GOVC_URL or the `-u` flag, optionally separates credentials into GOVC_USERNAME and GOVC_PASSWORD, and then uses commands to inspect, create, clone, import, export, configure, or query vSphere objects. Managed entities can be addressed by absolute inventory paths, relative paths, or glob-like patterns, and many defaults can be supplied through environment variables.

The README also documents troubleshooting-oriented flags: `-verbose` writes compact request/response detail to stderr, `-trace` prints HTTP/API traffic, and `-debug` writes API call artifacts under `~/.govmomi/debug` unless GOVC_DEBUG_PATH changes the destination. That makes govc useful both as an operator CLI and as a diagnostic front-end for govmomi behavior.

### Why package nerds care

govc matters to package maintainers because it packages a large proprietary-platform API surface into one scriptable binary. It is often the easiest way to automate vSphere from Unix shells without installing a heavyweight GUI or a language-specific SDK stack.

It also has unusually high example value: because govc is built directly on govmomi and used as a test harness, its commands double as runnable API examples. People packaging or auditing vSphere automation stacks can use govc behavior to understand the underlying Go library and vice versa.

### Timeline

- 2014: The govmomi repository was created for Go access to VMware vSphere APIs.
- 2015: govc v0.1.0 was released, with changelog entries for cross-compilation and the initial CLI work.
- 2015: v0.2.0 added more govc commands and build/release improvements.
- 2018: govc releases included VM clone fixes, JSON/event improvements, datastore and host command growth, and session-related work.
- 2024: govc command packages were moved under the shared `cli` package, with installation guidance adjusted for submodules and released binaries.
- 2025: changelog entries show continued govc growth around GPU, CNS volume, encryption, KMS, storage policy, and import/export workflows.
- 2026: v0.53 and v0.54 changelog entries include govc command fixes and `library.import` disk options.

### Related projects

- govmomi is the Go vSphere API library that govc is built on.
- vcsim is the vSphere API mock framework shipped in the same repository and used for testing API consumers.
- pyvmomi and rbvmomi are sibling VMware SDKs named in the README as related language bindings.
- VMware/Broadcom vSphere Web Services API documentation is the upstream API surface that govmomi and govc follow.

### Sources

- <https://api.github.com/repos/vmware/govmomi>
- <https://raw.githubusercontent.com/vmware/govmomi/main/CHANGELOG.md>
- <https://raw.githubusercontent.com/vmware/govmomi/main/README.md>
- <https://raw.githubusercontent.com/vmware/govmomi/main/govc/README.md>


## Security Notes

No matching local secret-handling manifest was found for govc. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** govc
- **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 - govc: normalized package name match | nixpkgs package indexes: pkgs/by-name/go/govc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - govc - 0.53.0-r2: normalized package name match | Alpine Linux edge package indexes: govc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | vSphere CLI built on top of govmomi | https://github.com/vmware/govmomi/blob/main/govc/README.md
- zypper - govc - 0.54.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: govc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | vSphere CLI built on top of govmomi | https://github.com/vmware/govmomi
- Scoop - main/govc: normalized package name match | Scoop official bucket manifest trees: bucket/govc.json from https://api.github.com/repos/ScoopInstaller/Main/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.
- [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.
- [go](https://www.automicvault.com/pkg/brew/go/) - Build dependency declared by Homebrew.
- [libvirt](https://www.automicvault.com/pkg/brew/libvirt/) - Shares av.db curated category or tags: cli, cloud-infrastructure, virtualization.
- [macpine](https://www.automicvault.com/pkg/brew/macpine/) - Shares av.db curated category or tags: cli, cloud-infrastructure, virtualization.
- [pvetui](https://www.automicvault.com/pkg/brew/pvetui/) - Shares av.db curated category or tags: cli, cloud-infrastructure, virtualization.
- [virtctl](https://www.automicvault.com/pkg/brew/virtctl/) - Shares av.db curated category or tags: cli, cloud-infrastructure, virtualization.
- [incus](https://www.automicvault.com/pkg/brew/incus/) - Shares av.db curated category or tags: cli, cloud-infrastructure, virtualization.
- [kraftkit](https://www.automicvault.com/pkg/brew/kraftkit/) - Shares av.db curated category or tags: cli, cloud-infrastructure, virtualization.
- [actions-batch](https://www.automicvault.com/pkg/brew/actions-batch/) - Shares av.db curated category or tags: automation, cli, cloud-infrastructure.
- [ansible](https://www.automicvault.com/pkg/brew/ansible/) - Shares av.db curated category or tags: automation, cli, cloud-infrastructure.
- [aliyun-cli](https://www.automicvault.com/pkg/brew/aliyun-cli/) - Local package facts share a topical domain. Shared terms: cli, cloud, cloud-infrastructure, command-line, infrastructure.
- [aws-console](https://www.automicvault.com/pkg/brew/aws-console/) - Local package facts share a topical domain. Shared terms: cli, cloud, cloud-infrastructure, command-line, infrastructure.
- [awslogs](https://www.automicvault.com/pkg/brew/awslogs/) - Local package facts share a topical domain. Shared terms: cli, cloud, cloud-infrastructure, command-line, infrastructure.

## Combined YAML source

View the package source record on GitHub. [combined/govc.yml](https://github.com/automic-vault/db/blob/main/combined/govc.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
