Monotone has a large number of commands. To help navigate through them all, commands are grouped into logical categories. In addition, there are global options that apply to all commands.
Many command options come in pairs that affect the same value. For example,
mtn log takes a brief option; this can be reversed by
no-brief. This is convenient when building command strings
mtn log --brief --no-brief is the same as
It also helps when setting options in the
get_default_command_options hook; those options can be
overridden on the command line. For example, if
get_default_command_options specifies brief for
log, you can override that with
Command names can be abbreviated to the shortest unique strings. Some
commands also have short aliases, such as
The command descriptions describe the most important options for each
command, and only one of each pair of options. For a complete list of
options, see the online help (
mtn help cmd), or the manpage.
Many options can be specified by a single character; see the online help for those.
The Lua hook
get_default_command_options can change the
default value for any option.
Revision arguments to commands (but not to automate commands) may be selectors (see Selectors) or hex ids.
|• Global and Common Options:||Options that affect all or many commands|
|• Tree:||Operations on tree states in your database|
|• Workspace:||Operations on your workspace|
|• Network:||Communication with the network|
|• Informative:||Production of descriptive reports|
|• Review:||Reviewing revisions|
|• Variables:||Managing persistent variables|
|• Key and Cert:||Keys, Certificates|
|• Packet I/O:||Production or consumption of packets|
|• Database:||Manipulation of your database as a whole|
|• Automation:||Running monotone from other programs|
|• VCS:||Importing and exporting to other version control systems|