MEGAGET(1)

πŸ“¦ version 1.10.3, in ubuntu jammy

πŸ’– MEGAGET(1) β€” the Megatools Manual, but make it a group chat πŸ’–

okay bestie so this is megaget, part of the megatools suite, and she's literally the one you call when you need files OFF the internet and INTO your folder. main character energy. let's go πŸ¦‹


✨ NAME ✨

megaget β€” download files from your Mega.nz account πŸ’…


🌸 SYNOPSIS 🌸

megaget [--no-progress] [--path <path>] <remotepaths>...
megaget --path - <remotefile>

πŸ’œ DESCRIPTION πŸ’œ

Downloads files from your Mega.nz account. that's the whole vibe. she gets the files, she puts them places. πŸŽ€

NOTE: bestie if you wanna download entire directories, that is NOT this girl's job β€” go use megacopy(1). don't make it weird. πŸ™ˆ

πŸŽ€ OPTIONS πŸŽ€

  • --path <path> β€” where on your own lil computer the download lands. if <path> is a directory, the files get dropped into that directory. if <path> doesn't exist but its parent directory does, the file gets downloaded to that exact specified file β€” and jsyk that trick only works if you specify exactly one remote path. one. exactly. don't push it. 😭
    • and if <path> is -, the remote file gets streamed straight to stdout. yes queen, pipe it. ✨
  • --no-progress β€” turns off the download progress reporting. this is lowkey implied whenever you're streaming, so it's already off, no notes. πŸ”₯
  • --disable-resume β€” don't resume downloads from a partially downloaded file. the default is to resume, so this is you choosing chaos. πŸ’€
  • -u <email>, --username <email> β€” account username (email) 🫢
  • -p <password>, --password <password> β€” account password πŸ”
  • --no-ask-password β€” never ask interactively for a password. periodt.
  • --reload β€” reload the filesystem cache. refresh, bestie. 🌈
  • --limit-speed <speed> β€” set the max allowed upload AND download speed in KiB/s. this option overrides config file settings. 0 means no limit. and when ParallelTransfers > 1, the upload speed limit is applied to each transfer individually. so like, per transfer, not overall. iykyk. πŸƒβ™€οΈ
  • --proxy <proxy> β€” use a proxy server to connect to mega.nz. this option overrides config file settings. more info lives in the libcurl documentation at https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html. some acceptable values are:
    • none : disables 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 β€” disables loading .megarc. girl who? never heard of her. πŸ’…
  • --debug [<options>] β€” enables debugging of various aspects of the megatools operation. you can enable multiple debugging options separated by commas (eg. --debug api,fs). the 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
  • <remefile>... wait, no β€” <remotefile> β€” remote path to a single file to stream πŸ“

🌈 EXAMPLES 🌈

  • download a file to the current directory:
$ megals /Root

/Root
/Root/README

$ megaget /Root/README
$ ls

README

ate. no crumbs. πŸ‘‘


🧚 REMOTE FILESYSTEM 🧚

the Mega.nz filesystem is represented as a tree of nodes of various types. nodes are identified by 8 character node handles (eg. 7Fdi3ZjC). the structure of the filesystem is not encrypted. okay so the tree is giving open book. πŸ“–

Megatools maps that node tree structure to 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 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, bestie, so pay attention πŸ’–

  • /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. so don't be confused. πŸ’€
  • /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. bestie acquisition hack fr fr.
  • /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. look don't touch. 🫢

⭐ 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 friend group, go say hi πŸ’œ


πŸ¦‹ MEGATOOLS πŸ¦‹

part of the megatools(7) suite. one of the girls. ✨


πŸ’€ BUGS πŸ’€

report bugs at https://github.com/megous/megatools or megous@megous.com. pls be nice, she's trying 😭


πŸ’… 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 was megatools 1.10.2, dated 04/15/2020, from the Megatools Manual β€” mwah, slay, go download your files πŸ’–πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from