# 使用 Homebrew, apk, Nix, pacman, scoop, winget 安装 wgcf

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

## 安装

```sh
sudo av install brew:wgcf
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install wgcf
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add wgcf
```

  证据: Alpine Linux edge package indexes: wgcf from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#wgcf
```

  证据: nixpkgs package indexes: pkgs/by-name/wg/wgcf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S wgcf
```

  证据: Arch Linux sync databases: wgcf from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Scoop (92%):

```sh
scoop install main/wgcf
```

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

- winget (92%):

```sh
winget install --id ViRb3.wgcf -e
```

  证据: Windows Package Manager source index: ViRb3.wgcf from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:wgcf
- **软件包管理器:** Homebrew
- **版本:** 2.2.32
- **来源摘要:** Generate WireGuard profile from Cloudflare Warp account
- **主页:** <https://github.com/ViRb3/wgcf>
- **仓库:** <https://github.com/ViRb3/wgcf>
- **最后更新:** 2026-07-25T22:40:20+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- wgcf (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.2.32
## 项目历史与用法

wgcf is an unofficial cross-platform CLI for Cloudflare WARP. Its job is narrow and practical: register or update a WARP account and generate a WireGuard profile that can be imported into normal WireGuard clients.

### 项目历史

The project was created in April 2020, one year after Cloudflare announced WARP for the 1.1.1.1 app and around the time Cloudflare opened the WARP desktop beta. wgcf succeeded ViRb3's earlier `cloudflare-warp-wireguard-client`, whose README says it was deprecated in favor of wgcf as a complete rewrite in Go with more features, native cross-platform binaries, and zero dependencies.

The timing matters because Cloudflare built WARP around WireGuard, but shipped it through official 1.1.1.1 and WARP clients. wgcf filled the gap for users who wanted standard WireGuard configuration files for routers, servers, alternative clients, and unsupported platforms.

### 采用历史

wgcf became a popular unofficial utility in the WARP/WireGuard niche. Its repository has thousands of stars, regular releases, and community tutorials that use the generated `wgcf-profile.conf` as the bridge between Cloudflare WARP and generic WireGuard tooling.

### 使用方式

The README's core workflow is `wgcf register` to create an account file, then `wgcf generate` to write `wgcf-profile.conf`. Users can also attach an existing WARP+ license key, check account status, and run trace output to verify whether the resulting connection reports WARP or WARP+.

Because the project is explicitly unaffiliated with Cloudflare, its package-nerd role is best understood as compatibility glue. It exposes Cloudflare WARP account/profile details in the format expected by the broader WireGuard ecosystem.

### Related projects

- wgcf replaces the earlier `cloudflare-warp-wireguard-client` project by the same author, moving the idea from a Python script with dependencies to a Go CLI. It also depends conceptually on Cloudflare WARP and WireGuard, but is not an official Cloudflare client.

### 来源

- <https://api.github.com/repos/ViRb3/wgcf>
- <https://api.github.com/repos/ViRb3/wgcf/releases?per_page=100>
- <https://blog.cloudflare.com/1111-warp-better-vpn/>
- <https://blog.cloudflare.com/announcing-the-beta-for-warp-for-macos-and-windows/>
- <https://github.com/ViRb3/cloudflare-warp-wireguard-client>
- <https://github.com/ViRb3/wgcf>
- <https://raw.githubusercontent.com/ViRb3/wgcf/master/README.md>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## 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: wgcf-profile.conf
- Windows: wgcf-profile.conf

## Credential files

- Unix: wgcf-account.toml
- Windows: wgcf-account.toml
## 其他软件包管理器记录

- Nix - wgcf: normalized package name match | nixpkgs package indexes: pkgs/by-name/wg/wgcf/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - wgcf - 2.2.29-r7: normalized package name match | Alpine Linux edge package indexes: wgcf from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Unofficial CLI for Cloudflare Warp | https://github.com/ViRb3/wgcf
- apk - wgcf-bash-completion - 2.2.29-r7: normalized package name match | Alpine Linux edge package indexes: wgcf-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Bash completions for wgcf | https://github.com/ViRb3/wgcf
- apk - wgcf-fish-completion - 2.2.29-r7: normalized package name match | Alpine Linux edge package indexes: wgcf-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Fish completions for wgcf | https://github.com/ViRb3/wgcf
- apk - wgcf-zsh-completion - 2.2.29-r7: normalized package name match | Alpine Linux edge package indexes: wgcf-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Zsh completions for wgcf | https://github.com/ViRb3/wgcf
- pacman - wgcf - 2.2.32-1: normalized package name match | Arch Linux sync databases: wgcf from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Generate WireGuard profile from Cloudflare Warp account | https://github.com/ViRb3/wgcf
- Scoop - main/wgcf: normalized package name match | Scoop official bucket manifest trees: bucket/wgcf.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - ViRb3.wgcf: normalized package name match | Windows Package Manager source index: ViRb3.wgcf from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/wgcf.yml](https://github.com/mxcl/pkgdb/blob/main/combined/wgcf.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
