Mega.nz is a Secure Cloud Storage and Communication. Privacy by Design. Create a MEGA account to get 50 GB FREE storage (reduced to 15GB in 30 days)
- Reliable Storage and Fast Transfers
- End-to-End Encryption
- Secure Communication
- The Secure Solution for Your Business
- Personal Account From 4.99 € / month
- Business Account From 10.00 € / user / month (min of 3 users)
- Open Source
- File Versioning
- File backup
- Extensions (FF/Chrome)
- MEGAdrop
- MEGAbird
- MEGAcmd – Commandline, Scriptable, Autobackup, WebDav, FTP
- MEGAcmd – Command Line Interactive and Scriptable Application – https://github.com/meganz/MEGAcmd/
- MEGAcmd User Guide – https://github.com/meganz/MEGAcmd/blob/master/UserGuide.md
Mega Plans
| FREE | $0.00 | 50 GB | 10 GB/Month on DL |
| LITE | €4.99/month – €49.99/year | 200 GB | 1 TB |
| PRO I | €9.99/month – €99.99/year | 500 GB | 2 TB |
| PRO II | €19.99/month – €199.99/year | 2 TB | 4 TB |
| PRO III | €29.99/month – €299.99/year | 4 TB | 8TB |
Command line summary
These summaries use the usual conventions – [] indicates its content is optional, | indicates you should choose either the item on the left or the one on the right (but not both)
Each command is described as it would be used in the interactive MEGAcmd shell, and the corresponding scriptable command (which must be prefixed with mega-) works in the same way.
Commands referring to a remote path are talking about a file in your MEGA account online, whereas a local path refers to a file or folder on your local device where MEGAcmd is running.
Verbosity: You can increase the amount of information given by any command by passing -v (-vv, -vvv, …)
Account / Contacts
signupemail [password] [--name="Your Name"]Register as user with a given email.confirmlink email [password]Confirm an account using the link provided after the “signup” process.invite[-d|-r] dstemail [--message="MESSAGE"]Invites a contact / deletes an invitation.showpcr[--in | --out]Shows incoming and outgoing contact requests.ipcemail|handle -a|-d|-iManages contact incoming invitations.users[-s] [-h] [-n] [-d contact@email]List contactsuserattr[-s attribute value|attribute] [--user=user@email]Lists/updates user attributespasswd[oldpassword newpassword]Modifies user passwordmasterkeypathtosaveShows your master key.
Login / Logout
login[email [password]] | exportedfolderurl#key | sessionLogs into MEGAlogout[--keep-session]Logs outwhoami[-l]Print info of the usersessionPrints (secret) session IDkillsession[-a|sessionid]Kills a session of current user.
Browse
cd[remotepath]Changes the current remote folderlcd[localpath]Changes the current local folder for the interactive consolels[-lRr] [remotepath]Lists files in a remote pathpwdPrints the current remote folderlpwdPrints the current local folder for the interactive consoleattrremotepath [-s attribute value|-d attribute]Lists/updates node attributesdu[-h] [remotepath remotepath2 remotepath3 ... ]Prints size used by files/foldersfind[remotepath] [-l] [--pattern=PATTERN] [--mtime=TIMECONSTRAIN] [--size=SIZECONSTRAIN]Find nodes matching a patternmountLists all the main nodes
Moving/Copying Files
mkdir[-p] remotepathCreates a directory or a directory hierarchycpsrcremotepath dstremotepath|dstemailCopies a file/folder into a new location (all remotes)put[-c] [-q] [--ignore-quota-warn] localfile [localfile2 localfile3 ...] [dstremotepath]Uploads files/folders to a remote folderget[-m] [-q] [--ignore-quota-warn] exportedlink#key|remotepath [localpath]Downloads a remote file/folder or a public linkpreview[-s] remotepath localpathTo download/upload the preview of a file.thumbnail[-s] remotepath localpathTo download/upload the thumbnail of a file.mvsrcremotepath [srcremotepath2 srcremotepath3 ..] dstremotepathMoves file(s)/folder(s) into a new location (all remotes)rm[-r] [-f] remotepathDeletes a remote file/foldertransfers[-c TAG|-a] | [-r TAG|-a] | [-p TAG|-a] [--only-downloads | --only-uploads] [SHOWOPTIONS]List or operate with transfersspeedlimit[-u|-d] [-h] [NEWLIMIT]Displays/modifies upload/download rate limitssync[localpath dstremotepath| [-dsr] [ID|localpath]Controls synchronizationsexclude[(-a|-d) pattern1 pattern2 pattern3 [--restart-syncs]]Manages exclusions in syncs.backuplocalpath remotepath --period="PERIODSTRING" --num-backups=NSet up a new backup folder and/or schedulebackup[-lhda] [TAG|localpath] [--period="PERIODSTRING"] [--num-backups=N])View/Modify an existing backup schedule
Sharing (your own files, of course, without infringing any copyright)
cpsrcremotepath dstremotepath|dstemailMoves a file/folder into a new location (all remotes)export[-d|-a [--expire=TIMEDELAY]] [remotepath]Prints/Modifies the status of current exportsimportexportedfilelink#key [remotepath]Imports the contents of a remote link into your accountshare[-p] [-d|-a --with=user@email.com [--level=LEVEL]] [remotepath]Prints/Modifies the status of current shareswebdav[ [-d] remotepath [--port=PORT] [--public] [--tls --certificate=/path/to/certificate.pem --key=/path/to/certificate.key]]Sets up the ability to download a file from your MEGA account via your PC/device.
Misc
version[-l][-c]Prints MEGAcmd versioning and extra infodeleteversions[-f] (--all | remotepath1 remotepath2 ...)Delete prior versions of files to save space.unicodeToggle unicode input enabled/disabled in interactive shellreloadForces a reload of the remote files of the userhelp[-f]Prints list of commandshttps[on|off]Shows if HTTPS is used for transfers. Usehttps onto enable it.clearClear screenlog[-sc] levelPrints/Modifies the current logs leveldebugEnters debugging mode (HIGHLY VERBOSE)exit|quit[--only-shell]Quits MEGAcmd