The looseleaf package provides a command-line interface for performing tasks such as
starting the server, checking configuration files, hashing passwords, and etc. The base
looseleaf command is broken into a number of subcommands which are documented
over the following sections.
All of the command-line functionality is implemented using the standard
looseleaf APIs.
All subcommands accept a --verbose parameter that may be set to one of
trace, debug, info,
warn, or error. This parameter sets the lower bound for
the severity of messages that will be logged. For example, at debug verbosity, only
messages of severity debug and above will be logged. Setting the verbosity to
trace
level effectively causes everything to be logged, and will produce large volumes of debugging output.
The
looseleaf command-line tool uses
jcommander
to parse command-line arguments, and therefore supports placing command-line arguments into a file,
one argument per line, and then referencing that file with
@. For example:
All subcommands, unless otherwise specified, yield an exit code of 0 on success, and
a non-zero exit code on failure.