megatools-mkdir(1)
π megatools-mkdir β the girlies are making folders β¨
okay so bestie, real talk: this is megatools-mkdir, one of the little icons living inside the megatools(1) suite. it's the one that makes folders on your Mega.nz account. that's it. that's the job. π
β¨ SYNOPSIS β¨
megatools mkdir <remotepaths>...
megatools mkdir /Contacts/<contactemail>
πΈ DESCRIPTION πΈ
It creates folders on Mega.nz. slay. that's the whole thing.
but wait β there's a lil plot twist π«’ as a special case, if you make a new folder under /Contacts, you're lowkey adding a <contactemail> to your contacts list. not me making a folder and accidentally gaining a friend π
π OPTIONS π
-u <email>,--username <email>β your account username, aka the email. the who-are-you of it all.-p <password>,--password <password>β your account password. keep it cute, keep it secret π€«--no-ask-passwordβ never ask for a password interactively. it will NOT pop up and be like "hiii what's the password". no cap.--reloadβ reload the filesystem cache. fresh start energy β¨--limit-speed <speed>β sets the max allowed upload and download speed in KiB/s. this option overrides config file settings.0means no limit (go feral πβοΈ). and heads up: whenParallelTransfers > 1, the upload speed limit gets applied to each transfer individually, so it's per-transfer, not a group total. 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: 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. when you specify an IP address, you have to specify an IP address bound to one of your local network interfaces. not optional, bestie.--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.--config <path>β load configuration from a file π--ignore-config-fileβ disable loading.megarc. it's giving "i don't read the group chat" π--debug [<options>]β turn on debugging for various aspects of megatools. you can enable multiple debugging options separated by commas, like--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 β<remotepaths>β one or more remote directories to create. yes, more than one. go off.<contactemail>β a valid email address of a contact you want to add. π
π EXAMPLES π
- create a new folder:
$ megatools mkdir /Root/MyNewFolder
$ megatools ls /Root
/Root
/Root/MyNewFolder
- add a new contact to your contacts list:
$ megatools mkdir /Contacts/some@email.com
π¦ REMOTE FILESYSTEM π¦
okay this part is important so lock in π
the Mega.nz filesystem is represented as a tree of nodes of various types. nodes are identified by an 8 character node handle (eg. 7Fdi3ZjC). 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 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 also need to be aware of several special folders π
/Rootβ writable directory representing the root of the filesystem. main character of directories honestly./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. π (yes that's literally what the docs say, i'm not making it 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. family π
π₯ 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 the upstream repository. be the change you want to see in the repo, bestie β¨
π AUTHOR π
megatools was written by Ondrej Jirman < megatools@xff.cz mailto:megatools@xff.cz >, 2013-2022. absolute legend, no cap π
official website is https://xff.cz/megatools/.
and that's the whole vibe check π«Ά this page dropped on 11 July 2025 and it's part of the megatools suite β go make some folders, you're doing amazing sweetie πβ¨
π¦ 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