## Keyboard shortcuts

Press `←` or `→` to navigate between chapters

Press `S` or `/` to search in the book

Press `?` to show this help

Press `Esc` to hide this help

# Command-line tool

The `mdbook` command-line tool is used to create and build books. After you have installed `mdbook`, you can run the `mdbook help` command in your terminal to view the available commands.

This following sections provide in-depth information on the different commands available.

- `mdbook init <directory>` — Creates a new book with minimal boilerplate to start with.
- `mdbook build` — Renders the book.
- `mdbook watch` — Rebuilds the book any time a source file changes.
- `mdbook serve` — Runs a web server to view the book, and rebuilds on changes.
- `mdbook test` — Tests Rust code samples.
- `mdbook clean` — Deletes the rendered output.
- `mdbook completions` — Support for shell auto-completion.