This Docker image provide the MEGAcmd which gives 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.
docker create \
--name megacmd \
-v <path/to/data/to/sync>:/data \
carlosroman/megacmd