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.0means no limit (go feral ποΈ). Heads up: when usingParallelTransfers > 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 athttps://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 serversocks5h://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, orany). 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 callsfs: dump Mega.nz filesystem (may require--reloadto actually print something)cache: dump cache contentstman: 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
- debian trixie: megatools 1.11.5-1 Β· GPL-2+with_exception
- ubuntu questing: megatools 1.11.5-1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms