megatools-get(1)

πŸ’– megatools-get β€” bestie edition πŸ’–

okay so you're here for megatools get, the part of the megatools(1) suite that literally just downloads files from your Mega.nz account. no cap. that's the whole vibe. let's go 🫢


✨ SYNOPSIS ✨

megatools get [--no-progress] [--path <path>] <remotepaths>...
megatools get --path - <remotefile>

two whole moods, pick your fighter πŸ’…


🌸 DESCRIPTION 🌸

Downloads files from your Mega.nz account. she does one thing and she ate. πŸ”₯

NOTE: If you want to download entire directories, use megatools-copy(1). do not come for me when get refuses to do a copy's job, that's not her arc bestie 😭

πŸ‘‘ OPTIONS πŸ‘‘

  • --path <path> β€” where on your local machine the download lands. If this path is a directory, files are placed into the directory. If this path doesn't exist, and its parent directory does, the file will be downloaded to a specified file β€” and lowkey that only works if you specify exactly one remote path. one file, one mystery path, that's the deal. If <path> is -, remote file will be streamed to stdout. yes queen, pipe it straight out 🌈
  • --no-progress β€” disable download progress reporting. no little bars, no drama. this is implied when streaming (makes sense, the stream IS the progress, iykyk).
  • --disable-resume β€” don't resume downloads from a partially downloaded file. Default is to resume. so if you're feeling chaotic and want to start over from zero, this is your girl πŸ™ˆ
  • -u <email>, --username <email> β€” account username (email) πŸ’Œ
  • -p <password>, --password <password> β€” account password πŸ”
  • --no-ask-password β€” never ask interactively for a password. no prompts, no interruptions, she's shy fr fr.
  • --reload β€” reload filesystem cache. fresh eyes, new perspective ✨
  • --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, upload speed limit is applied to each transfer individually. so like, per-transfer, not pooled, don't @ me.
  • --proxy <proxy> β€” use proxy server to connect to mega.nz. This option overrides config file settings. More information can be found in 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
  • --netif <ifname|ip> β€” network interface or local IP address used for outgoing connections. You have to specify IP address bound to some of your local network interfaces, when specifying an IP address. πŸ‘€
  • --ip-proto <proto> β€” which IP protocol to prefer when connecting to mega.nz (v4, v6, or any). This is just an advisory option. Megatools will resolve mega.nz domain, and then use an A or AAAA record based on the stated preference. she'll try, okay, no promises, it's advisory πŸ’«
  • --config <path> β€” load configuration from a file πŸ“
  • --ignore-config-file β€” disable loading .megarc. bye config file, not today πŸŽ€
  • --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 🏷️
  • <remotepaths> β€” one or more remote files to download. the more the merrier honestly πŸ’œ
  • <remotefile> β€” remote path to a single file to stream. singular. one. streaming icon. 🌊

πŸ¦‹ EXAMPLES πŸ¦‹

  • Download file to the current directory:
$ megatools ls /Root

/Root
/Root/README

$ megatools get /Root/README
$ ls

README

look at her go. downloaded, listed, slayed. periodt. πŸ’…


🌈 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. (the structure, bestie, stay with me.)

Megatools maps node tree structure to a traditional filesystem paths (eg. /Root/SomeFile.DAT).

NOTE: 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 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. πŸ‘‘
  • /Trash β€” Trash directory where Mega.nz web client moves deleted files. This directory is not used by megatools when removing files.
  • /Inbox β€” Not sure. πŸ’€ (yes that's what the manual says, we don't make the rules)
  • /Contacts β€” 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.
  • /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).

the whole friend group, go say hi 🫢


πŸ’œ MEGATOOLS πŸ’œ

Part of the megatools(1) suite of commands.


πŸŽ€ BUGS πŸŽ€

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 upstream repository. so like… patches welcome, complaints not, that's the energy. πŸ™ˆ


⭐ 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 bestie πŸ’– this was megatools-get(1) from the megatools suite, dated 11 July 2025 β€” go download something iconic. mwah. πŸ’…βœ¨πŸ¦‹

πŸ“¦ where this page comes from