mirror of
https://github.com/meganz/MEGAcmd
synced 2025-08-31 22:05:10 +00:00
Update command docsfollowing latest changes
This commit is contained in:
132
UserGuide.md
132
UserGuide.md
@@ -176,82 +176,82 @@ Commands referring to a [remote path](#remote-path) are talking about a file in
|
|||||||
Verbosity: You can increase the amount of information given by any command by passing `-v` (`-vv`, `-vvv`, ...)
|
Verbosity: You can increase the amount of information given by any command by passing `-v` (`-vv`, `-vvv`, ...)
|
||||||
|
|
||||||
### Account / Contacts
|
### Account / Contacts
|
||||||
* [`signup`](docs/commands/signup.md)`email password [--name="Your Name"]` Register as user with a given email
|
* [`signup`](contrib/docs/commands/signup.md)`email password [--name="Your Name"]` Register as user with a given email
|
||||||
* [`confirm`](docs/commands/confirm.md)`link email password` Confirm an account using the link provided after the "signup" process.
|
* [`confirm`](contrib/docs/commands/confirm.md)`link email password` Confirm an account using the link provided after the "signup" process.
|
||||||
* [`invite`](docs/commands/invite.md)`[-d|-r] dstemail [--message="MESSAGE"]` Invites a contact / deletes an invitation
|
* [`invite`](contrib/docs/commands/invite.md)`[-d|-r] dstemail [--message="MESSAGE"]` Invites a contact / deletes an invitation
|
||||||
* [`showpcr`](docs/commands/showpcr.md)`[--in | --out] [--time-format=FORMAT]` Shows incoming and outgoing contact requests.
|
* [`showpcr`](contrib/docs/commands/showpcr.md)`[--in | --out] [--time-format=FORMAT]` Shows incoming and outgoing contact requests.
|
||||||
* [`ipc`](docs/commands/ipc.md)`email|handle -a|-d|-i` Manages contact incoming invitations.
|
* [`ipc`](contrib/docs/commands/ipc.md)`email|handle -a|-d|-i` Manages contact incoming invitations.
|
||||||
* [`users`](docs/commands/users.md)`[-s] [-h] [-n] [-d contact@email] [--time-format=FORMAT] [--verify|--unverify contact@email.com] [--help-verify [contact@email.com]]` List contacts
|
* [`users`](contrib/docs/commands/users.md)`[-s] [-h] [-n] [-d contact@email] [--time-format=FORMAT] [--verify|--unverify contact@email.com] [--help-verify [contact@email.com]]` List contacts
|
||||||
* [`userattr`](docs/commands/userattr.md)`[-s attribute value|attribute|--list] [--user=user@email]` Lists/updates user attributes
|
* [`userattr`](contrib/docs/commands/userattr.md)`[-s attribute value|attribute|--list] [--user=user@email]` Lists/updates user attributes
|
||||||
* [`passwd`](docs/commands/passwd.md)`[-f] [--auth-code=XXXX] newpassword` Modifies user password
|
* [`passwd`](contrib/docs/commands/passwd.md)`[-f] [--auth-code=XXXX] newpassword` Modifies user password
|
||||||
* [`masterkey`](docs/commands/masterkey.md)`pathtosave` Shows your master key.
|
* [`masterkey`](contrib/docs/commands/masterkey.md)`pathtosave` Shows your master key.
|
||||||
|
|
||||||
### Login / Logout
|
### Login / Logout
|
||||||
* [`login`](docs/commands/login.md)`[--auth-code=XXXX] email password | exportedfolderurl#key [--auth-key=XXXX] | passwordprotectedlink [--password=PASSWORD] | session` Logs into a MEGA account
|
* [`login`](contrib/docs/commands/login.md)`[--auth-code=XXXX] email password | exportedfolderurl#key [--auth-key=XXXX] | passwordprotectedlink [--password=PASSWORD] | session` Logs into a MEGA account or folder link. You can only log into one entity at a time.
|
||||||
* [`logout`](docs/commands/logout.md)`[--keep-session]` Logs out
|
* [`logout`](contrib/docs/commands/logout.md)`[--keep-session]` Logs out
|
||||||
* [`whoami`](docs/commands/whoami.md)`[-l]` Prints info of the user
|
* [`whoami`](contrib/docs/commands/whoami.md)`[-l]` Prints info of the user
|
||||||
* [`session`](docs/commands/session.md) Prints (secret) session ID
|
* [`session`](contrib/docs/commands/session.md) Prints (secret) session ID
|
||||||
* [`killsession`](docs/commands/killsession.md)`[-a | sessionid1 sessionid2 ... ]` Kills a session of current user.
|
* [`killsession`](contrib/docs/commands/killsession.md)`[-a | sessionid1 sessionid2 ... ]` Kills a session of current user.
|
||||||
|
|
||||||
### Browse
|
### Browse
|
||||||
* [`cd`](docs/commands/cd.md)`[remotepath]` Changes the current remote folder
|
* [`cd`](contrib/docs/commands/cd.md)`[remotepath]` Changes the current remote folder
|
||||||
* [`lcd`](docs/commands/lcd.md)`[localpath]` Changes the current local folder for the interactive console
|
* [`lcd`](contrib/docs/commands/lcd.md)`[localpath]` Changes the current local folder for the interactive console
|
||||||
* [`ls`](docs/commands/ls.md)`[-halRr] [--show-handles] [--tree] [--versions] [remotepath] [--use-pcre] [--show-creation-time] [--time-format=FORMAT]` Lists files in a remote path
|
* [`ls`](contrib/docs/commands/ls.md)`[-halRr] [--show-handles] [--tree] [--versions] [remotepath] [--use-pcre] [--show-creation-time] [--time-format=FORMAT]` Lists files in a remote path
|
||||||
* [`pwd`](docs/commands/pwd.md) Prints the current remote folder
|
* [`pwd`](contrib/docs/commands/pwd.md) Prints the current remote folder
|
||||||
* [`lpwd`](docs/commands/lpwd.md) Prints the current local folder for the interactive console
|
* [`lpwd`](contrib/docs/commands/lpwd.md) Prints the current local folder for the interactive console
|
||||||
* [`attr`](docs/commands/attr.md)`remotepath [--force-non-officialficial] [-s attribute value|-d attribute [--print-only-value]` Lists/updates node attributes.
|
* [`attr`](contrib/docs/commands/attr.md)`remotepath [--force-non-officialficial] [-s attribute value|-d attribute [--print-only-value]` Lists/updates node attributes.
|
||||||
* [`du`](docs/commands/du.md)`[-h] [--versions] [remotepath remotepath2 remotepath3 ... ] [--use-pcre]` Prints size used by files/folders
|
* [`du`](contrib/docs/commands/du.md)`[-h] [--versions] [remotepath remotepath2 remotepath3 ... ] [--use-pcre]` Prints size used by files/folders
|
||||||
* [`find`](docs/commands/find.md)`[remotepath] [-l] [--pattern=PATTERN] [--type=d|f] [--mtime=TIMECONSTRAIN] [--size=SIZECONSTRAIN] [--use-pcre] [--time-format=FORMAT] [--show-handles|--print-only-handles]` Find nodes matching a pattern
|
* [`find`](contrib/docs/commands/find.md)`[remotepath] [-l] [--pattern=PATTERN] [--type=d|f] [--mtime=TIMECONSTRAIN] [--size=SIZECONSTRAIN] [--use-pcre] [--time-format=FORMAT] [--show-handles|--print-only-handles]` Find nodes matching a pattern
|
||||||
* [`mount`](docs/commands/mount.md) Lists all the root nodes
|
* [`mount`](contrib/docs/commands/mount.md) Lists all the root nodes
|
||||||
|
|
||||||
### Moving / Copying files
|
### Moving / Copying files
|
||||||
* [`mkdir`](docs/commands/mkdir.md)`[-p] remotepath` Creates a directory or a directories hierarchy
|
* [`mkdir`](contrib/docs/commands/mkdir.md)`[-p] remotepath` Creates a directory or a directories hierarchy
|
||||||
* [`cp`](docs/commands/cp.md)`[--use-pcre] srcremotepath [srcremotepath2 srcremotepath3 ..] dstremotepath|dstemail` : Copies files/folders into a new location (all remotes)
|
* [`cp`](contrib/docs/commands/cp.md)`[--use-pcre] srcremotepath [srcremotepath2 srcremotepath3 ..] dstremotepath|dstemail` : Copies files/folders into a new location (all remotes)
|
||||||
* [`put`](docs/commands/put.md)`[-c] [-q] [--ignore-quota-warn] localfile [localfile2 localfile3 ...] [dstremotepath]` Uploads files/folders to a remote folder
|
* [`put`](contrib/docs/commands/put.md)`[-c] [-q] [--ignore-quota-warn] localfile [localfile2 localfile3 ...] [dstremotepath]` Uploads files/folders to a remote folder
|
||||||
* [`get`](docs/commands/get.md)`[-m] [-q] [--ignore-quota-warn] [--use-pcre] [--password=PASSWORD] exportedlink|remotepath [localpath]` Downloads a remote file/folder or a public link
|
* [`get`](contrib/docs/commands/get.md)`[-m] [-q] [--ignore-quota-warn] [--use-pcre] [--password=PASSWORD] exportedlink|remotepath [localpath]` Downloads a remote file/folder or a public link
|
||||||
* [`preview`](docs/commands/preview.md)`[-s] remotepath localpath` To download/upload the preview of a file.
|
* [`preview`](contrib/docs/commands/preview.md)`[-s] remotepath localpath` To download/upload the preview of a file.
|
||||||
* [`thumbnail`](docs/commands/thumbnail.md)`[-s] remotepath localpath` To download/upload the thumbnail of a file.
|
* [`thumbnail`](contrib/docs/commands/thumbnail.md)`[-s] remotepath localpath` To download/upload the thumbnail of a file.
|
||||||
* [`mv`](docs/commands/mv.md)`srcremotepath [--use-pcre] [srcremotepath2 srcremotepath3 ..] dstremotepath` Moves file(s)/folder(s) into a new location (all remotes)
|
* [`mv`](contrib/docs/commands/mv.md)`srcremotepath [--use-pcre] [srcremotepath2 srcremotepath3 ..] dstremotepath` Moves file(s)/folder(s) into a new location (all remotes)
|
||||||
* [`rm`](docs/commands/rm.md)`[-r] [-f] [--use-pcre] remotepath` Deletes a remote file/folder
|
* [`rm`](contrib/docs/commands/rm.md)`[-r] [-f] [--use-pcre] remotepath` Deletes a remote file/folder
|
||||||
* [`transfers`](docs/commands/transfers.md)`[-c TAG|-a] | [-r TAG|-a] | [-p TAG|-a] [--only-downloads | --only-uploads] [SHOWOPTIONS]` List or operate with transfers
|
* [`transfers`](contrib/docs/commands/transfers.md)`[-c TAG|-a] | [-r TAG|-a] | [-p TAG|-a] [--only-downloads | --only-uploads] [SHOWOPTIONS]` List or operate with transfers
|
||||||
* [`speedlimit`](docs/commands/speedlimit.md)`[-u|-d] [-h] [NEWLIMIT]` Displays/modifies upload/download rate limits
|
* [`speedlimit`](contrib/docs/commands/speedlimit.md)`[-u|-d] [-h] [NEWLIMIT]` Displays/modifies upload/download rate limits
|
||||||
* [`sync`](docs/commands/sync.md)`[localpath dstremotepath| [-dsr] [ID|localpath]` Controls synchronizations.
|
* [`sync`](contrib/docs/commands/sync.md)`[localpath dstremotepath| [-dsr] [ID|localpath]` Controls synchronizations.
|
||||||
* [`exclude`](docs/commands/exclude.md)`[(-a|-d) pattern1 pattern2 pattern3]` Manages exclusions in syncs.
|
* [`exclude`](contrib/docs/commands/exclude.md)`[(-a|-d) pattern1 pattern2 pattern3]` Manages exclusions in syncs.
|
||||||
* [`backup`](docs/commands/backup.md)`(localpath remotepath --period="PERIODSTRING" --num-backups=N | [-lhda] [TAG|localpath] [--period="PERIODSTRING"] [--num-backups=N]) [--time-format=FORMAT]` Controls backups
|
* [`backup`](contrib/docs/commands/backup.md)`(localpath remotepath --period="PERIODSTRING" --num-backups=N | [-lhda] [TAG|localpath] [--period="PERIODSTRING"] [--num-backups=N]) [--time-format=FORMAT]` Controls backups
|
||||||
|
|
||||||
### Sharing (your own files, of course, without infringing any copyright)
|
### Sharing (your own files, of course, without infringing any copyright)
|
||||||
* [`export`](docs/commands/export.md)`[-d|-a [--writable] [--mega-hosted] [--password=PASSWORD] [--expire=TIMEDELAY] [-f]] [remotepath] [--use-pcre] [--time-format=FORMAT]` Prints/Modifies the status of current exports
|
* [`export`](contrib/docs/commands/export.md)`[-d|-a [--writable] [--mega-hosted] [--password=PASSWORD] [--expire=TIMEDELAY] [-f]] [remotepath] [--use-pcre] [--time-format=FORMAT]` Prints/Modifies the status of current exports
|
||||||
* [`import`](docs/commands/import.md)`exportedlink [--password=PASSWORD] [remotepath]` Imports the contents of a remote link into user's cloud
|
* [`import`](contrib/docs/commands/import.md)`exportedlink [--password=PASSWORD] [remotepath]` Imports the contents of a remote link into user's cloud
|
||||||
* [`share`](docs/commands/share.md)`[-p] [-d|-a --with=user@email.com [--level=LEVEL]] [remotepath] [--use-pcre] [--time-format=FORMAT]` Prints/Modifies the status of current shares
|
* [`share`](contrib/docs/commands/share.md)`[-p] [-d|-a --with=user@email.com [--level=LEVEL]] [remotepath] [--use-pcre] [--time-format=FORMAT]` Prints/Modifies the status of current shares
|
||||||
* [`webdav`](docs/commands/webdav.md)`[-d (--all | remotepath ) ] [ remotepath [--port=PORT] [--public] [--tls --certificate=/path/to/certificate.pem --key=/path/to/certificate.key]] [--use-pcre]` Configures a WEBDAV server to serve a location in MEGA
|
* [`webdav`](contrib/docs/commands/webdav.md)`[-d (--all | remotepath ) ] [ remotepath [--port=PORT] [--public] [--tls --certificate=/path/to/certificate.pem --key=/path/to/certificate.key]] [--use-pcre]` Configures a WEBDAV server to serve a location in MEGA
|
||||||
|
|
||||||
### Misc.
|
### Misc.
|
||||||
* [`autocomplete`](docs/commands/autocomplete.md)`[dos | unix]` Modifes how tab completion operates.
|
* [`autocomplete`](contrib/docs/commands/autocomplete.md)`[dos | unix]` Modifes how tab completion operates.
|
||||||
* [`cancel`](docs/commands/cancel.md) Cancels your MEGA account
|
* [`cancel`](contrib/docs/commands/cancel.md) Cancels your MEGA account
|
||||||
* [`cat`](docs/commands/cat.md)`remotepath1 remotepath2 ...` Prints the contents of remote files
|
* [`cat`](contrib/docs/commands/cat.md)`remotepath1 remotepath2 ...` Prints the contents of remote files
|
||||||
* [`clear`](docs/commands/clear.md) Clear screen
|
* [`clear`](contrib/docs/commands/clear.md) Clear screen
|
||||||
* [`codepage`](docs/commands/codepage.md)`[N [M]]` Switches the codepage used to decide which characters show on-screen.
|
* [`codepage`](contrib/docs/commands/codepage.md)`[N [M]]` Switches the codepage used to decide which characters show on-screen.
|
||||||
* [`confirmcancel`](docs/commands/confirmcancel.md)`link password` Confirms the cancellation of your MEGA account
|
* [`confirmcancel`](contrib/docs/commands/confirmcancel.md)`link password` Confirms the cancellation of your MEGA account
|
||||||
* [`debug`](docs/commands/debug.md) Enters debugging mode (HIGHLY VERBOSE)
|
* [`debug`](contrib/docs/commands/debug.md) Enters debugging mode (HIGHLY VERBOSE)
|
||||||
* [`deleteversions`](docs/commands/deleteversions.md)`[-f] (--all | remotepath1 remotepath2 ...) [--use-pcre]` Deletes previous versions.
|
* [`deleteversions`](contrib/docs/commands/deleteversions.md)`[-f] (--all | remotepath1 remotepath2 ...) [--use-pcre]` Deletes previous versions.
|
||||||
* [`df`](docs/commands/df.md)`[-h]` Shows storage info
|
* [`df`](contrib/docs/commands/df.md)`[-h]` Shows storage info
|
||||||
* [`errorcode`](docs/commands/errorcode.md)`number` Translate error code into string
|
* [`errorcode`](contrib/docs/commands/errorcode.md)`number` Translate error code into string
|
||||||
* [`exit`](docs/commands/exit.md)`[--only-shell]` Quits MEGAcmd
|
* [`exit`](contrib/docs/commands/exit.md)`[--only-shell]` Quits MEGAcmd
|
||||||
* [`ftp`](docs/commands/ftp.md)`[-d ( --all | remotepath ) ] [ remotepath [--port=PORT] [--data-ports=BEGIN-END] [--public] [--tls --certificate=/path/to/certificate.pem --key=/path/to/certificate.key]] [--use-pcre]` Configures a FTP server to serve a location in MEGA
|
* [`ftp`](contrib/docs/commands/ftp.md)`[-d ( --all | remotepath ) ] [ remotepath [--port=PORT] [--data-ports=BEGIN-END] [--public] [--tls --certificate=/path/to/certificate.pem --key=/path/to/certificate.key]] [--use-pcre]` Configures a FTP server to serve a location in MEGA
|
||||||
* [`graphics`](docs/commands/graphics.md)`[on|off]` Shows if special features related to images and videos are enabled.
|
* [`graphics`](contrib/docs/commands/graphics.md)`[on|off]` Shows if special features related to images and videos are enabled.
|
||||||
* [`help`](docs/commands/help.md)`[-f|-ff|--non-interactive|--upgrade|--paths] [--show-all-options]` Prints list of commands
|
* [`help`](contrib/docs/commands/help.md)`[-f|-ff|--non-interactive|--upgrade|--paths] [--show-all-options]` Prints list of commands
|
||||||
* [`https`](docs/commands/https.md)`[on|off]` Shows if HTTPS is used for transfers. Use "https on" to enable it.
|
* [`https`](contrib/docs/commands/https.md)`[on|off]` Shows if HTTPS is used for transfers. Use "https on" to enable it.
|
||||||
* [`info`](docs/commands/info.md)`remotepath1 remotepath2 ...` Prints media info of remote files
|
* [`info`](contrib/docs/commands/info.md)`remotepath1 remotepath2 ...` Prints media info of remote files
|
||||||
* [`log`](docs/commands/log.md)`[-sc] level` Prints/Modifies the current logs level
|
* [`log`](contrib/docs/commands/log.md)`[-sc] level` Prints/Modifies the current logs level
|
||||||
* [`permissions`](docs/commands/permissions.md)`[(--files|--folders) [-s XXX]]` Shows/Establish default permissions for files and folders created by MEGAcmd.
|
* [`permissions`](contrib/docs/commands/permissions.md)`[(--files|--folders) [-s XXX]]` Shows/Establish default permissions for files and folders created by MEGAcmd.
|
||||||
* [`proxy`](docs/commands/proxy.md)`[URL|--auto|--none] [--username=USERNAME --password=PASSWORD]` Show or sets proxy configuration
|
* [`proxy`](contrib/docs/commands/proxy.md)`[URL|--auto|--none] [--username=USERNAME --password=PASSWORD]` Show or sets proxy configuration
|
||||||
* [`psa`](docs/commands/psa.md)`[--discard]` Shows the next available Public Service Announcement (PSA)
|
* [`psa`](contrib/docs/commands/psa.md)`[--discard]` Shows the next available Public Service Announcement (PSA)
|
||||||
* [`quit`](docs/commands/quit.md)`[--only-shell]` Quits MEGAcmd
|
* [`quit`](contrib/docs/commands/quit.md)`[--only-shell]` Quits MEGAcmd
|
||||||
* [`reload`](docs/commands/reload.md) Forces a reload of the remote files of the user
|
* [`reload`](contrib/docs/commands/reload.md) Forces a reload of the remote files of the user
|
||||||
* [`tree`](docs/commands/tree.md)`[remotepath]` Lists files in a remote path in a nested tree decorated output
|
* [`tree`](contrib/docs/commands/tree.md)`[remotepath]` Lists files in a remote path in a nested tree decorated output
|
||||||
* [`unicode`](docs/commands/unicode.md) Toggle unicode input enabled/disabled in interactive shell
|
* [`unicode`](contrib/docs/commands/unicode.md) Toggle unicode input enabled/disabled in interactive shell
|
||||||
* [`update`](docs/commands/update.md)`[--auto=on|off|query]` Updates MEGAcmd
|
* [`update`](contrib/docs/commands/update.md)`[--auto=on|off|query]` Updates MEGAcmd
|
||||||
* [`version`](docs/commands/version.md)`[-l][-c]` Prints MEGAcmd versioning and extra info
|
* [`version`](contrib/docs/commands/version.md)`[-l][-c]` Prints MEGAcmd versioning and extra info
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
Some examples of typical MEGAcmd workflows and commands.
|
Some examples of typical MEGAcmd workflows and commands.
|
||||||
|
@@ -7,10 +7,10 @@ Options:
|
|||||||
--use-pcre The provided path will use Perl Compatible Regular Expressions (PCRE)
|
--use-pcre The provided path will use Perl Compatible Regular Expressions (PCRE)
|
||||||
-a Adds an export.
|
-a Adds an export.
|
||||||
Returns an error if the export already exists.
|
Returns an error if the export already exists.
|
||||||
To modify an existing export (e.g., to change expiration time, password, etc.), it must be deleted and then re-added.
|
To modify an existing export (e.g. to change expiration time, password, etc.), it must be deleted and then re-added.
|
||||||
--writable Makes the export writable.
|
--writable Turn an export folder into a writable folder link. You can use writable folder links to share and receive files from anyone; including people who don’t have a MEGA account.
|
||||||
Only works on folders; files are considered immutable. Different versions of the same file will have different export links.
|
This type of link is the same as a "file request" link that can be created through the webclient, except that writable folder links are not write-only. Writable folder links and file requests cannot be mixed, as they use different encryption schemes.
|
||||||
The AuthToken shown has the following format <handle>#<key>:<auth-key>.
|
The auth-key shown has the following format <handle>#<key>:<auth-key>. The auth-key must be provided at login, otherwise you will log into this link with read-only privileges. See "mega-login --help" for more details about logging into links.
|
||||||
--mega-hosted The share key of this specific folder will be shared with MEGA.
|
--mega-hosted The share key of this specific folder will be shared with MEGA.
|
||||||
This is intended to be used for folders accessible through MEGA's S4 service.
|
This is intended to be used for folders accessible through MEGA's S4 service.
|
||||||
Encryption will occur nonetheless within MEGA's S4 service.
|
Encryption will occur nonetheless within MEGA's S4 service.
|
||||||
|
@@ -1,17 +1,18 @@
|
|||||||
### login
|
### login
|
||||||
Logs into a MEGA account
|
Logs into a MEGA account or folder link. You can only log into one entity at a time.
|
||||||
|
|
||||||
Usage: `login [--auth-code=XXXX] email password | exportedfolderurl#key [--auth-key=XXXX] | passwordprotectedlink [--password=PASSWORD] | session`
|
Usage: `login [--auth-code=XXXX] email password | exportedfolderurl#key [--auth-key=XXXX] | passwordprotectedlink [--password=PASSWORD] | session`
|
||||||
<pre>
|
<pre>
|
||||||
You can log in either with email and password, with session ID,
|
Logging into a MEGA account:
|
||||||
or into a folder (an exported/public folder)
|
You can log into a MEGA account by providing either a session ID or a username and password. A session ID simply identifies a session that you have previously logged in with using a username and password; logging in with a session ID simply resumes that session. If this is your first time logging in, you will need to do so with a username and password.
|
||||||
If logging into a folder indicate url#key (or pasword protected link)
|
|
||||||
Pass --auth-key=XXXX with the authentication key (last part of the Auth Token)
|
|
||||||
to be able to write into the accessed folder
|
|
||||||
|
|
||||||
Please, avoid using passwords containing " or '.
|
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
--auth-code=XXXX Two-factor Authentication code. More info: https://mega.nz/blog_48
|
--auth-code=XXXXXX: If you're logging in using a username and password, and this account has multifactor authentication (MFA) enabled, then this option allows you to pass the MFA token in directly rather than being prompted for it later on. For more information on this topic, please visit https://mega.nz/blog_48.
|
||||||
--password=XXXX Password to decrypt password protected links (See "mega-export --help")
|
|
||||||
|
Logging into a MEGA folder link (an exported/public folder):
|
||||||
|
MEGA folder links have the form URL#KEY. To log into one, simply execute the login command with the link.
|
||||||
|
Options:
|
||||||
|
--password=PASSWORD: If the link is a password protected link, then this option can be used to pass in the password for that link.
|
||||||
|
--auth-key=AUTHKEY: If the link is a writable folder link, then this option allows you to log in with write privileges. Without this option, you will log into the link with read access only.
|
||||||
|
|
||||||
|
For more information about MEGA folder links, see "mega-export --help".
|
||||||
</pre>
|
</pre>
|
||||||
|
@@ -3117,18 +3117,19 @@ void printAvailableCommands(int extensive = 0, bool showAllOptions = false)
|
|||||||
const size_t third = (size / 3) + ((size % 3 > 0) ? 1 : 0);
|
const size_t third = (size / 3) + ((size % 3 > 0) ? 1 : 0);
|
||||||
const size_t twoThirds = 2 * (size / 3) + size % 3;
|
const size_t twoThirds = 2 * (size / 3) + size % 3;
|
||||||
|
|
||||||
auto it = validCommandSet.begin();
|
// iterators for each column
|
||||||
auto it2 = std::next(it, third);
|
auto it1 = validCommandSet.begin();
|
||||||
auto it3 = std::next(it, twoThirds);
|
auto it2 = std::next(it1, third);
|
||||||
|
auto it3 = std::next(it1, twoThirds);
|
||||||
|
|
||||||
for (; it != validCommandSet.end() && it2 != validCommandSet.end() && it3 != validCommandSet.end(); ++it, ++it2, ++it3)
|
for (; it1 != validCommandSet.end() && it2 != validCommandSet.end() && it3 != validCommandSet.end(); ++it1, ++it2, ++it3)
|
||||||
{
|
{
|
||||||
OUTSTREAM << " " << getLeftAlignedStr(*it, 20) << getLeftAlignedStr(*it2, 20) << " " << *it3 << endl;
|
OUTSTREAM << " " << getLeftAlignedStr(*it1, 20) << getLeftAlignedStr(*it2, 20) << " " << *it3 << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (size % 3)
|
if (size % 3)
|
||||||
{
|
{
|
||||||
OUTSTREAM << " " << getLeftAlignedStr(*it, 20);
|
OUTSTREAM << " " << getLeftAlignedStr(*it1, 20);
|
||||||
if (size % 3 > 1 )
|
if (size % 3 > 1 )
|
||||||
{
|
{
|
||||||
OUTSTREAM << getLeftAlignedStr(*it2, 20);
|
OUTSTREAM << getLeftAlignedStr(*it2, 20);
|
||||||
|
Reference in New Issue
Block a user