--- title: preserves-tool --- The `preserves-tool` program is a swiss army knife for working with Preserves documents. preserves-tools 1.0.0 USAGE: preserves-tool FLAGS: -h, --help Print help information -V, --version Print version information SUBCOMMANDS: completions convert help Print this message or the help of the given subcommand(s) quote ## Installation The tool is [written in Rust](https://crates.io/crates/preserves-tools). [Install `cargo`.](https://doc.rust-lang.org/cargo/getting-started/installation.html) Then, `cargo install preserves-tools`. ## Subcommands The tool includes three subcommands. ### `preserves-tool convert` This is the main tool. It can - translate between the various Preserves text and binary document syntaxes; - strip annotations; - pretty-print; and - break down and filter documents using [preserves path]({{ site.baseurl }}{% link preserves-path.md %}) selectors. #### Usage preserves-tool-convert USAGE: preserves-tool convert [FLAGS] [OPTIONS] FLAGS: --collect --escape-spaces -h, --help Print help information -V, --version Print version information OPTIONS: -i, --input-format [default: auto-detect] [possible values: auto-detect, text, binary] --indent [default: on] [possible values: disabled, no, n, off, 0, false, enabled, yes, y, on, 1, true] --limit -o, --output-format [default: text] [possible values: text, binary, unquoted] --read-annotations [default: on] [possible values: disabled, no, n, off, 0, false, enabled, yes, y, on, 1, true] --select