可以通过输入-v(-vv,-vvv,…)来增加任何命令所提供的信息
登入 / 登出
login
[email [password]] | exportedfolderurl#key | session
logout
[--keep-session]
whoami
[-l]
Print info of the usersession
Prints (secret) session IDkillsession
[-a|sessionid]
Kills a session of current user
浏览
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
移动/复制文件
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
分享
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 [email protected] [--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.