Whatbox Logo

Wiki > MEGAcmd

"MEGAcmd provides non UI access to MEGA services. It intends to offer all the functionality with your MEGA account via commands. It features synchronization , backup of local folders into your MEGA account and a webdav/streaming server."

Installation

  1. git clone https://github.com/meganz/MEGAcmd.git
  2. cd MEGAcmd && git submodule update --init --recursive
  3. screen cmake -B build/build-cmake-Release -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME
  4. screen cmake --build build/build-cmake-Release
  5. cmake --install build/build-cmake-Release
  6. (Optional cleanup) rm -r ~/MEGAcmd/

Usage

  1. Add the ~/usr/bin directory to your PATH (if you've done this previously, you do not need to do it again)

     echo "PATH=\$HOME/usr/bin:\$PATH" >> ~/.bashrc && source ~/.bashrc
    

mega-cmd will open the interactive shell. Enter help for basic info and a list of available commands.

Updating

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