Megatools

Intro

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.

Installation

  1. Download the latest Linux x86_64 binary

     wget https://megatools.megous.com/builds/experimental/megatools-1.11.0-git-20191107-linux-x86_64.tar.gz
    
  2. Extract the archive

     tar xvf megatools-1.11.0-git-20191107-linux-x86_64.tar.gz
    
  3. Copy the megatools binary to the ~/bin directory

     cp megatools-1.11.0-git-20191107-linux-x86_64/megatools ~/bin/megatools
    
  4. (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
    

Usage

  1. 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

Updating

To update Megatools, follow the installation steps again using the latest version.