Wiki > Megatools
Megatools is a collection of programs for accessing Mega.nz service from the command line of your server.
Megatools allow you to copy individual files as well as entire directory trees to and from the cloud. You can also perform streaming downloads for example to preview videos and audio files, without needing to download the entire file.
You can register account using a 'megareg' tool, with the benefit of having true control of your encryption keys.
Download the latest Linux x86_64 binary
Extract the archive
tar xvf megatools-1.11.0-git-20191107-linux-x86_64.tar.gz
megatoolsbinary to the
cp megatools-1.11.0-git-20191107-linux-x86_64/megatools ~/bin/megatools
(Optional) Remove the archive and directory:
rm megatools-1.11.0-git-20191107-linux-x86_64.tar.gz rm -r megatools-1.11.0-git-20191107-linux-x86_64
Add the bin directory to your PATH (if you've done this previously, you do not need to do it again)
echo "PATH=\$HOME/bin:\$PATH" >> ~/.bashrc && source ~/.bashrc
megatools and its provided utilities will be executable in any directory:
megatools dl 'insert-link-here'
For more usage examples and documentation use Megatools' documentation
To update Megatools, follow the installation steps again using the latest version.