Re:Why curl defaults to stdout
by cooper12 on Tuesday November 18, 2014 @10:01AM
(#8624088)
I don't think it would be possible to use curl for mega because it has to locally decrypt the stream first. I do remember using a (now deprecated) python library that wrapped the mega api [0] a while ago, so that might interest you if you want to do everything from the command line.
[0] https://github.com/richardasaurus/mega.py