Automic VaultAutomic Vault

brew

使用 Homebrew, apk, Nix, zypper, scoop 安装 govc

查看 govc 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install govc

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add govc

Alpine Linux edge package indexes · govc · 来源: dl-cdn.alpinelinux.org

Nix已验证 · 92%
nix profile install nixpkgs#govc

nixpkgs package indexes · pkgs/by-name/go/govc/package.nix · 来源: api.github.com

openSUSE zypper已验证 · 92%
sudo zypper install govc

openSUSE Tumbleweed package metadata · govc · 来源: download.opensuse.org

Windows

Scoop已验证 · 92%
scoop install main/govc

Scoop official bucket manifest trees · bucket/govc.json · 来源: api.github.com

概览

软件包摘要

Command-line tool for VMware vSphere

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

尚未找到受保护工具覆盖

没有找到 govc 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
govccli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-26
管理器版本0.55.1
管理器更新时间2026-07-03
本地数据OK
上游当前
检测到的最新版本v0.55.1

https://github.com/vmware/govmomi

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:govc
版本0.55.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/govc
主页https://github.com/vmware/govmomi/tree/main/govc
仓库https://github.com/vmware/govmomi
上游文档https://github.com/vmware/govmomi/tree/main/govc#readme
许可证Apache-2.0
源码归档https://github.com/vmware/govmomi/archive/refs/tags/v0.55.1.tar.gz
最后更新2026-07-03T15:09:17Z
Pulseupdated
构建依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegovc
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

govc

nix profile install nixpkgs#govc
  • normalized package name match
  • 匹配方式:Govc
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/go/govc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

govc 0.53.0-r2

vSphere CLI built on top of govmomi

https://github.com/vmware/govmomi/blob/main/govc/README.md

sudo apk add govc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: govc
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Govc
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: govc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
zypper95%

govc 0.54.1-1.1

vSphere CLI built on top of govmomi

https://github.com/vmware/govmomi

sudo zypper install govc
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: govc
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Govc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: govc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
Scoop95%

main/govc

scoop install main/govc
  • normalized package name match
  • 匹配方式:Govc
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/govc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

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