MEGADL(1)

πŸ“¦ version 1.10.3, in ubuntu jammy

πŸ’– MEGADL β€” the megatools manual, but make it make sense πŸ’–

okay bestie, welcome to megadl(1) β€” it's the part of the Megatools suite that goes and gets your stuff off Mega.nz. sit down, grab a boba, we're downloading. πŸ§‹βœ¨


✨ NAME ✨

megadl β€” download exported files and directories from Mega.nz. that's it. that's the whole job. she's an icon, she's a legend, and she's about to pull your files out of the cloud. 🫢


🌸 SYNOPSIS 🌸

megadl [--no-progress] [--path <path>] <links>...
megadl --path - <filelink>

πŸ¦‹ DESCRIPTION πŸ¦‹

So basically megadl downloads exported files and folders from Mega.nz. She handles links like these little cuties:

When you're downloading individual files, they get dropped into <path>. When you're downloading folders, the contents of that folder get placed into the directory specified by <path>. no cap, that's the whole vibe.

To export files, you can use the Mega.nz web application, or megals(1)'s --export option. iykyk πŸ’…


πŸŽ€ OPTIONS πŸŽ€

  • *--path *<path> ** β€” Local directory to download to. Defaults to the current working directory.

If <path> is -, the remote file will be streamed to stdout. yes bestie, straight to your terminal, no file, no trace, main character behaviour. πŸ’…

  • --no-progress β€” Disable download progress reporting. This is implied when streaming (obviously, you can't have a progress bar fighting with your actual file content πŸ™ˆ).
  • --print-names β€” Print names/paths of successfully downloaded files (one per line). a little receipt of your wins. 🧾✨
  • --choose-files β€” Print all files in a shared folder and choose which files or subfolders to download. When choosing a subfolder, the entire subfolder will be downloaded. you're the curator, bestie, you pick. πŸŽ€
  • --disable-resume β€” Don't resume downloads from a partially downloaded file. Default is to resume. (so if you don't pass this, she picks up right where she left off β€” that's the default, don't fight it.)
  • *--limit-speed *<speed> ** β€” Set maximum allowed upload and download speed in KiB/s. This option overrides config file settings. 0 means no limit. When using ParallelTransfers > 1, the upload speed limit is applied to each transfer individually. ⚑
  • *--proxy *<proxy> ** β€” Use a proxy server to connect to mega.nz. This option overrides config file settings. More information can be found in the libcurl documentation at https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html. Some acceptable values are:
    • none : Disable proxy if it was enabled in the config file.
    • socks5://localhost:9050 : Local SOCKSv5 proxy server
    • socks5h://localhost:9050 : Local SOCKSv5 proxy server with DNS handled by the proxy
  • *--config *<path> ** β€” Load configuration from a file.
  • --ignore-config-file β€” Disable loading .megarc. not today, config file. 🚫
  • *--debug *[<options>] ** β€” Enable debugging of various aspects of the megatools operation. You may enable multiple debugging options separated by commas. (eg. --debug api,fs)

Available options are:

  • http: Dump HTTP request/response details (can be used to debug connection/proxy issues)
  • api: Dump Mega.nz API calls
  • fs: Dump Mega.nz filesystem (may require --reload to actually print something)
  • cache: Dump cache contents
  • tman: Dump transfer manager events
  • --version β€” Show version information. slay, she knows who she is. πŸ‘‘
  • <links> β€” File and folder links to download from.
  • <filelink> β€” Link to exported file to stream.

🌈 EXAMPLES 🌈

  • Download exported file:
$ megadl 'https://mega.nz/#!7YVWhCzZ!bauBlAkKKvv8hIm-8-qFmGOYS289ToQWN7rGFPzXB_w'
  • Download exported folder:
$ megadl 'https://mega.nz/#F!HIlFDajT!HLiVvQQkSe1d0ogxZuaOJg'

🧚 REMOTE FILESYSTEM 🧚

Mega.nz's 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 the node tree structure to traditional filesystem paths (eg. /Root/SomeFile.DAT).

NOTE: By the nature of Mega.nz storage, several files in a directory can have the same name. To allow access to such files, the names of conflicting files are 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 queen bee of the tree. πŸ‘‘

πŸ—‘οΈ /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 go looking for your deleted stuff in there via megatools, okay? πŸ’€)

πŸ“₯ /Inbox

Not sure. genuinely, that's what the manual says. not sure. iconic honesty, fr fr. 😭

πŸ‘― /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. just. make a folder. that's the whole API. πŸ’…

πŸ“§ /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).


πŸ’œ MEGATOOLS πŸ’œ

Part of the megatools(7) suite. one big happy family. 🫢


πŸ› BUGS πŸ›

Report bugs at https://github.com/megous/megatools or megous@megous.com. found a bug? tell the devs, don't suffer in silence bestie. πŸ“’


πŸ‘‘ AUTHOR πŸ‘‘

Megatools was written by Ondrej Jirman <megous@megous.com>, 2013-2016.

Official website is http://megatools.megous.com.


and that's the whole page, bestie πŸ’– this little guide is from the megatools 1.10.2 era, dated 04/15/2020 β€” so if you're reading this way in the future, hey, hi, hope your downloads are fast and your paths are valid. go get those files. periodt. βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from