1MEGAGET(1) Megatools Manual MEGAGET(1)
2
3
4
6 megaget - download files from your Mega.nz account
7
9 megaget [--no-progress] [--path <path>] <remotepaths>...
10 megaget --path - <remotefile>
11
13 Downloads files from your Mega.nz account.
14
15 NOTE: If you want to download entire directories, use megacopy(1).
16
18 --path <path>
19 Local path to download to. If this path is a directory, files are
20 placed into the directory. If this path doesn’t exist, and it’s
21 parent directory does, the file will be downloaded to a specified
22 file (this only works if you specify exactly one remote path).
23
24 If <path> is -, remote file will be streamed to stdout.
25
26 --no-progress
27 Disable download progress reporting. This is implied when
28 streaming.
29
30 --disable-resume
31 Don’t resume downloads from partially dowloaded file. Default is to
32 resume.
33
34 -u <email>, --username <email>
35 Account username (email)
36
37 -p <password>, --password <password>
38 Account password
39
40 --no-ask-password
41 Never ask interactively for a password
42
43 --reload
44 Reload filesystem cache
45
46 --limit-speed <speed>
47 Set maximum allowed upload and download speed in KiB/s. This option
48 overrides config file settings. 0 means no limit. When using
49 ParallelTransfers > 1, upload speed limit is applied to each
50 transfer individually.
51
52 --proxy <proxy>
53 Use proxy server to connect to mega.nz. This option overrides
54 config file settings. More information can be found in libcurl
55 documentation at https://curl.haxx.se/libcurl/c/CURLOPT_PROXY.html.
56 Some acceptable values are:
57
58 · none : Disable proxy if it was enabled in the config file.
59
60 · socks5://localhost:9050 : Local SOCKSv5 proxy server
61
62 · socks5h://localhost:9050 : Local SOCKSv5 proxy server with DNS
63 handled by the proxy
64
65 --config <path>
66 Load configuration from a file
67
68 --ignore-config-file
69 Disable loading .megarc
70
71 --debug [<options>]
72 Enable debugging of various aspects of the megatools operation. You
73 may enable multiple debugging options separated by commas. (eg.
74 --debug api,fs)
75
76 Available options are:
77
78 · http: Dump HTTP request/response details (can be used to debug
79 connection/proxy issues)
80
81 · api: Dump Mega.nz API calls
82
83 · fs: Dump Mega.nz filesystem (may require --reload to actually
84 print something)
85
86 · cache: Dump cache contents
87
88 · tman: Dump transfer manager events
89
90 --version
91 Show version information
92
93 <remotepaths>
94 One or more remote files to download.
95
96 <remotefile>
97 Remote path to a single file to stream.
98
100 · Download file to the current directory:
101
102 $ megals /Root
103
104 /Root
105 /Root/README
106
107 $ megaget /Root/README
108 $ ls
109
110 README
111
113 Mega.nz filesystem is represented as a tree of nodes of various types.
114 Nodes are identified by a 8 character node handles (eg. 7Fdi3ZjC).
115 Structure of the filesystem is not encrypted.
116
117 Megatools maps node tree structure to a traditional filesystem paths
118 (eg. /Root/SomeFile.DAT).
119
120 NOTE: By the nature of Mega.nz storage, several files in the directory
121 can have the same name. To allow access to such files, the names of
122 conflicting files are extended by appending dot and their node handle
123 like this:
124
125 /Root/conflictingfile
126 /Root/conflictingfile.7Fdi3ZjC
127 /Root/conflictingfile.mEU23aSD
128
129 You need to be aware of several special folders:
130
131 /Root
132 Writable directory representing the root of the filesystem.
133
134 /Trash
135 Trash directory where Mega.nz web client moves deleted files. This
136 directory is not used by megatools when removing files.
137
138 /Inbox
139 Not sure.
140
141 /Contacts
142 Directory containing subdirectories representing your contacts
143 list. If you want to add contacts to the list, simply create
144 subdirectory named after the contact you want to add.
145
146 /Contacts/<email>
147 Directories representing individual contacts in your contacts list.
148 These directories contain folders that others shared with you. All
149 shared files are read-only, at the moment.
150
152 megatools(7), megarc(5), megadf(1), megadl(1), megaget(1), megals(1),
153 megamkdir(1), megaput(1), megareg(1), megarm(1), megacopy(1).
154
156 Part of the megatools(7) suite.
157
159 Report bugs at https://github.com/megous/megatools or
160 megous@megous.com.
161
163 Megatools was written by Ondrej Jirman <megous@megous.com>, 2013-2016.
164
165 Official website is http://megatools.megous.com.
166
167
168
169megatools 1.10.2 04/15/2020 MEGAGET(1)