/*! @page command_line WiredTiger command line utility
WiredTiger includes a command line utility, \c wt.
@section Synopsis
wt [-Vv] [-C config] [-h directory] command [command-specific arguments]
@section Description
The \c wt tool is a command-line utility that provides access to
various pieces of the WiredTiger functionality.
@section Options
There are three global options:
@par -C config
Specify configuration strings for the ::wiredtiger_open function.
@par -h directory
Specify a database home directory.
@par -V
Display WiredTiger version and exit.
@par -v
Set verbose output.
Unless otherwise described by a \c wt command, the \c wt tool exits zero
on success and non-zero on error.
The \c wt tool supports several commands.
wt [-Vv] [-C config] [-h directory] create [-c config] uri
@subsection utility_create_options Options
The following are command-specific options for the \c create command:
@par -c
Include a configuration string to be passed to WT_SESSION::create.
wt [-Vv] [-C config] [-h directory] drop [-s snapshot] uri
@subsection utility_drop_options Options
The following are command-specific options for the \c drop command:
@par -s
Specify one more more snapshots to drop; the argument must be either the
name of a single snapshot to drop (a string), or a list containing one
of the following keys: "all" to drop all snapshots, "from=wt [-Vv] [-C config] [-h directory] dump [-rx] [-f output] [-s snapshot] uri
@subsection utility_dump_options Options
The following are command-specific options for the \c dump command:
@par -f
By default, the \c dump command output is written to the standard output;
the \c -f option re-directs the output to the specified file.
@par -r
Dump in reverse order, from largest to smallest.
@par -s
By default, the \c dump command opens the most recent snapshot of the object;
the \c -s option changes the \c dump command to open the named snapshot.
@par -x
Dump all characters in a hexadecimal encoding (the default is to leave
printable characters unencoded).
wt [-Vv] [-C config] [-h directory] dumpfile [-f output] file
@subsection utility_dumpfile_options Options
The following are command-specific options for the \c dumpfile command:
@par -f
By default, the \c dumpfile command output is written to the standard
output; the \c -f option re-directs the output to the specified
file.
wt [-Vv] [-C config] [-h directory] list [-sv] [uri]
@subsection utility_list_options Options
The following are command-specific options for the \c list command:
@par -s
If the \c -s option is specified, the object's snapshots are printed
in a human-readable format.
@par -v
If the \c -v option is specified, the object's complete schema table
value is printed.
wt [-Vv] [-C config] [-h directory] rename uri name
@subsection utility_rename_options Options
The \c rename command has no command-specific options.
wt [-Vv] [-C config] [-h directory] load [-ao] [-f input] [-r name] [uri configuration ...]
@subsection utility_load_options Options
The following are command-specific options for the \c load command:
@par -a
If the \c -a option is specified, record number keys in the input are
ignored and the data is appended to the object and assigned new record
number keys. The \c -a option is only applicable when loading an object
where the primary key is a record number.
@par -f
By default, the \c load command reads from the standard input; the \c
-f option reads the input from the specified file.
@par -r
By default, the \c load command uses the table or file name taken from
the input; the \c -r option renames the object.
@par -o
By default, input data will not overwrite existing data where the
key/value pair already exists in the object, and the attempt will fail;
the \c -o option causes the \c load command to overwrite already
existing data.
Additionally, \c uri and \c configuration pairs may be specified to the
\c load command. Each of these pairs may be used to modify the
configuration of an object in the table or file. For each of the pairs,
the configuration string will be appended to the WT_SESSION::create call
for the object matching the uri.
wt [-Vv] [-C config] [-h directory] loadtext [-f input]
@subsection utility_loadtext_options Options
The following are command-specific options for the \c loadtext command:
@par -f
By default, the \c loadtext command reads from the standard input; the
\c -f option reads the input from the specified file.
wt [-Vv] [-C config] [-h directory] printlog [-p] [-f output]
@subsection utility_printlog_options Options
The following are command-specific options for the \c printlog command:
@par -f
By default, the \c printlog command output is written to the standard
output; the \c -f option re-directs the output to the specified file.
@par -p
Display the log in a printable format.
wt [-Vv] [-C config] [-h directory] read uri key ...
@subsection utility_read_options Options
The \c read command has no command-specific options.
wt [-Vv] [-C config] [-h directory] salvage [-F force] uri
@subsection utility_salvage_options Options
The following are command-specific options for the \c salvage command:
@par -F
By default, salvage will refuse to salvage files that fail basic tests
(for example, files that don't appear to be in a WiredTiger format).
The \c -F option forces the salvage of the file, regardless.
wt [-Vv] [-C config] [-h directory] stat [uri]
@subsection utility_stat_options Options
The \c stat command has no command-specific options.
wt [-Vv] [-C config] [-h directory] upgrade uri
@subsection utility_upgrade_options Options
The \c upgrade command has no command-specific options.
wt [-Vv] [-C config] [-h directory] verify uri
@subsection utility_verify_options Options
The \c verify command has no command-specific options.
wt [-Vv] [-C config] [-h directory] write -a uri value ...
wt [-Vv] [-C config] [-h directory] write [-o] uri key value ...
@subsection utility_write_options Options
The following are command-specific options for the \c write command:
@par -a
Append each value as a new record in the object.
@par -o
By default, attempting to overwrite an already existing record will
fail. The \c -o option changes \c write to overwrite previously
existing records.
*/