# 使用 Homebrew, apk, Nix, scoop 安装 megacmd

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

## 安装

```sh
sudo av install brew:megacmd
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install megacmd
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add megacmd
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#megacmd
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/megacmd
```

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

## 软件包事实

- **软件包键:** brew:megacmd
- **软件包管理器:** Homebrew
- **版本:** 0.016
- **来源摘要:** Command-line client for mega.co.nz storage service
- **主页:** <https://github.com/t3rm1n4l/megacmd>
- **仓库:** <https://github.com/t3rm1n4l/megacmd>
- **最后更新:** 2026-07-29T17:04:53+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- megacmd (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

megacmd is a Go command-line client for the Mega cloud storage service. Its README describes it as a tool for file and directory transfer between local directories and Mega, with commands for listing, uploading, downloading, deleting, moving, making directories, and syncing.

### 项目历史

The project emerged during the early Mega.co.nz era, when Mega offered a web interface but relatively few Unix-style command-line clients. The README links its design to go-mega and compares its transfer-oriented workflow to s3cmd, positioning megacmd as a familiar CLI layer over a cloud-storage API.

Maintenance later slowed. The upstream README states that the project is no longer fully maintained, with light maintenance focused mostly on the underlying go-mega library, which is also used for Mega support in rclone.

### 采用历史

megacmd remained a small but packaged utility rather than a large ecosystem project. The supplied package facts list packages in Homebrew, Nix, Scoop, and Alpine, showing that it was kept useful enough for package managers even after upstream maintenance became light.

### 使用方式

Typical usage centers on scripted file transfer to and from Mega paths such as mega:/foo/bar. The README documents put, get, list, delete, mkdir, move, and sync operations, plus parallel upload and download workers configured in ~/.megacmd.json.

Because ~/.megacmd.json stores the Mega username and password alongside transfer settings, package users should treat the file as both configuration and credential material.

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

For package maintainers, megacmd is interesting as an early third-party Mega CLI written in Go, with vendored protocol/client code and a small release history. It also illustrates the packaging problem of cloud-service CLIs whose upstream API can change while the client itself is only lightly maintained.

### 时间线

- 2013: README examples and the linked protocol blog place early megacmd usage in the first wave of Mega command-line tooling.
- 2019: GitHub lists release 0.016 as the latest release.
- Later: Upstream README notes the project is no longer fully maintained.

### Related projects

- go-mega: the Go Mega client library used underneath megacmd.
- rclone: the upstream README notes Mega work in go-mega is also used for rclone's Mega backend.
- Megatools: another independent command-line suite for Mega.nz.

### 来源

- <https://github.com/t3rm1n4l/megacmd>
- <https://github.com/t3rm1n4l/megacmd/releases>
- source_facts.package-manager-url


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool 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: ~/.megacmd.json

## Credential files

- Unix: ~/.megacmd.json
## 其他软件包管理器记录

- Nix - megacmd: normalized package name match | nixpkgs package indexes: pkgs/by-name/me/megacmd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - megacmd - 1.6.3-r0: normalized package name match | Alpine Linux edge package indexes: megacmd from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Command Line Interactive and Scriptable Application to access MEGA | https://github.com/meganz/megacmd
- apk - megacmd-bash-completion - 1.6.3-r0: normalized package name match | Alpine Linux edge package indexes: megacmd-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for megacmd | https://github.com/meganz/megacmd
- Scoop - main/megacmd: normalized package name match | Scoop official bucket manifest trees: bucket/megacmd.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

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