Skip to main content

Setting Up megatools

megatools is a collection of programs for accessing and managing Mega.co.nz account from your terminal. It allows the following features:

  • Copy individual files as well as entire directory trees to and from your account
  • Perform streaming downloads without needing to download the entire file.
  • Register your account using the megaregmegatools reg tool,command, with the benefit of having proper control of your encryption keys.

In this short guide, we'll be showing you how to install/upgrade and uninstall megatools from your USB slot,service, as well as a short description of the commands you can do on megatools.


Installing/Upgrading/Uninstalling megatools

  • You can run the following commandscommand to install megatools into your slotservice via SSH:
bash <(wget -qO- https://raw.githubusercontent.com/ultraseedbox/UltraSeedbox-Scripts/master/scripts.usbx.me/main/megatools/megatools-installer.sh
bash megatools-installer.shsh)

megatools commands

  • Listed below are the following commands of megatools.
megacopymegatools synchronizereg
	localRegister and remoteverify mega.nza directoriesnew megadfmega displayaccount
mega.nzmegatools df
	Show your cloud storage quotas/usagespace megadlusage/quota
downloadmegatools exportedls
	List all remote files
frommegatools mega.nztest
	megagetTest downloadfor existence of files or folders
megatools export
	Create public links for remote files
megatools mkdir
	Create remote directory
megatools rm
	Remove remote file or directory
megatools put
	Upload individual files
frommegatools mega.nzget
	megalsDownload listindividual files
storedmegatools atdl
	mega.nzDownload megamkdirfile create directories at mega.nz
megaput
	upload files to mega.nz
megareg
	registerfrom a new"public" mega.nzMega accountlink megarm(doesn’t removerequire fileslogin)
frommegatools mega.nzcopy
	Upload or download a directory tree
  • youYou can get the usage guide by running themegatools binary name with the --help-basic or --help-allhelp options.
  • You may also view the latest man pages here: megatools(1)