MEGATOOLS(7)
π MEGATOOLS π (that's the manual page, section 7, bestie)
okay so welcome to the megatools manual β it lives in section 7 of the manual, and it's basically the group chat hub for the whole squad of Mega.nz command line tools. pull up a chair. π«Ά
β¨ NAME β¨
megatools β Mega.nz command line tools. that's it, that's the vibe. π
πΈ SYNOPSIS πΈ
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>
like. look at all of them. a whole friend group. π
π¦ DESCRIPTION π¦
Megatools is a lil collection of programs that let you talk to the Mega service straight from the command line of your desktop or your server. no browser, no fuss, no drama. β¨
With Megatools you can copy individual files, but also entire directory trees, to and from the cloud. and β this is the part that's giving main character energy β you can do streaming downloads, so you can preview videos and audio files without downloading the whole entire file first. iconic behavior tbh. π¬
Megatools is robust and optimized for fast operation β as fast as Mega servers allow, which, ok, it's their speed limit not ours. Memory requirements and CPU utilization are kept at minimum. lowkey the most considerate tool in your whole $PATH. π±
You can register an account using the megareg(1) tool, and the perk is that you get true control of your encryption keys. yes bestie, YOUR keys. π
The Mega website can be found at http://mega.nz. π
Megatools can be downloaded at http://megatools.megous.com. π¦
π TOOLS OVERVIEW π
megareg(1)β Register and verify a new mega account. the origin story. π±megadf(1)β Show your cloud storage space usage/quota. your storage vibe check. πmegals(1)β List all remote files. window shopping, but make it filesystem. ποΈmegamkdir(1)β Create remote directory. build the folder bestie. ποΈmegarm(1)β Remove remote file or directory. goodbye era. πmegaput(1)β Upload individual files. yeet them into the cloud. βοΈmegaget(1)β Download individual files. bring them home. π‘megadl(1)β Download file from a "public" Mega link (doesn't require login). no account? no problem. πmegacopy(1)β Upload or download a directory tree. the whole tree. all of it. π³
π CONFIGURATION FILES π
See megarc(5) for info about the mega configuration file. that's where the settings live, iykyk. π
Each of the individual tools has help that you can access using the --help parameter. so if you're ever lost, just ask politely with --help and it'll spill. π¬
π SESSION CACHE π
okay this one matters: if you modify your cloud filesystem from the Mega.nz website or from another computer, you'll need to refresh your session cache. β¨
how? two ways, pick your fighter:
- use the
--reloadoption with any tool π - or just wait for a cache timeout β the default timeout is set to
10 minutesβ³
π REMOTE FILESYSTEM π
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 that node tree structure onto traditional filesystem paths (eg. /Root/SomeFile.DAT). cute, right? πΈ
NOTE: by the nature of Mega.nz storage, several files in the same directory can have the exact same name. π to let you actually get to all of them, the names of conflicting files get extended by appending a 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. the mothership. π/Trashβ Trash directory where the Mega.nz web client moves deleted files. This directory is not used by megatools when removing files. so don't expect yourmegarmdeletions to show up in there, bestie. ποΈ/Inboxβ Not sure. honestly? same. π€·ββοΈ/Contactsβ Directory containing subdirectories representing your contacts list. If you want to add contacts to the list, simply create a subdirectory named after the contact you want to add. adding friends by making a folder is SO unhinged and I'm obsessed. π«Ά/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. π
β SEE ALSO β
megatools(7), megarc(5), megadf(1), megadl(1), megaget(1), megals(1), megamkdir(1), megaput(1), megareg(1), megarm(1), megacopy(1). the whole squad, linked together. π
π§ MEGATOOLS π§
Part of the megatools(7) suite. yes, this page is part of itself. she's self-referential, she contains multitudes. π
π BUGS π
Report bugs at https://github.com/megous/megatools or megous@megous.com. found a gremlin? tell on it. π
π AUTHOR π
Megatools was written by Ondrej Jirman <megous@megous.com>, 2013-2016. thank you for your service king. π«‘
Official website is http://megatools.megous.com. π
and that's the whole page bestie!! this was megatools 1.10.2, dated 04/15/2020 β the megatools(7) suite, forever iconic, no cap. go forth and upload responsibly. πβ¨ππ¦πΈ
π¦ where this page comes from
- ubuntu jammy: megatools 1.10.3-1build1 Β· GPL-2+with_exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms