# MEGAcmd

A macOS command-line tool for accessing and managing MEGA services interactively or from scripts.

> This is the Markdown version of the MEGAcmd page on OpenNavo, with the same facts as the web page: <https://opennavo.com/apps/megacmd-app>

- **Latest version**: `2.7.1`
- **Developer**: Mega Limited
- **Homepage**: <https://mega.nz/cmd>
- **Categories**: [Files and Storage](https://opennavo.com/categories/files-storage)
- **Install**: `brew install --cask megacmd-app`
- **30-day installs**: 253
- **Homebrew**: Available; updated by Homebrew
- **Former tokens**: megacmd
- **Download URL**: <https://mega.nz/MEGAcmdSetup.dmg>
- **Commands**: 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

## Caveats

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

## Installation and removal contents

```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"
  }
]
```

## About

MEGAcmd provides command-line access to a MEGA account and its data. This macOS cask installs the MEGAcmd application and command-line tools for use from a shell or scripts.

- Use its interactive shell to work with a MEGA account and navigate its contents in a folder-like way.
- Run non-interactive commands from scripts or programs to automate account operations.
- Work with syncing and configure periodic backups of a local folder, retaining historical file snapshots.
- Use WebDAV or configure an FTP service to access MEGA files through those protocols.

Install with Homebrew using `brew install --cask megacmd-app`. The app should be installed in `/Applications`; if needed, use `brew install --cask --appdir=/Applications megacmd-app`. After installation, run `megacmd` to open its shell, or consult the MEGAcmd user guide for command examples.

This entry covers the macOS `megacmd-app` cask, not MEGAcmd packages for other operating systems.

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

## System requirements

- Build for macOS 27, 26, 15, 14, 13, 12, 11 · Version: 2.7.1 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/megacmd-app.rb> · Checked 2026-11-22
  - <https://mega.nz/MEGAcmdSetup.dmg>
- Build for macOS 27, 26, 15, 14, 13, 12, 11 · Version: 2.7.1 · Apple silicon · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/megacmd-app.rb> · Checked 2026-11-22
  - <https://mega.nz/MEGAcmdSetup.dmg>

## Uninstall

- `brew uninstall --cask megacmd-app`

A regular uninstall removes the app and keeps its settings and caches.

### Uninstalling also removes

- Background services (launchctl): `megacmd.mac.megaupdater` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/megacmd-app.rb> · These entries come from the Homebrew definition, checked 2026-11-22. They say what it declares, not what is on your Mac.

### Deep clean (optional)

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

`--zap` also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out `--zap`.

A regular uninstall removes the app and keeps its settings and caches.

- Files and folders: `~/.megaCmd` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/megacmd-app.rb> · These entries come from the Homebrew definition, checked 2026-11-22. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/Caches/megacmd.mac` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/megacmd-app.rb> · These entries come from the Homebrew definition, checked 2026-11-22. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/HTTPStorages/megacmd.mac` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/megacmd-app.rb> · These entries come from the Homebrew definition, checked 2026-11-22. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/LaunchAgents/megacmd.mac.megaupdater.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/megacmd-app.rb> · These entries come from the Homebrew definition, checked 2026-11-22. They say what it declares, not what is on your Mac.

## Facts and sources

- <https://opennavo.com/apps/megacmd-app>
- <https://opennavo.com/apps/megacmd-app/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/m/megacmd-app.rb> · Checked 2026-11-22
- <https://formulae.brew.sh/cask/megacmd-app>
