MEGA CMD

Access MEGA services with commands

MEGA CMD is a command line tool that works with your MEGA account and data. It allows you to access MEGA services via commands.

MEGA CMD gives advanced users a flexible way of automating interaction with their MEGA account.

Two different ways to run it

You can run MEGA CMD’s non-interactive commands from within your scripts or programs.

Interactive

A command line shell to interact with your MEGA account. Navigate your MEGA account as if it was a local folder.

Scriptable

Run scriptable commands from your favourite Linux or Mac shell such as bash, or you can even run its commands in a Windows command prompt – without having to use complex low-level APIs.

Unleash MEGA's full potential with a rich set of commands

Live encrypted syncing

Access and work with your data securely across different locations and devices protected by MEGA’s zero-knowledge encryption.

Configure automatic backups

MEGA CMD allows you to automatically configure periodic backups of a local folder to keep historical snapshots of your files.

Learn more
WebDAV support

Use your favourite WebDAV client to interact with your MEGA account through MEGA CMD.

Learn more
FTP solution

Configuring an FTP service will let you access your MEGA files easily from your local computer. All major platforms support access to an FTP server.

Learn more

Download the MEGA CMD app

Windows
macOS
Linux
Official packages
Ubuntu 23.10
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

Fedora 39
Download and install the package with:

wget !{packageDownloadUrl} && sudo dnf install "$PWD/!{packageFilename}"

Fedora 38
Download and install the package with:

wget !{packageDownloadUrl} && sudo dnf install "$PWD/!{packageFilename}"

Ubuntu 23.04
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

Fedora 37
Download and install the package with:

wget !{packageDownloadUrl} && sudo dnf install "$PWD/!{packageFilename}"

Ubuntu 22.10
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

Fedora 36
Download and install the package with:

wget !{packageDownloadUrl} && sudo dnf install "$PWD/!{packageFilename}"

Ubuntu 22.04
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

Fedora 35
Download and install the package with:

wget !{packageDownloadUrl} && sudo dnf install "$PWD/!{packageFilename}"

Ubuntu 21.10
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

Fedora 34
Download and install the package with:

wget !{packageDownloadUrl} && sudo dnf install "$PWD/!{packageFilename}"

Ubuntu 21.04
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

Debian 12
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

Debian 11
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

Fedora 33
Download and install the package with:

wget !{packageDownloadUrl} && sudo dnf install "$PWD/!{packageFilename}"

OpenSUSE Leap 15.4
Download and install the package with:

wget !{packageDownloadUrl} && sudo zypper in "$PWD/!{packageFilename}"

Ubuntu 20.10
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

Debian 10
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

Fedora 32
Download and install the package with:

wget !{packageDownloadUrl} && sudo dnf install "$PWD/!{packageFilename}"

Mint 21
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

OpenSUSE Leap 15.3
Download and install the package with:

wget !{packageDownloadUrl} && sudo zypper in "$PWD/!{packageFilename}"

Raspbian 11 (Bullseye)
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

Ubuntu 20.04
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

CentOS 8
Download and install the package with:

wget !{packageDownloadUrl} && sudo dnf install "$PWD/!{packageFilename}"

Debian 9
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

Fedora 31
Download and install the package with:

wget !{packageDownloadUrl} && sudo dnf install "$PWD/!{packageFilename}"

Mint 20
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

OpenSUSE Leap 15
Download and install the package with:

wget !{packageDownloadUrl} && sudo zypper in "$PWD/!{packageFilename}"

Raspbian 10 (Buster)
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

Red Hat 8
Download and install the package with:

wget !{packageDownloadUrl} && sudo dnf install "$PWD/!{packageFilename}"

Ubuntu 19.10
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

CentOS 7
Download and install the package with:

wget !{packageDownloadUrl} && sudo yum localinstall "$PWD/!{packageFilename}"

Debian Testing
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

Fedora 30
Download and install the package with:

wget !{packageDownloadUrl} && sudo dnf install "$PWD/!{packageFilename}"

Mint 19
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

OpenSUSE Tumbleweed
Download and install the package with:

wget !{packageDownloadUrl} && sudo zypper install "$PWD/!{packageFilename}"

Raspbian 9 (Stretch)
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

Red Hat 7
Download and install the package with:

wget !{packageDownloadUrl} && sudo yum localinstall "$PWD/!{packageFilename}"

Ubuntu 18.04
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

CMD for Windows
For Windows 7 and higher, Windows Server 2008 R2 and higher
CMD for macOS
For macOS Sierra 10.12+
Arch Linux
Download and install the package with:

wget !{packageDownloadUrl} && sudo pacman -U "$PWD/!{packageFilename}"

Elementary OS Juno
Download and install the package with:

wget !{packageDownloadUrl} && sudo apt install "$PWD/!{packageFilename}"

Can’t find what you’re looking for? All downloads

How to build and use MEGA CMD

Visit our GitHub repository for details.

ReadMe

Basic information about MEGA CMD features and usage instructions for every platform and details on how to build it from our public source GitHub repository.

Learn more
User guide

Find out how to use MEGA CMD and see examples and details of how each of the commands work.

Read guide
Public source

Enables independent verification of the correctness of our cryptographic model.

See details