/*! @page command_line WiredTiger command line utility
WiredTiger includes a command line utility, \c wt.
@section util_global_synopsis Synopsis
wt [-Vv] [-C config] [-h directory] command [command-specific arguments]
@section util_global_description Description
The \c wt tool is a command-line utility that provides access to
various pieces of the WiredTiger functionality.
@section util_global_options 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] backup [-t uri] directory
@subsection util_backup_options Options
The following are command-specific options for the \c backup command:
@par -t uri
By default, the \c backup command does a hot backup of the entire
database; the \c -t option changes the \c backup command to do a hot
backup of only the named data sources.
wt [-Vv] [-C config] [-h directory] compact uri
@subsection util_compact_options Options
The \c compact command has no command-specific options.
wt [-Vv] [-C config] [-h directory] create [-c config] uri
@subsection util_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 uri
@subsection util_drop_options Options
The \c drop command has no command-specific options.
wt [-Vv] [-C config] [-h directory] dump [-rx] [-c checkpoint] [-f output] uri
@subsection util_dump_options Options
The following are command-specific options for the \c dump command:
@par -c
By default, the \c dump command opens the most recent version of the data
source; the \c -c option changes the \c dump command to open the named
checkpoint.
@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 key to smallest.
@par -x
Dump all characters in a hexadecimal encoding (the default is to leave
printable characters unencoded).
wt [-Vv] [-C config] [-h directory] list [-cv] [uri]
@subsection util_list_options Options
The following are command-specific options for the \c list command:
@par -c
If the \c -c option is specified, the data source's checkpoints are printed
in a human-readable format.
@par -v
If the \c -v option is specified, the data source's complete schema table
value is printed.
wt [-Vv] [-C config] [-h directory] load [-an] [-f input] [-r name] [uri configuration ...]
@subsection util_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 data source and assigned new record
number keys. The \c -a option is only applicable when loading into a
column store.
@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 -n
By default, input data will overwrite existing data where the key/value
pair already exists in the data source; the \c -n option causes the \c
load command to fail if there's an attempt to overwrite already existing
data.
@par -r
By default, the \c load command uses the table or file name taken from
the input; the \c -r option renames the data source.
Additionally, \c uri and \c configuration pairs may be specified to the
\c load command. Each of these pairs will be appended to the configuration
string from the dump header passed to the WT_SESSION::create call.
wt [-Vv] [-C config] [-h directory] loadtext [-f input]
@subsection util_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 util_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 util_read_options Options
The \c read command has no command-specific options.
wt [-Vv] [-C config] [-h directory] rename uri name
@subsection util_rename_options Options
The \c rename command has no command-specific options.
wt [-Vv] [-C config] [-h directory] salvage [-F force] uri
@subsection util_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 [-a] [uri]
@subsection util_stat_options Options
The following are command-specific options for the \c stat command:
@par -a
Include all statistics in the output (equivalent to passing
statistics=(all)) to WT_SESSION::open_cursor.
wt [-Vv] [-C config] [-h directory] upgrade uri
@subsection util_upgrade_options Options
The \c upgrade command has no command-specific options.
wt [-Vv] [-C config] [-h directory] verify uri
@subsection util_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 util_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 data source.
@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.
*/