| 1 |
# Command-line tool |
| 2 |
|
| 3 |
The `mdbook` command-line tool is used to create and build books. |
| 4 |
After you have [installed](../guide/installation.md) `mdbook`, you can run the `mdbook help` command in your terminal to view the available commands. |
| 5 |
|
| 6 |
This following sections provide in-depth information on the different commands available. |
| 7 |
|
| 8 |
* [`mdbook init <directory>`](init.md) --- Creates a new book with minimal boilerplate to start with. |
| 9 |
* [`mdbook build`](build.md) --- Renders the book. |
| 10 |
* [`mdbook watch`](watch.md) --- Rebuilds the book any time a source file changes. |
| 11 |
* [`mdbook serve`](serve.md) --- Runs a web server to view the book, and rebuilds on changes. |
| 12 |
* [`mdbook test`](test.md) --- Tests Rust code samples. |
| 13 |
* [`mdbook clean`](clean.md) --- Deletes the rendered output. |
| 14 |
* [`mdbook completions`](completions.md) --- Support for shell auto-completion. |