Как настроить webdav mega nz
Copy raw contents
MEGA-WEBDAV — Serve you files as a WEBDAV server with MEGAcmd
This is a brief tutorial on how to configure webdav server.
Configuring a WEBDAV server will let you access your MEGA files as if they were located in your computer. All major platforms support access to WEBDAV server. See Platform usage.
Notice: the commands listed here assume you are using the interactive interaction mode: they are supposed to be executed within MEGAcmdShell.
Serving a folder
This will configure a WEBDAV server that will serve «myfolder». It’ll show you the URL to access that path. You just use that location to configure access according to your specific OS. Once you have it configured, you can browse, edit, copy and delete your files as if they were local file in your computer. Caveat: They are not local, MEGAcmd transparently download/upload decrypt/encrypt those files. Hence, throughput will be decreased as compared to accessing to local files. Be patient.
You can «webdav» a file, so as to offer streaming access to it:
You will receive an URL that you can use in your favourite video player.
We have detected some issues with different software, when trying to save a file into a webdav served locations. Typically with software that creates temporary files. We will keep on trying to circumvent those.
In Linux, using gvfsd-dav (Gnome’s default webdav client), we have occasionally seen problems trying to open text files that have already been modified using some graphic editors. This is due to that gvfsd-dav tries to retrieve a URL different to the actual URL of the files. Reading the files through the console works just fine. This has been detected in Ubuntu 16.04.
In Windows XP, copying a file from a MEGA webdav location, and pasting in a local folder does nothing.
If you find any more issues, don’t hesitate to write to support@mega.nz, explaining what the problem is and how to reproduce it.
You can list the webdav served locations typing webdav :
These locations will be available as long as MEGAcmd is running. The configuration is persisted, and will be restored everytime you restart MEGAcmd
Port & public server
When you serve your first location, a WEBDAV server is configured in port 4443 . You can change the port passing —port=PORT to your webdav command. By default, the server is only accessible from the local machine. You can pass —public to your webdav command so as to allow remote access. In that case, use the IP of your server to access to it.
Files in MEGA are encrypted, but you should bear in mind that the HTTP webdav server offers your files unencrypted.
If you wish to add authenticity to your webdav server and integrity & privacy of the data transfered to/from the clients, you can secure it with TLS. You just need to pass —tls and the paths* to your certificate and key files (in PEM format):
*Those paths are local paths in your machine, not in MEGA.
Currently, MEGAcmd only supports one server: although you can serve different locations, only one configuration is possible. The configuration used will be the one on your first served location. If you want to change that configuration you will need to stop serving each and every path and start over.
You can stop serving a MEGA location with:
If successfully, it will show a message indicating that the path is no longer served:
All major platforms support accesing/mounting a webdav location. Here are some instructions to do that in Windows, Linux & Mac.
This instructions refer to Windows 10, but they are similar in other windows.
Open an Explorer window, and then do right click on «This PC», and then «Map network drive. «.
Then enter the URL MEGAcmd gave you
Then, you should see the new location in the navigation panel now.
Open Find and in the Menu «Go», select «Connect to Server», or type ⌘ — k:
Then enter the URL MEGAcmd gave you
At the moment of writing this tutorial, there is no authentication mechanisms, hence you don’t need to worry about providing a user name/password. Just proceed if you are prompted with default options. You should see the new location in the navigation panel now.
This instructions are for Nautilus, it should be similar using another file browser. Click on File -> Connect to Server:
Then enter the URL MEGAcmd gave you
You should see the new location in the navigation panel now.
Источник
О том, как прикрутить к Проводнику «облака» в качестве сетевых дисков
О том, как прикрутить к Проводнику «облака» в качестве сетевых дисков
Мы уже рассуждали о преимуществах и особенностях некоторых популярных сетевых хранилищ данных (Cloud storage), об их опасности и заманчивости…
Поскольку, в настоящее время этот сектор находится в состоянии бурного развития – на этапе завоевания умов и сердец, то различные провайдеры для привлечения клиентуры предлагают относительно небольшие объемы бесплатно. Как правило, от 2 до 15 Гб. Это маловато. Вероятно, стоило бы заплатить одному из поставщиков и получить дополнительные 50-100 Гб. Однако пока ни один поставщик услуг не идеален, у всех есть свои недостатки и косяки, да и платить – не наш метод ))).
У всех облачных хранилищ разнообразные веб-интерфейсы и способы «прикручивания» к компьютеру. Это неудобно. Поэтому, идея держать разномастные «облака» в одном месте не нова. Но до сих пор актуальна…
В сети полно разговоров о том, как это реализовать. Есть, например, несколько программ, которые обеспечивают в Windows работу с несколькими «облаками» при помощи специального интерфейса. Среди них – Cyberduck, а также Gladinet Cloud Drive. Первая из них имеет оболочку а-ля «проводник» с функционалом на любителя, но позволяет «прикручивать» кроме «облаков» (далеко не все популярные!) еще и диски по протоколам WebDAV и FTP. Вторая – создает общий сетевой диск в Проводнике Windows, который дает возможность работать бесплатно (зараза) только с двумя облаками. Версия Pro – не наш метод ))). Существует еще один неплохой онлайновый менеджер Otixo (*). Он удобно подключает все популярные «облака», WebDAV и FTP хранилища, но имеет в бесплатном варианте ограничения по трафику (кажется 2 Гб в месяц). Кроме того, придется отдать одному «дяде» пароли на все акк… В свою очередь, Otixo вместе со всей «гирляндой» можно «прикрутить» к Проводнику несколькими способами. Проще всего через WebDAV, как сетевой диск (используем https://dav.otixo.com). Судя по отзывам, есть недостатки в работе и наблюдается снижение скорости (про ограничения трафика в этом случае не известно). Но есть и плюсы. К примеру, это один из немногих способов (кроме Gladinet) «подрубить» к Проводнику в виде сетевой папки такую вещь в себе, как Google Drive, т.к. этот сервис не предоставляет заход через ftp или https серверы или по протоколу WebDAV. Особенно Otixo пригодится в Windows 8, для которой Google пока не разрабатывал поддержку вовсе (ссылаясь на то, что там засел SkyDrive).
Если все перечисленные недостатки не устраивают по тем или иным соображениям, то можно попробовать «подрубать» «облака» в качестве сетевых папок Проводника по-отдельности. На сегодня у нас в России, на мой взгляд, самыми распространенными облачными хранилищами являются SkyDrive, Google Drive и Яндекс.Диск. Сразу скажу, что подключить Google Drive в виде сетевого диска не удалось (в силу выше сказанного). Подключение дискового хранилища SkyDrive описано на Хабре (http://habrahabr.ru/post/122457). Только, на самом деле, рабочая строка будет такой: https://d.docs.live.net/cid-идентификатор. Работает в Windows 7 и Windows 8 (без всяких магазинов и входа в винду по акк SkyDrive).
Известно, что можно завести несколько Дисков на Яндексе из-под разных акк и «прокачать» их объем до 10 Гб и более. Кроме основного Яндекс.Диска, устанавливаемого и работающего штатно под управлением фирменной утилиты, доступно одновременное подключение в Проводнике еще одного Яндекс.Диска по протоколу WebDAV в виде сетевой папки (https://webdav.yandex.ru). Но не проходит фокус с подобным подключением третьей (и так далее) сетевой папки: создается лишь дубль первого Яндекс.Диска с тем же логином. Может кто-то знает, чем редактировать настройки сетевых папок в Проводнике? Если эту проблему решить – можно подсоединять множество Яндекс.Дисков (и, возможно, SkyDrive и др.) под разными логинами.
Кстати, несколько Яндекс.Дисков легко «подрубается» в Otixo в веб-интерфейсе (и через акк, и по WebDAV) и, соответственно, доступны в Проводнике по протоколу https://dav.otixo.com! Интересно, что посредством Otixo в Проводнике появляется доступ и к медиафайлам Facebook и Picasa.
Возможности подключения в качестве сетевых папок 4sync, box.com, CX.com и Dropbox пока не изучал.
Хорошая новость. Недавно открывшийся отечественный облачный сервис QIP Диск на данный момент временно перестал предоставлять собственную утилиту для подключения синхронизируемой папки в Windows, но в службе поддержки сообщили, что теперь есть WebDAV вход. Это дает возможность подключать QIP Диск как в Otixo (сервер webdav.qip.ru, не ставить галочку «use HTTPS»), так и напрямую в Проводнике по протоколу https://webdav.qip.ru. FTP доступа у QIP Диска нет и не предвидится в ближайшие полгода. Однако планируется развивать функционал веб-версии сервиса.
Еще один российский облачный сервис Diskanet.ru предлагает бесплатно 3 Гб. Использование: через веб-интерфейс (ужасный) или в Проводнике по FTP протоколу (ftp://diskanet.ru).
*) P.S. 7 февраля 2013 г. в Otixo сообщили о прекращении бесплатного использования ресурса
Otixo will no longer offer a free account.
This new direction will help us support you even better — bringing you new features, more clouds and more personalized support.
Today, your account will start a 14-day free trial period, after which, we sincerely hope you will continue to support us by purchasing a monthly or yearly subscription for unlimited use of Otixo.
Источник
Как настроить webdav mega nz
Copy raw contents
MEGAcmd User Guide
This document relates to MEGAcmd version 0.9.9. It contains introductory information and the Command Summary, with links to detailed command descriptions.
A command line tool to work with your MEGA account and files. The intent is to offer all the MEGA account functionality via command line. You can run it in interactive mode where it processes all commands directly, or you can run its scriptable commands from your favourite Linux or Mac shell such as bash, or you can even run its commands in a Windows command prompt. And of course you can write scripts using those scriptable commands.
Here is an example of downloading a file using MEGAcmd. In this case we are downloading a file specified by a public link, which does not require being logged in:
Note:- If you get any error like this one
In link put \ in front of every ! for example
And here is an example of uploading a file using MEGAcmd, and making a link available to share it, that will expire after 10 minutes.
And here is an example of the power of using scriptable MEGAcmd commands in bash. In this case we are going to share some promotional videos previously uploaded to MEGA:
In addition to running commands on request, MEGAcmd can also be configured to synchronise folders between your local device and your MEGA account, or perform regular backups from your device to your MEGA account.
In order to enable synchronisation and backup features, and for efficiency running commands, MEGAcmd runs a server process in the background which the MEGAcmd shell or the script commands forward requests to. The server keeps running in the background until it is told to close with the quit command. If you want it to keep running when you quit the interactive shell (to keep sync and backup runnign for example), use quit —only-shell .
Working with your MEGA account requires signing in with your email and password using the login command, though you can download public links or upload to public folders without logging in. Logging in with your username and password starts a Session, and causes some of your account such as the folder structure to be downloaded to your Local Cache.
Where can you get it
For Linux, Mac, or Windows: Download it from the MEGA.nz website: https://mega.nz/cmd
We are also building it for some NAS systems, please check your provider’s App Store.
What can you do with it
The major features are
- Move files around inside your MEGA account or between MEGA and your PC using command line tools.
- Use those same commands in scripts to manage your files.
- Set up synchronization or a backup schedule between a folder on your machine, and a folder on your MEGA account. (use the sync or backup commands)
- Set up WebDAV access to files in your MEGA account (use the webdav command)
See our Help Centre pages for the basics of getting started, and friendly examples of common usages with plenty of pictures: https://mega.nz/help
Terminology and Descriptions
Interactive refers to running the MEGAcmd shell which only processes MEGA commands. You invoke commands by typing and pressing Enter. MEGAcmd shell provides a lot of feedback about what it’s doing. You can start the MEGAcmd shell with mega-cmd (or MEGAcmd on Windows). You can then issue commands like ls directly:
or you can get a list of available commands with:
or you can get detailed information about any particular command by using the —help flag with that command:
Autocompletion (pressing tab to fill in the remainder of a command) is available in interactive mode.
Scriptable refers to running the MEGAcmd commands from a shell such as bash or the windows powershell. If the PATH to the MEGAcmd commands are not yet on the PATH in that shell, you’ll need to add it. You can then issue commands like ls by prefixing them with the mega- prefix:
or you can get a list of available commands with:
or you can get detailed information about any particular command by using the —help flag with that command:
Scriptable commands can of course be used in scripts to achieve a lot in a short space of time, using loops or preparing all the desired commands ahead of time. If you are using bash as your shell, the MEGAcmd commands support auto-completion.
A contact is someone (identified by their email address) that also has a MEGA account, who you can share files or folders with, and can chat with on MEGAchat.
This refers to a file or a folder stored in your MEGA account, or a publicly available file or folder in the MEGA cloud. Remote paths always use the ‘/’ character as the separator between folder and file elements.
Some MEGAcmd commands allow the use of regular expressions in remote paths. You can check if the command supports those by using the —help flag with the command. If you use these in the scriptable way, you need to escape characters that would otherwise be intercepted and interpreted by the shell.
Paths to folders shared to you from another person start with their email and a : character, see the example at (example)
This refers to a file or folder on the PC or device that MEGAcmd is running in.
When you log in with your email and MEGA account password, that creates a session. The session exists until you log out of it or kill it from another client. In MEGAcmd, use whoami -l to see all your open sessions across all devices, and use killsession to close them. You can use other MEGA clients such as the phone app, or webclient to close these also. Devices that were using a killed session will have their connection to MEGA closed immediately and will no longer have access to your account, until you log in on them again. Syncs, backups, and webdavs are specific to a session, so logging out will cause them to be cancelled.
Logging in with MEGAcmd creates your Local Cache, a subfolder of your home folder. MEGAcmd downloads and stores some data in your Local Cache relating to your account, such as folder structure and contacts, for performance reasons. The MEGAcmd background server keeps the local cache up to date when changes to your account occur from other clients. The cache does contain a way for MEGAcmd to access your MEGA account when it starts up again if you have not specifically logged out. The Local Cache also contains information from your Session, including sync, backup, and webdav configurations. Logging out cleans the Local Cache, but also closes your session and the sync, backup, and webdav configurations are wiped.
MEGAcmd can set up a synchronisation between a folder on your local machine and a folder in your MEGA account, using the sync command. This is the same mechanism that MEGAsync uses. The synchronisation is two-way: the folders you nominate to be synced will mirror any action! Whatever you add or delete in your sync folder on your device gets added or deleted in your sync folder in your MEGA account. And additions or deletions in your synced folder in your MEGA account will similarly be applied to your local synced folder. Files that are removed from sync folders are moved to a hidden local folder (Rubbish/.debris inside your local sync folder, or SyncDebris folder in the Rubbish Bin of your MEGA account).
Here is a very simple example of setting up a synchronisation with MEGAcmd:
You can set up more than one pair or folders to be synced, and you can also set a sync from another device to the same folder, to achieve folder synchronisations between different devices. The changes are sent via your MEGA account rather than directly between the devices in that case.
Additional information about synchronising folders is available in our Help Centre: https://mega.nz/help/client/megasync/syncing
MEGAcmd can set up a periodic copy of a local folder to your MEGA account using the backup command. Here is a simple example that will back up a folder immediately and then at 4am each day, keeping the 10 most recent backups:
For further information on backups, please see the backup command and the tutorial.
MEGAcmd can set up access to folders or files in your MEGA account as if they were local folders and files on your device using the webdav command. For example making the folder appear like a local drive on your PC, or providing a hyperlink a browser can access, where the hyperlink is to your PC.
For further information on WebDAV, please see the webdav command and the tutorial.
On Linux, MEGAcmd commands are installed at /usr/bin and so will already be on your PATH. The interactive shell is mega-cmd and the background server is mega-cmd-server , which will be automatically started on demand. The various scriptable commands are installed at the same location, and invoke mega-exec to send the command to mega-cmd-server .
If you are using the scriptable commands in bash (or using the interactive commands in mega-cmd), the commands will auto-complete.
For MacOS, after installing the dmg, you can launch the server using MEGAcmd in Applications. If you wish to use the client commands from MacOS Terminal, open the Terminal and include the installation folder in the PATH.
And for bash completion, source megacmd_completion.sh :
Once you have MEGAcmd installed, you can start the interactive shell from the Start Menu or desktop icon. On windows the interactive shell executable is called MEGAcmdShell.exe and the server is MEGAcmdServer.exe .
On Windows 7, we recommend using the MEGAcmd shell from inside PowerShell for a better user experience (and you can do this on other Windows platforms also). You can start powershell from the Start Menu and then execute these commands to start it:
For scriptable usage, the MEGAcmd commands are provided via installed .bat files which pass the command to the MEGAcmdServer.exe. Provided you have set the PATH as above, you can use these like normal command line tools in PowerShell:
Or in Command Prompt:
And of course those can be invoked in your own .bat or .cmd files. Autocompletion is not available for the scriptable commands, but is in the interactive shell.
Unicode is supported though it currently in the interactive shell it needs to be switched on, and to have a suitable font selected; please execute help —unicode for the latest information. There are plans to improve this. Please report any issues experienced to our support team.
We have released packages for QNAP and Synology, which you can download and install from the App Center in QNAP, and the Package Center in Synology. In QNAP, please make sure to turn on «Enable home folder for all users» from the control panel, and set HOME=/share/homes/ before starting any MEGA commands, and in Synology, ‘Enable user home service’, so that the mega-cmd-server creates the .megaCmd local cache folder there (as the default HOME location may be erased on restart).
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 , . )
- 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 contacts
- userattr [-s attribute value|attribute] [—user=user@email] Lists/updates user attributes
- passwd [oldpassword newpassword] Modifies user password
- masterkey pathtosave Shows your master key.
- login [email [password]] | exportedfolderurl#key | session Logs into MEGA
- logout [—keep-session] Logs out
- 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
- attr remotepath [-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
- cp 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 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.
- mv srcremotepath [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.
- backup localpath 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
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 exports
- import exportedfilelink#key [remotepath] Imports the contents of a remote link into your account
- share [-p] [-d|-a —with=user@email.com [—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.
- version [-l][-c] Prints MEGAcmd versioning and extra info
- deleteversions [-f] (—all | remotepath1 remotepath2 . ) Delete prior versions of files to save space.
- unicode Toggle unicode input enabled/disabled in interactive shell
- reload Forces a reload of the remote files of the user
- help [-f] Prints list of commands
- https [on|off] Shows if HTTPS is used for transfers. Use https on to enable it.
- clear Clear screen
- log [-sc] level Prints/Modifies the current logs level
- debug Enters debugging mode (HIGHLY VERBOSE)
- exit | quit [—only-shell] Quits MEGAcmd
Lists/updates node attributes
Usage: attr remotepath [-s attribute value|-d attribute]
Sets up or controls backups. (example) (tutorial)
Usage: backup (localpath remotepath —period=»PERIODSTRING» —num-backups=N | [-lhda] [TAG|localpath] [—period=»PERIODSTRING»] [—num-backups=N])
Changes the current remote folder (example)
Usage: cd [remotepath]
Confirm an account using the link provided after the «signup» process. (example)
Usage: confirm link email [password] It requires the email and the password used to obtain the link.
Moves a file/folder into a new location (all remotes)
Usage: cp srcremotepath dstremotepath|dstemail:
Enters debugging mode (HIGHLY VERBOSE)
Deletes previous versions of files, keeping the current version.
Usage: deleteversions [-f] (—all | remotepath1 remotepath2 . )
Prints size used by files/folders (example)
Usage: du [-h] [—versions] [remotepath remotepath2 remotepath3 . ]
Manages exclusions in syncs.
Usage: exclude [(-a|-d) pattern1 pattern2 pattern3 [—restart-syncs]]
Usage: exit [—only-shell]
Prints/Modifies the status of current exports (example)
Usage: export [-d|-a [—expire=TIMEDELAY] [-f]] [remotepath]
Find nodes matching a pattern
Usage: find [remotepath] [-l] [—pattern=PATTERN] [—mtime=TIMECONSTRAIN] [—size=SIZECONSTRAIN]
Downloads a remote file/folder or a public link (example)
Usage: get [-m] [-q] [—ignore-quota-warn] exportedlink#key|remotepath [localpath]
Prints list of commands
Shows if HTTPS is used for transfers. Use https on to enable it.
Usage: https [on|off]
Imports the contents of a remote link into your MEGA account or to a local folder. (example)
Usage: import exportedfilelink#key [remotepath]
Invites a contact / deletes an invitation (example)
Usage: invite [-d|-r] dstemail [—message=»MESSAGE»]
Manages contact incoming invitations. (example)
Usage: ipc email|handle -a|-d|-i
Kills a session of current user.
Usage: killsession [-a|sessionid]
Changes the current local folder for the interactive console
Usage: lcd [localpath]
Prints/Modifies the setting for how detailed log output is.
Usage: log [-sc] level
Log into your MEGA account (example)
Usage: login [email [password]] | exportedfolderurl#key | session
Closes your session for security or to allow subsequently logging into a different account. (example)
Usage: logout [—keep-session]
Prints the current local folder for the interactive console
Usage: ls [-halRr] [—versions] [remotepath] Lists files in a remote path
Shows your master key.
Usage: masterkey pathtosave
Creates a directory or a directories hierarchy (example)
Usage: mkdir [-p] remotepath
Lists all the main nodes (example)
Copies files/folders to a new location in your MEGA account
Usage: mv srcremotepath [srcremotepath2 srcremotepath3 ..] dstremotepath
Modifies user password
Usage: passwd [oldpassword newpassword]
To download/upload the preview of a file.
Usage: preview [-s] remotepath localpath
Uploads files/folders to a remote folder (example)
Usage: put [-c] [-q] [—ignore-quota-warn] localfile [localfile2 localfile3 . ] [dstremotepath]
Prints the current remote folder
Usage: quit [—only-shell]
Forces re-downloading the Local Cache information from MEGA.
Deletes a remote file/folder
Usage: rm [-r] [-f] remotepath
Prints (secret) session ID
Prints/Modifies the status of current shares
Usage: share [-p] [-d|-a —with=user@email.com [—level=LEVEL]] [remotepath]
Shows incoming and outgoing contact requests. (example)
Usage: showpcr [—in | —out]
Register as user with a given email (example)
Usage: signup email [password] [—name=»Your Name»]
Displays/modifies upload/download rate limits
Usage: speedlimit [-u|-d] [-h] [NEWLIMIT]
Sets up synchronisation between a local folder and one in your MEGA account. (example)
Usage: sync [localpath dstremotepath| [-dsr] [ID|localpath]
To download/upload the thumbnail of a file.
Usage: thumbnail [-s] remotepath localpath
List or operate with queued transfers (example)
Usage: transfers [-c TAG|-a] | [-r TAG|-a] | [-p TAG|-a] [—only-downloads | —only-uploads] [SHOWOPTIONS]
Toggle unicode input enabled/disabled in interactive shell
Lists/updates user attributes (example)
Usage: userattr [-s attribute value|attribute] [—user=user@email]
Usage: users [-s] [-h] [-n] [-d contact@email]
Prints MEGAcmd versioning and extra info
Usage: version [-l][-c]
Configures a WEBDAV server to serve a location in MEGA. You can use feature to make a folder in your MEGA account appear as a virtual drive, or to stream files. (example) (tutorial)
Usage: webdav [ [-d] remotepath [—port=PORT] [—public] [—tls —certificate=/path/to/certificate.pem —key=/path/to/certificate.key]]
Print account information (example)
signup confirm invite showpcr ipc users userattr example
login logout whoami mkdir cd get put du mount example
Источник