megatools-put(1)

πŸ’– megatools-put β€” the manual, bestie edition πŸ’–

okay so welcome to the megatools-put(1) page 🫢 yes it's a real manpage, from the megatools family, and it's literally just "how do I yeet my files up to Mega.nz". let's get into it, no cap.


✨ NAME ✨

megatools put β€” upload files to your Mega.nz account πŸ’…


🌈 SYNOPSIS 🌈

megatools put [--no-progress] [--path <remotepath>] <paths>...

πŸ¦‹ DESCRIPTION πŸ¦‹

Uploads files to your Mega.nz account. That's the whole vibe. Files go up, you feel iconic. ✨

NOTE: if you wanna upload whole directories, do NOT come here β€” go use megatools-copy(1) instead. this tool is for files, bestie.

πŸŽ€ OPTIONS πŸŽ€

  • --path <remotepath> β€” the remote path you're uploading to. If this path is a directory, your files get dropped into that directory 🫢. If this path doesn't exist, but its parent directory does, then the file gets uploaded to the exact path you specified β€” but this only works if you specify exactly one file. one. literally one. πŸ’€
  • --no-progress β€” turns off the upload progress reporting. no little bar, no numbers, just vibes.
  • --enable-previews β€” generate and upload file previews when uploading new files ✨. This is the default, unless you changed it in the configuration file. Use this flag to override whatever the config file says.
  • --disable-previews β€” don't generate and upload file previews. Default is to generate previews, so this is you actively choosing chaos (or just no previews).
  • -u <email>, --username <email> β€” account username (it's your email, bestie).
  • -p <password>, --password <password> β€” account password. keep it secret, keep it safe πŸ”
  • --no-ask-password β€” never ask interactively for a password. it will not prompt you. periodt.
  • --reload β€” reload the filesystem cache πŸ”„
  • --limit-speed <speed> β€” set the maximum allowed upload and download speed, in KiB/s. This option overrides config file settings. 0 means no limit (go feral 🏎️). Heads up: 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 info lives 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
  • --netif <ifname|ip> β€” network interface or local IP address used for outgoing connections. Important: when you're specifying an IP address, you have to specify an IP address that's bound to one of your local network interfaces.
  • --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 the mega.nz domain, and then use an A or AAAA record based on the stated preference. it's a suggestion, not a demand ✨
  • --config <path> β€” load configuration from a file
  • --ignore-config-file β€” disable loading .megarc
  • --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
  • <paths> β€” one or more local files to upload.

🌸 EXAMPLES 🌸

  • Upload file to the /Root:
$ megatools put README
$ megatools ls /Root

/Root
/Root/README
  • Upload file, while naming it differently:
$ megatools put --path /Root/README.TXT README
$ megatools ls /Root

/Root
/Root/README.TXT

🧚 REMOTE FILESYSTEM 🧚

Mega.nz's 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. πŸ‘€

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 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 β€” memorize these:

  • /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. πŸ€·β€β™€οΈ (that's genuinely what it says, i'm not making this up)
  • /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. one big happy family 🫢


πŸ’€ BUGS πŸ’€

There is no upstream support for bugreports and feature requests. (sad, i know 😭) But you can send code patches to megatools@xff.cz to get them integrated into the upstream repository. patches only, bestie β€” that's the door that's open.


🌟 AUTHOR 🌟

Megatools was written by Ondrej Jirman <megatools@xff.cz>, 2013-2022.

Official website is https://xff.cz/megatools/.


and that's the whole page, you ate it πŸ’… this was megatools-put(1) from the megatools suite, dated 11 July 2025 β€” go upload something iconic, bestie πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from