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
signup
email [password] [--name="Your Name"]
Register as user with a given email.confirm
link 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.ipc
email|handle -a|-d|-i
Manages 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 passwordmasterkey
pathtosave
Shows your master key.
Login / Logout
login
[email [password]] | exportedfolderurl#key | session
Logs into MEGAlogout
[--keep-session]
Logs outwhoami
[-l]
Print info of the usersession
Prints (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 pathpwd
Prints the current remote folderlpwd
Prints the current local folder for the interactive consoleattr
remotepath [-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 patternmount
Lists all the main nodes
Moving/Copying Files
mkdir
[-p] remotepath
Creates a directory or a directory hierarchycp
srcremotepath dstremotepath|dstemail
Copies 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 localpath
To download/upload the preview of a file.thumbnail
[-s] remotepath localpath
To download/upload the thumbnail of a file.mv
srcremotepath [srcremotepath2 srcremotepath3 ..] dstremotepath
Moves file(s)/folder(s) into a new location (all remotes)rm
[-r] [-f] remotepath
Deletes 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.backup
localpath remotepath --period="PERIODSTRING" --num-backups=N
Set 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)
cp
srcremotepath dstremotepath|dstemail
Moves a file/folder into a new location (all remotes)export
[-d|-a [--expire=TIMEDELAY]] [remotepath]
Prints/Modifies the status of current exportsimport
exportedfilelink#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.unicode
Toggle unicode input enabled/disabled in interactive shellreload
Forces a reload of the remote files of the userhelp
[-f]
Prints list of commandshttps
[on|off]
Shows if HTTPS is used for transfers. Usehttps on
to enable it.clear
Clear screenlog
[-sc] level
Prints/Modifies the current logs leveldebug
Enters debugging mode (HIGHLY VERBOSE)exit
|
quit
[--only-shell]
Quits MEGAcmd