1MEGATOOLS(7) Megatools Manual MEGATOOLS(7)
2
3
4
6 megatools - Mega.nz command line tools
7
9 megadf [--free|--total|--used] [--mb|--gb|-h]
10 megals [-e] [-h] [--header] [-l] [-R] [-n] [<remotepaths>...]
11 megaput [--no-progress] [--path <remotepath>] <paths>...
12 megamkdir <remotepaths>...
13 megamkdir /Contacts/<contactemail>
14 megaget [--no-progress] [--path <path>] <remotepaths>...
15 megaget --path - <remotefile>
16 megarm <remotepaths>...
17 megarm /Contacts/<contactemail>
18 megadl [--no-progress] [--path <path>] <links>...
19 megadl --path - <filelink>
20 megareg [--scripted] --register --email <email> --name <realname> --password <password>
21 megareg [--scripted] --verify <state> <link>
22
24 Megatools is a collection of programs for accessing Mega service from a
25 command line of your desktop or server.
26
27 Megatools allow you to copy individual files as well as entire
28 directory trees to and from the cloud. You can also perform streaming
29 downloads for example to preview videos and audio files, without
30 needing to download the entire file.
31
32 Megatools are robust and optimized for fast operation - as fast as Mega
33 servers allow. Memory requirements and CPU utilization are kept at
34 minimum.
35
36 You can register account using a megareg(1) tool, with the benefit of
37 having true control of your encryption keys.
38
39 Mega website can be found at http://mega.nz.
40
41 Megatools can be downloaded at http://megatools.megous.com
42
44 megareg(1)
45 Register and verify a new mega account
46
47 megadf(1)
48 Show your cloud storage space usage/quota
49
50 megals(1)
51 List all remote files
52
53 megamkdir(1)
54 Create remote directory
55
56 megarm(1)
57 Remove remote file or directory
58
59 megaput(1)
60 Upload individual files
61
62 megaget(1)
63 Download individual files
64
65 megadl(1)
66 Download file from a "public" Mega link (doesn’t require login)
67
68 megacopy(1)
69 Upload or download a directory tree
70
72 See megarc(5) for information about mega configuration file.
73
74 Each of the individual tools have help that can be accessed using
75 --help parameter.
76
78 If you modify cloud filesystem from the Mega.nz website or from another
79 computer, you’ll need to refresh your session cache. This can be done
80 by using the --reload option to any tool, or by waiting for a cache
81 timeout (default timeout is set to 10 minutes).
82
84 Mega.nz filesystem is represented as a tree of nodes of various types.
85 Nodes are identified by a 8 character node handles (eg. 7Fdi3ZjC).
86 Structure of the filesystem is not encrypted.
87
88 Megatools maps node tree structure to a traditional filesystem paths
89 (eg. /Root/SomeFile.DAT).
90
91 NOTE: By the nature of Mega.nz storage, several files in the directory
92 can have the same name. To allow access to such files, the names of
93 conflicting files are extended by appending dot and their node handle
94 like this:
95
96 /Root/conflictingfile
97 /Root/conflictingfile.7Fdi3ZjC
98 /Root/conflictingfile.mEU23aSD
99
100 You need to be aware of several special folders:
101
102 /Root
103 Writable directory representing the root of the filesystem.
104
105 /Trash
106 Trash directory where Mega.nz web client moves deleted files. This
107 directory is not used by megatools when removing files.
108
109 /Inbox
110 Not sure.
111
112 /Contacts
113 Directory containing subdirectories representing your contacts
114 list. If you want to add contacts to the list, simply create
115 subdirectory named after the contact you want to add.
116
117 /Contacts/<email>
118 Directories representing individual contacts in your contacts list.
119 These directories contain folders that others shared with you. All
120 shared files are read-only, at the moment.
121
123 megatools(7), megarc(5), megadf(1), megadl(1), megaget(1), megals(1),
124 megamkdir(1), megaput(1), megareg(1), megarm(1), megacopy(1).
125
127 Part of the megatools(7) suite.
128
130 Report bugs at https://github.com/megous/megatools or
131 megous@megous.com.
132
134 Megatools was written by Ondrej Jirman <megous@megous.com>, 2013-2016.
135
136 Official website is http://megatools.megous.com.
137
138
139
140megatools 1.10.2 04/15/2020 MEGATOOLS(7)