CMD

Access MEGA services with commands

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

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
Fedora 38
Download the package and, in a terminal, install it with:

sudo dnf install /path/to/downloaded/package.rpm

Ubuntu 23.04
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

Fedora 37
Download the package and, in a terminal, install it with:

sudo dnf install /path/to/downloaded/package.rpm

Ubuntu 22.10
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

Fedora 36
Download the package and, in a terminal, install it with:

sudo dnf install /path/to/downloaded/package.rpm

Ubuntu 22.04
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

Fedora 35
Download the package and, in a terminal, install it with:

sudo dnf install /path/to/downloaded/package.rpm

Ubuntu 21.10
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

Fedora 34
Download the package and, in a terminal, install it with:

sudo dnf install /path/to/downloaded/package.rpm

Ubuntu 21.04
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

Debian 11
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

Fedora 33
Download the package and, in a terminal, install it with:

sudo dnf install /path/to/downloaded/package.rpm

OpenSUSE Leap 15.4
Download the package and, in a terminal, install it with:

sudo zypper in /path/to/downloaded/package.rpm

Ubuntu 20.10
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

Debian 10
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

Fedora 32
Download the package and, in a terminal, install it with:

sudo dnf install /path/to/downloaded/package.rpm

Mint 21
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

OpenSUSE Leap 15.3
Download the package and, in a terminal, install it with:

sudo zypper in /path/to/downloaded/package.rpm

Raspbian 11 (Bullseye)
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

Ubuntu 20.04
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

CentOS 8
Download the package and, in a terminal, install it with:

sudo dnf install /path/to/downloaded/package.rpm

Debian 9
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

Fedora 31
Download the package and, in a terminal, install it with:

sudo dnf install /path/to/downloaded/package.rpm

Mint 20
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

OpenSUSE Leap 15
Download the package and, in a terminal, install it with:

sudo zypper in /path/to/downloaded/package.rpm

Raspbian 10 (Buster)
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

Red Hat 8
Download the package and, in a terminal, install it with:

sudo dnf install /path/to/downloaded/package.rpm

Ubuntu 19.10
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

CentOS 7
Download the package and, in a terminal, install it with:

sudo yum localinstall /path/to/downloaded/package.rpm

Debian Testing
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

Fedora 30
Download the package and, in a terminal, install it with:

sudo dnf install /path/to/downloaded/package.rpm

Mint 19
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

OpenSUSE Tumbleweed
Download the package and, in a terminal, install it with:

sudo zypper in /path/to/downloaded/package.rpm

Raspbian 9 (Stretch)
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

Red Hat 7
Download the package and, in a terminal, install it with:

sudo yum localinstall /path/to/downloaded/package.rpm

Ubuntu 18.04
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

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 the package and, in a terminal, install it with:

sudo pacman -U /path/to/downloaded/package.pkg.tar.zst

Elementary OS Juno
Download the package and, in a terminal, install it with:

sudo apt install /path/to/downloaded/package.deb

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

How to build and use MEGA CMD

Visit our GitHub repository for full 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