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. 0 means no limit (go feral πŸƒβ™€οΈ). and heads up: when ParallelTransfers > 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 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. 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, 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.
  • --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 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 directories to create. yes, more than one. go off.
  • <contactemail> β€” a valid email address of a contact you want to add. πŸ’Œ

🌈 EXAMPLES 🌈

  1. create a new folder:
$ megatools mkdir /Root/MyNewFolder
$ megatools ls /Root
/Root
/Root/MyNewFolder
  1. 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