# Install megacmd with Homebrew, apk, Nix, scoop

Command-line client for mega.co.nz storage service. Version 0.016 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install megacmd
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add megacmd
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:megacmd
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/megacmd>
- **Version:** 0.016
- **Source summary:** Command-line client for mega.co.nz storage service
- **Homepage:** <https://github.com/t3rm1n4l/megacmd>
- **Repository:** <https://github.com/t3rm1n4l/megacmd>
- **Upstream docs:** <https://github.com/t3rm1n4l/megacmd>
- **License:** MIT
- **Source archive:** <https://github.com/t3rm1n4l/megacmd/archive/refs/tags/0.016.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- megacmd (cli)
- megacmd (alias)

## Build dependencies

- go

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.016
- Local data: ok
- Upstream repository: https://github.com/t3rm1n4l/megacmd
- Upstream latest detected: 0.016 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

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

- **Geiger risk:** blue / medium
- 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
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** megacmd
- **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 - 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [megatools](https://www.automicvault.com/pkg/brew/megatools/) - Shares av.db curated category or tags: cli, cloud-storage, file-transfer, mega, productivity.
- [gdrive](https://www.automicvault.com/pkg/brew/gdrive/) - Shares av.db curated category or tags: cli, cloud-storage, productivity.
- [cloudpan189-go](https://www.automicvault.com/pkg/brew/cloudpan189-go/) - Shares av.db curated category or tags: cli, cloud-storage, file-transfer, productivity.
- [cookcli](https://www.automicvault.com/pkg/brew/cookcli/) - Shares av.db curated category or tags: cli, productivity.
- [aliyunpan](https://www.automicvault.com/pkg/brew/aliyunpan/) - Shares av.db curated category or tags: cli, cloud-storage, productivity.
- [goodls](https://www.automicvault.com/pkg/brew/goodls/) - Shares av.db curated category or tags: cli, file-transfer, productivity.
- [joplin-cli](https://www.automicvault.com/pkg/brew/joplin-cli/) - Shares av.db curated category or tags: cli, productivity, sync.
- [mark](https://www.automicvault.com/pkg/brew/mark/) - Shares av.db curated category or tags: cli, productivity, sync.

## Combined YAML source

View the package source record on GitHub. [combined/megacmd.yml](https://github.com/automic-vault/db/blob/main/combined/megacmd.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- 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
