This is a dockerfile that creates a container with github.com/megous/megatools in it, allowing you to use MEGA.co.nz's storage without installing any extra packages.
docker pull dancodes/megatools
docker build -t megatools .
#!/bin/bash
EMAIL=youremail@example.com
PASS=yourpassword
FILE=README.md
docker run --rm \
-v "$(pwd):$(pwd)" -w "$(pwd)" \
-t -i dancodes/megatools \
megaput \
-u "$EMAIL" -p "$PASS" \
"$FILE"