CLI Serve Command
The serve command is used to preview a book by serving it via HTTP at localhost:25520
localhost:25520
by default:
Note: The serve
serve
command is for testing a book's HTML output, and is not intended to be a complete HTTP server for a website.
The serve
serve
command can take a directory as an argument to use as the book's root instead of the current working directory.
The serve
serve
command will build your book once before serving the content. It is hence including all of the options from build
build
command.
The serve
serve
address defaults to localhost:25520
localhost:25520
. Either option can be specified on the command line:
When you use the --open
--open
flag, shiroa will open the rendered book in your default web browser after building it.