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:


✨ 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 --reload option 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