megatools - Mega.nz command line tools
megadf [--free|--total|--used] [--mb|--gb|-h]
megals [-e] [-h] [--header] [-l] [-R] [-n] [<remotepaths>...]
megaput [--no-progress] [--path <remotepath>] <paths>...
megaget [--no-progress] [--path <path>] <remotepaths>...
megaget --path - <remotefile>
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 http://mega.nz.
Megatools can be downloaded at http://megatools.megous.com
Register and verify a new mega account
Show your cloud storage space
List all remote files
Create remote directory
Remove remote file or directory
Upload individual files
Download individual files
Download file from a "public" Mega
link (doesn’t require login)
Upload or download a directory tree
(5) for information about mega configuration file.
Each of the individual tools have help that can be accessed using --help
If you modify cloud filesystem from the Mega.nz 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).
Mega.nz 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.
: By the nature of Mega.nz 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
You need to be aware of several special folders:
Writable directory representing the root of
Trash directory where Mega.nz web client moves
deleted files. This directory is not used by megatools when removing
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.
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.
Part of the megatools
Report bugs at https://github.com/megous/megatools or firstname.lastname@example.org.
Megatools was written by Ondrej Jirman <email@example.com>, 2013-2016.
Official website is http://megatools.megous.com.