Skip to content

RoINJ/MegaCMD-Alpine-Docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MegaCMD Docker for Alpine Linux

This repository provides a Dockerfile to build MegaCMD for Alpine Linux. MegaCMD is a command-line interface (CLI) for the MEGA.nz cloud storage service, allowing users to interact with their MEGA.nz account from the terminal.

The reason: The Mega team currently doesn't provide a MegaCMD build for Alpine Linux. There is a MegaCMD community package, but it doesn't support WebDAV. This repository was created to build MegaCMD with WebDAV support for Alpine Linux on both x86 and aarch64 platforms.

Docker Pulls

Table of Contents

Installation

Before you begin, ensure you have the Docker installed on your machine: Install Docker.

Pull the image from Docker Hub

To pull the pre-built image from Docker Hub, run the following command:

docker pull roinj/megacmd-alpine

Building the Docker Image

Alternatively, you can build the Docker image for from the source:

git clone https://github.com/roinj/megacmd-alpine-docker.git
cd MegaCMD-Alpine-Docker
docker build -t megacmd-alpine .

Usage

Running the Docker Container

After building the Docker image or pulling it from Docker Hub, you can run the container using the following command:

docker run -it --rm megacmd-alpine

This command will start a container with MegaCMD installed, allowing you to use MegaCMD commands.

Example Commands

# Login to your MEGA.nz account
mega-login [email protected] your-password

# Upload a file to your MEGA.nz account
mega-put /path/to/local/file /remote/path

# Download a file from your MEGA.nz account
mega-get /remote/path /path/to/local/destination

# List files in your MEGA.nz account
mega-ls /remote/path

# Start WebDAV service
mega-webdav

You can find more commands in this User Guide.

License

This project is licensed under the GPL-3.0 License. See the LICENSE file for details.