MegaCMD常用命令

可以通过输入-v(-vv,-vvv,…)来增加任何命令所提供的信息

登入 / 登出

  • login[email [password]] | exportedfolderurl#key | session
  • logout[--keep-session]
  • whoami[-l] Print info of the user
  • session Prints (secret) session ID
  • killsession[-a|sessionid] Kills a session of current user

浏览

  • cd[remotepath] Changes the current remote folder
  • lcd[localpath] Changes the current local folder for the interactive console
  • ls[-lRr] [remotepath] Lists files in a remote path
  • pwd Prints the current remote folder
  • lpwd Prints the current local folder for the interactive console
  • attrremotepath [-s attribute value|-d attribute] Lists/updates node attributes
  • du[-h] [remotepath remotepath2 remotepath3 ... ] Prints size used by files/folders
  • find[remotepath] [-l] [--pattern=PATTERN] [--mtime=TIMECONSTRAIN] [--size=SIZECONSTRAIN] Find nodes matching a pattern
  • mount Lists all the main nodes

移动/复制文件

  • mkdir[-p] remotepath Creates a directory or a directory hierarchy
  • cpsrcremotepath 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 folder
  • get[-m] [-q] [--ignore-quota-warn] exportedlink#key|remotepath [localpath] Downloads a remote file/folder or a public link
  • preview[-s] remotepath localpath To download/upload the preview of a file.
  • thumbnail[-s] remotepath localpath To download/upload the thumbnail of a file.
  • mvsrcremotepath [srcremotepath2 srcremotepath3 ..] dstremotepath Moves file(s)/folder(s) into a new location (all remotes)
  • rm[-r] [-f] remotepath Deletes a remote file/folder
  • transfers[-c TAG|-a] | [-r TAG|-a] | [-p TAG|-a] [--only-downloads | --only-uploads] [SHOWOPTIONS] List or operate with transfers
  • speedlimit[-u|-d] [-h] [NEWLIMIT] Displays/modifies upload/download rate limits
  • sync[localpath dstremotepath| [-dsr] [ID|localpath] Controls synchronizations
  • exclude[(-a|-d) pattern1 pattern2 pattern3 [--restart-syncs]] Manages exclusions in syncs.
  • backuplocalpath remotepath --period="PERIODSTRING" --num-backups=N Set up a new backup folder and/or schedule
  • backup[-lhda] [TAG|localpath] [--period="PERIODSTRING"] [--num-backups=N]) View/Modify an existing backup schedule

分享

  • cpsrcremotepath dstremotepath|dstemail Moves a file/folder into a new location (all remotes)
  • export[-d|-a [--expire=TIMEDELAY]] [remotepath] Prints/Modifies the status of current exports
  • importexportedfilelink#key [remotepath] Imports the contents of a remote link into your account
  • share[-p] [-d|-a [email protected] [--level=LEVEL]] [remotepath] Prints/Modifies the status of current shares
  • webdav[ [-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.

发表评论

您的电子邮箱地址不会被公开。 必填项已用 * 标注

滚动至顶部