# MEGAcmd

用于在 macOS 上通过交互式命令或脚本访问和管理 MEGA 服务的命令行工具。

> 这是 OpenNavo 上 MEGAcmd 页面的 Markdown 版本，内容与网页相同： <https://opennavo.com/zh/apps/megacmd-app>

- **最新版本**: `2.7.1`
- **开发者**: Mega Limited
- **主页**: <https://mega.nz/cmd>
- **分类**: [文件与存储](https://opennavo.com/zh/categories/files-storage)
- **安装**: `brew install --cask megacmd-app`
- **近 30 天安装**: 278
- **Homebrew**: 可以安装，由 Homebrew 更新
- **曾用 token**: megacmd
- **下载地址**: <https://mega.nz/MEGAcmdSetup.dmg>
- **附带命令**: mega-attr, mega-backup, mega-cancel, mega-cat, mega-cd, mega-cmd, mega-confirm, mega-confirmcancel, mega-cp, mega-debug, mega-deleteversions, mega-df, mega-du, mega-errorcode, mega-exclude, mega-exec, mega-export, mega-find, mega-ftp, mega-get, mega-graphics, mega-help, mega-https, mega-import, mega-invite, mega-ipc, mega-killsession, mega-lcd, mega-log, mega-login, mega-logout, mega-lpwd, mega-ls, mega-mediainfo, mega-mkdir, mega-mount, mega-mv, mega-passwd, mega-permissions, mega-preview, mega-put, mega-pwd, mega-quit, mega-reload, mega-rm, mega-session, mega-showpcr, mega-signup, mega-speedlimit, mega-sync, mega-thumbnail, mega-transfers, mega-tree, mega-userattr, mega-users, mega-version, mega-webdav, mega-whoami, mega-share, megacmd

## 注意事项

megacmd-app only works if called from /Applications, so you may need to install it with: brew install --cask --appdir=/Applications megacmd-app

## 安装与卸载内容

```json
[
  {
    "declaration": {
      "uninstall": [
        {
          "launchctl": "megacmd.mac.megaupdater"
        }
      ]
    },
    "phase": "uninstall",
    "sources": [],
    "type": "uninstall"
  },
  {
    "declaration": {
      "app": [
        "MEGAcmd.app"
      ],
      "target": "/Applications/MEGAcmd.app"
    },
    "phase": "install",
    "sources": [
      "MEGAcmd.app"
    ],
    "target": "/Applications/MEGAcmd.app",
    "type": "app"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-attr"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-attr"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-attr"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-attr",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-backup"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-backup"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-backup"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-backup",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-cancel"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-cancel"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-cancel"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-cancel",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-cat"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-cat"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-cat"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-cat",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-cd"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-cd"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-cd"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-cd",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-cmd"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-cmd"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-cmd"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-cmd",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-confirm"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-confirm"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-confirm"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-confirm",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-confirmcancel"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-confirmcancel"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-confirmcancel"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-confirmcancel",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-cp"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-cp"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-cp"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-cp",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-debug"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-debug"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-debug"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-debug",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-deleteversions"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-deleteversions"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-deleteversions"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-deleteversions",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-df"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-df"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-df"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-df",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-du"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-du"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-du"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-du",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-errorcode"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-errorcode"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-errorcode"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-errorcode",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-exclude"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-exclude"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-exclude"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-exclude",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-exec"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-exec"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-exec"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-exec",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-export"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-export"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-export"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-export",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-find"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-find"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-find"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-find",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-ftp"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-ftp"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-ftp"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-ftp",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-get"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-get"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-get"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-get",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-graphics"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-graphics"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-graphics"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-graphics",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-help"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-help"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-help"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-help",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-https"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-https"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-https"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-https",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-import"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-import"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-import"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-import",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-invite"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-invite"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-invite"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-invite",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-ipc"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-ipc"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-ipc"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-ipc",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-killsession"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-killsession"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-killsession"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-killsession",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-lcd"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-lcd"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-lcd"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-lcd",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-log"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-log"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-log"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-log",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-login"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-login"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-login"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-login",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-logout"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-logout"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-logout"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-logout",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-lpwd"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-lpwd"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-lpwd"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-lpwd",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-ls"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-ls"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-ls"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-ls",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-mediainfo"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-mediainfo"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-mediainfo"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-mediainfo",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-mkdir"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-mkdir"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-mkdir"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-mkdir",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-mount"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-mount"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-mount"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-mount",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-mv"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-mv"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-mv"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-mv",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-passwd"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-passwd"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-passwd"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-passwd",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-permissions"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-permissions"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-permissions"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-permissions",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-preview"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-preview"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-preview"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-preview",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-put"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-put"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-put"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-put",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-pwd"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-pwd"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-pwd"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-pwd",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-quit"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-quit"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-quit"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-quit",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-reload"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-reload"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-reload"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-reload",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-rm"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-rm"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-rm"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-rm",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-session"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-session"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-session"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-session",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-showpcr"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-showpcr"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-showpcr"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-showpcr",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-signup"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-signup"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-signup"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-signup",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-speedlimit"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-speedlimit"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-speedlimit"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-speedlimit",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-sync"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-sync"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-sync"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-sync",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-thumbnail"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-thumbnail"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-thumbnail"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-thumbnail",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-transfers"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-transfers"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-transfers"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-transfers",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-tree"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-tree"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-tree"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-tree",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-userattr"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-userattr"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-userattr"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-userattr",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-users"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-users"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-users"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-users",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-version"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-version"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-version"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-version",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-webdav"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-webdav"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-webdav"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-webdav",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-whoami"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-whoami"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-whoami"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-whoami",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-share"
      ],
      "target": "$HOMEBREW_PREFIX/bin/mega-share"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/mega-share"
    ],
    "target": "$HOMEBREW_PREFIX/bin/mega-share",
    "type": "binary"
  },
  {
    "declaration": {
      "binary": [
        "$APPDIR/MEGAcmd.app/Contents/MacOS/MEGAcmdShell",
        {
          "target": "megacmd"
        }
      ],
      "target": "$HOMEBREW_PREFIX/bin/megacmd"
    },
    "phase": "install",
    "sources": [
      "$APPDIR/MEGAcmd.app/Contents/MacOS/MEGAcmdShell"
    ],
    "target": "$HOMEBREW_PREFIX/bin/megacmd",
    "type": "binary"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": [
            "~/.megaCmd",
            "~/Library/Caches/megacmd.mac",
            "~/Library/HTTPStorages/megacmd.mac",
            "~/Library/LaunchAgents/megacmd.mac.megaupdater.plist"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 介绍

MEGAcmd 提供通过命令行访问 MEGA 账户及其数据的方式。此 macOS cask 会安装 MEGAcmd 应用及命令行工具，可在 shell 或脚本中使用。

- 使用交互式 shell 操作 MEGA 账户，并以类似文件夹的方式浏览其内容。
- 在脚本或程序中运行非交互式命令，以自动执行账户操作。
- 使用同步功能，并为本地文件夹设置定期备份，保留历史文件快照。
- 使用 WebDAV，或配置 FTP 服务，通过这些协议访问 MEGA 文件。

使用 Homebrew 安装：`brew install --cask megacmd-app`。应用应安装在 `/Applications`；如有需要，可运行 `brew install --cask --appdir=/Applications megacmd-app` 将其安装到该位置。安装后运行 `megacmd` 打开其 shell，或查阅 MEGAcmd 用户指南了解命令示例。

此条目介绍的是 macOS 的 `megacmd-app` cask，不包括其他操作系统的 MEGAcmd 软件包。

来源：[MEGAcmd](https://mega.nz/cmd) · [Homebrew cask](https://raw.githubusercontent.com/Homebrew/homebrew-cask/HEAD/Casks/m/megacmd-app.rb)

## 系统要求

- 适用于 macOS 27, 26, 15, 14, 13, 12, 11 的版本 · 应用版本: 2.7.1 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/megacmd-app.rb> · 核查于 2026-12-02
  - <https://mega.nz/MEGAcmdSetup.dmg>
- 适用于 macOS 27, 26, 15, 14, 13, 12, 11 的版本 · 应用版本: 2.7.1 · Apple 芯片 · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/megacmd-app.rb> · 核查于 2026-12-02
  - <https://mega.nz/MEGAcmdSetup.dmg>

## 价格

- 免费，含应用内购买 — 官网: <https://mega.io/pricing> · <https://mega.io/pricing> · 核查于 2026-10-25

## 卸载

- `brew uninstall --cask megacmd-app`

普通卸载会删除应用本身，设置和缓存会保留。

### 卸载时还会处理

- 后台服务（launchctl）: `megacmd.mac.megaupdater` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/megacmd-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-02；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

### 深度清理（可选）

- `brew uninstall --zap --cask megacmd-app`

`--zap` 还会删除 Homebrew 定义里列出的设置、缓存等文件，其中可能有其他应用共用的数据，删除后无法恢复；它也不保证没有任何残留。请先备份需要保留的数据；如要保留设置和缓存，请不要加 `--zap`。

普通卸载会删除应用本身，设置和缓存会保留。

- 文件和文件夹: `~/.megaCmd` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/megacmd-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-02；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/Caches/megacmd.mac` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/megacmd-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-02；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/HTTPStorages/megacmd.mac` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/megacmd-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-02；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。
- 文件和文件夹: `~/Library/LaunchAgents/megacmd.mac.megaupdater.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/megacmd-app.rb> · 以上条目来自 Homebrew 定义，核查于 2026-12-02；它们只说明定义声明会删除什么，不代表你的 Mac 上都有。

## 资料与来源

- <https://opennavo.com/zh/apps/megacmd-app>
- <https://opennavo.com/zh/apps/megacmd-app/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/megacmd-app.rb> · 核查于 2026-12-02
- <https://formulae.brew.sh/cask/megacmd-app>
- <https://mega.io/pricing> · 核查于 2026-10-25
