megatools(1)
π megatools(1) π
okay bestie, sit down, hydrate, because this is the megatools manual page and it's literally the whole toolkit for talking to Mega.nz from your terminal. no cap.
β¨ NAME β¨
megatools β Mega.nz command line tools π¦
β¨ SYNOPSIS β¨
megatools df [--free|--total|--used] [--mb|--gb|-h]
megatools ls [-e] [-h] [--header] [-l] [-R] [-n] [<remotepaths>...]
megatools test [-f|-d] <remotepaths>...
megatools export <remotepaths>...
megatools put [--no-progress] [--path <remotepath>] <paths>...
megatools mkdir <remotepaths>...
megatools mkdir /Contacts/<contactemail>
megatools get [--no-progress] [--path <path>] <remotepaths>...
megatools get --path - <remotefile>
megatools copy [-n] [--no-progress] --local <path> --remote <remotepath>
megatools copy [-n] [--no-progress] --download --local <path> --remote <remotepath>
megatools rm <remotepaths>...
megatools rm /Contacts/<contactemail>
megatools dl [--no-progress] [--path <path>] <links>...
megatools dl --path - <filelink>
megatools reg [--scripted] --register --email <email> --name <realname> --password <password>
megatools reg [--scripted] --verify <state> <link>
likeβ¦ that's the whole vibe check right there. every one of those lines is a real thing you can type. π
β¨ DESCRIPTION β¨
Megatools is a lil collection of programs for accessing the Mega service straight from the command line of your desktop or your server. no browser, no clicking, no ads, just vibes. π
Megatools lets you copy individual files and entire directory trees to and from the cloud. you can also do streaming downloads β so like, previewing videos and audio files without needing to download the entire file first. it's giving main character energy. π
Megatools is robust and optimized for fast operation β as fast as Mega servers allow, fr fr. memory requirements and CPU utilization are kept at a minimum. lowkey iconic. β¨
You can register an account using a megatools-reg(1) tool, and the benefit is that you get true control of your encryption keys. π obsessed.
The Mega website lives at β¨https://mega.nzβ©. πΈ
Megatools can be downloaded at β¨https://xff.cz/megatools/β©. π«Ά
β¨ TOOLS OVERVIEW β¨
here's the squad, one by one:
megatools-reg(1)β Register and verify a new mega accountmegatools-df(1)β Show your cloud storage space usage/quotamegatools-ls(1)β List all remote filesmegatools-test(1)β Test for existence of files or foldersmegatools-export(1)β Create public links for remote filesmegatools-mkdir(1)β Create remote directorymegatools-rm(1)β Remove remote file or directorymegatools-put(1)β Upload individual filesmegatools-get(1)β Download individual filesmegatools-dl(1)β Download file from a "public" Mega link (doesn't require login)megatools-copy(1)β Upload or download a directory tree
β¨ CONFIGURATION FILES β¨
go read megarc(5) for the info about the mega configuration file. π
and psst β each of the individual tools has help you can pull up with the --help parameter. bestie, use it, it's free. π
β¨ SESSION CACHE β¨
okay so this one matters: if you modify the cloud filesystem from the Mega.nz website or from another computer, you're gonna need to refresh your session cache. π
you do that either by:
- using the
--reloadoption on any tool, or - waiting for the cache timeout to hit (the default timeout is set to 10 minutes)
β¨ REMOTE FILESYSTEM β¨
The Mega.nz filesystem is represented as a tree of nodes of various types. Nodes are identified by an 8 character node handle (eg. 7Fdi3ZjC). The structure of the filesystem is not encrypted. π§
Megatools maps that node tree structure onto traditional filesystem paths (eg. /Root/SomeFile.DAT).
NOTE: by the nature of Mega.nz storage, several files in the same directory can have the same name. to allow access to such files, 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. do not skip this part bestie:
/Rootβ Writable directory representing the root of the filesystem./Trashβ Trash directory where the Mega.nz 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 a 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.
β¨ SEE ALSO β¨
megatools(1), megarc(5), megatools-df(1), megatools-dl(1), megatools-get(1), megatools-ls(1), megatools-mkdir(1), megatools-put(1), megatools-reg(1), megatools-rm(1), megatools-copy(1).
β¨ MEGATOOLS β¨
Part of the megatools(1) suite of commands. π
β¨ BUGS β¨
so here's the tea: there is no upstream support for bugreports and feature requests. π
but you can send code patches to megatools@xff.cz β¨mailto:megatools@xff.czβ© to get them integrated into the upstream repository. patches only, bestie. π
β¨ AUTHOR β¨
Megatools was written by Ondrej Jirman < megatools@xff.cz β¨mailto:megatools@xff.czβ© >, 2013-2022. π
Official website is β¨https://xff.cz/megatools/β©. β
and that's the whole page, mwah. π this was megatools(1), dated 11 July 2025 β catch you in the group chat, bestie. π¦πβ¨
π¦ where this page comes from
- debian trixie: megatools 1.11.5-1 Β· GPL-2+with_exception
- ubuntu questing: megatools 1.11.5-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms