This article will show you how to install Megatools. Megatools is a set of command line tools for accessing cloud storage.

You'll need to execute some commands via SSH to use this software. There is a separate guide on how to connect to your slot via SSH. Commands are kept as simple as possible and in most cases will simply need to be copied and pasted into the terminal window (then executed by pressing the Enter key).


Install Megatools by logging in via SSH, then copying and pasting the following:

mkdir -p ~/bin
git clone ~/megatools
cd ~/megatools/
./ --disable-docs --prefix=$HOME
make && make install
cd && rm -rf ~/megatools/

Installation notes

If your binary directory (~/bin) is not in PATH you'll need to give the full path when trying to run any of the megatools. A better alternative is to simply add ~/bin to PATH with the following commands:

echo "PATH=~/bin:$PATH" > ~/.bashrc
source ~/.bashrc

Using Megatools

Megatools features the following binaries:

synchronize local and remote directories
display storage quotas/usage
download exported files from
download individual files from
list files stored at
create directories at
upload files to
register a new account
remove files from

You can get the usage guide by running the binary name with the --help-basic or --help-all options:

[server ~] megaget --help-all
  megaget [OPTION…] - download individual files from

Help Options:
  -h, --help                  Show help options
  --help-all                  Show all help options
  --help-basic                Show basic options
  --help-network              Show network options
  --help-auth                 Show authentication options

Basic Options:
  --config=PATH               Load configuration from a file
  --ignore-config-file        Disable loading .megarc
  --debug=OPTS                Enable debugging output
  --version                   Show version information

Network Options:
  --limit-speed=SPEED         Limit transfer speed (KiB/s)
  --proxy=PROXY               Proxy setup string

Authentication Options:
  -u, --username=USERNAME     Account username (email)
  -p, --password=PASSWORD     Account password
  --no-ask-password           Never ask interactively for a password
  --reload                    Reload filesystem cache

Application Options:
  --path=PATH                 Local directory or file name, to save data to
  --no-progress               Disable progress bar


rm -rf ~/bin/{megacopy,megadf,megadl,megaget,megals,megamkdir,megaput,megareg,megarm}