MEGATOOLS(7) - Linux man page online | Overview, conventions, and miscellany command line tools.

MEGATOOLS(7) Megatools Manual MEGATOOLS(7)


megatools - command line tools


megadf [--free|--total|--used] [--mb|--gb|-h] megals [-e] [-h] [--header] [-l] [-R] [-n] [<remotepaths>...] megaput [--no-progress] [--path <remotepath>] <paths>... megamkdir <remotepaths>... megamkdir /Contacts/<contactemail> megaget [--no-progress] [--path <path>] <remotepaths>... megaget --path - <remotefile> megarm <remotepaths>... megarm /Contacts/<contactemail> megadl [--no-progress] [--path <path>] <links>... megadl --path - <filelink> megareg [--scripted] --register --email <email> --name <realname> --password <password> megareg [--scripted] --verify <state> <link>


Megatools is a collection of programs for accessing Mega service from a command line of your desktop or server. Megatools allow you to copy individual files as well as entire directory trees to and from the cloud. You can also perform streaming downloads for example to preview videos and audio files, without needing to download the entire file. Megatools are robust and optimized for fast operation - as fast as Mega servers allow. Memory requirements and CPU utilization are kept at minimum. You can register account using a megareg(1) tool, with the benefit of having true control of your encryption keys. Mega website can be found at Megatools can be downloaded at


megareg(1) Register and verify a new mega account megadf(1) Show your cloud storage space usage/quota megals(1) List all remote files megamkdir(1) Create remote directory megarm(1) Remove remote file or directory megaput(1) Upload individual files megaget(1) Download individual files megadl(1) Download file from a "public" Mega link (doesn’t require login) megacopy(1) Upload or download a directory tree


See megarc(5) for information about mega configuration file. Each of the individual tools have help that can be accessed using --help parameter.


If you modify cloud filesystem from the website or from another computer, you’ll need to refresh your session cache. This can be done by using the --reload option to any tool, or by waiting for a cache timeout (default timeout is set to 10 minutes).

REMOTE FILESYSTEM filesystem is represented as a tree of nodes of various types. Nodes are identified by a 8 character node handles (eg. 7Fdi3ZjC). Structure of the filesystem is not encrypted. Megatools maps node tree structure to a traditional filesystem paths (eg. /Root/SomeFile.DAT). NOTE: By the nature of storage, several files in the directory can have the same name. To allow access to such files, the names of conflicting files are extended by appending dot and their node handle like this: /Root/conflictingfile /Root/conflictingfile.7Fdi3ZjC /Root/conflictingfile.mEU23aSD You need to be aware of several special folders: /Root Writable directory representing the root of the filesystem. /Trash Trash directory where web client moves deleted files. This directory is not used by megatools when removing files. /Inbox Not sure. /Contacts Directory containing subdirectories representing your contacts list. If you want to add contacts to the list, simply create subdirectory named after the contact you want to add. /Contacts/<email> Directories representing individual contacts in your contacts list. These directories contain folders that others shared with you. All shared files are read-only, at the moment.


megatools(7), megarc(5), megadf(1), megadl(1), megaget(1), megals(1), megamkdir(1), megaput(1), megareg(1), megarm(1), megacopy(1).


Part of the megatools(7) suite.


Report bugs at or


Megatools was written by Ondrej Jirman <>, 2013-2016. Official website is
megatools 1.9.98 11/03/2016 MEGATOOLS(7)
This manual Reference Other manuals
megatools(7) referred by megacopy(1) | megadf(1) | megadl(1) | megaget(1) | megals(1) | megamkdir(1) | megaput(1) | megarc(5) | megareg(1) | megarm(1)
refer to megacopy(1) | megadf(1) | megadl(1) | megaget(1) | megals(1) | megamkdir(1) | megaput(1) | megarc(5) | megareg(1) | megarm(1)
Download raw manual
Index Megatools Manual (+11) megatools 1.9.98 (+11) № 7 (+1560)
Go top