# 使用 Homebrew, Nix, scoop, winget 安装 cloud-nuke

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

## 安装

```sh
sudo av install brew:cloud-nuke
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cloud-nuke
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cloud-nuke
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/cloud-nuke
```

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

- winget (92%):

```sh
winget install --id Gruntwork.cloud-nuke -e
```

  证据: Windows Package Manager source index: Gruntwork.cloud-nuke from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:cloud-nuke
- **软件包管理器:** Homebrew
- **版本:** 0.52.0
- **来源摘要:** CLI tool to nuke (delete) cloud resources
- **主页:** <https://gruntwork.io/>
- **仓库:** <https://github.com/gruntwork-io/cloud-nuke>
- **最后更新:** 2026-07-27T22:04:01+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cloud-nuke (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

cloud-nuke is Gruntwork's destructive cleanup CLI for deleting cloud resources, mainly used around test accounts, ephemeral infrastructure, and default AWS resource cleanup. Its history is source-backed enough to treat it as a real package-manager tool rather than just a GitHub utility.

### 项目历史

The gruntwork-io/cloud-nuke repository was created in 2017 and is maintained by Gruntwork. The README frames the tool as a way to remove leftover resources, clean test accounts, and delete defaults such as default VPCs and permissive security group rules.

The tool evolved from AWS-focused cleanup into a CLI with inspect, dry-run, filtering, config-file, and GCP commands. The README also documents telemetry added as of v0.29.0, showing a maintained packaged CLI rather than a one-off script.

### 采用历史

Official installation docs point users to GitHub release binaries and explicitly list Homebrew for macOS and Linux plus winget for Windows. The input package-manager facts also record Nix, Scoop, and winget identifiers, so adoption is package-manager centric even though upstream cautions that package-manager builds may lag releases.

The CLI is significant in infrastructure shops because it turns account cleanup into a repeatable command with filters, dry-run, region selection, resource-type selection, and config-driven targeting.

### 使用方式

Common use is `cloud-nuke aws` for deletion, `cloud-nuke inspect-aws` for inspection, `cloud-nuke defaults-aws` for default VPC and security group cleanup, and `cloud-nuke gcp` for GCP deletion. The official docs emphasize dry-run and filtering because the default delete path is intentionally dangerous.

Credentials come from standard AWS CLI credential mechanisms for AWS usage, and the tool accepts command flags plus an optional user-supplied config file path for granular filtering.

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

cloud-nuke is a good example of a high-blast-radius CLI where package freshness, binary provenance, and default behavior matter. Upstream warns users to compare package-manager versions with GitHub releases.

For Homebrew and cross-platform package indexes, it is notable because it packages operational cloud deletion behavior as a one-command executable rather than a library.

### 时间线

- 2017: gruntwork-io/cloud-nuke GitHub repository metadata was created.
- v0.29.0: Upstream README records the addition of telemetry.
- Current docs: Official install instructions list release binaries, Homebrew, and winget.

### Related projects

- Gruntwork's broader infrastructure tooling ecosystem is the upstream context for cloud-nuke.
- AWS CLI credential files and GCP project credentials are operational dependencies for the supported cloud providers.
- Cloud clean-up and account janitor tools occupy the same niche, but cloud-nuke is the package in this batch with explicit package-manager distribution.

### 来源

- <https://github.com/gruntwork-io/cloud-nuke#readme>
- <https://github.com/gruntwork-io/cloud-nuke/blob/master/docs/cli-usage.md>
- <https://github.com/gruntwork-io/cloud-nuke/blob/master/docs/configuration.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.


## Credential files

- Unix: ~/.aws/credentials, ~/.aws/config
- Windows: %UserProfile%\.aws\credentials, %UserProfile%\.aws\config
## 其他软件包管理器记录

- Nix - cloud-nuke: normalized package name match | nixpkgs package indexes: pkgs/by-name/cl/cloud-nuke/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Scoop - main/cloud-nuke: normalized package name match | Scoop official bucket manifest trees: bucket/cloud-nuke.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Gruntwork.cloud-nuke: normalized package name match | Windows Package Manager source index: Gruntwork.cloud-nuke from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/cloud-nuke.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cloud-nuke.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
