# tomes


Read books made with Quarto in your terminal: a book on the web, or one on your computer.


``` bash
tomes [OPTIONS] [LOCATION] COMMAND [ARGS]...
```


<span class="gd-details-chevron" aria-hidden="true"></span>Full --help output


    Read books made with Quarto in your terminal: a book on the web, or one on your computer.

    Usage: tomes [OPTIONS] [LOCATION] [COMMAND]

    Commands:
      open      Read another Quarto book or website: a directory, an HTML file, or a URL
      cat       Print a chapter (with colors when the output is a terminal)
      toc       Print the outline
      search    Search the book and print the matches
      commands  Print every command of a chapter (as a script you can follow)
      config    Show where the configuration lives, or create it
      help      Print this message or the help of the given subcommand(s)

    Arguments:
      [LOCATION]
              A book to read: a URL, a directory with Quarto's output, or an HTML file

    Options:
      -c, --chapter <CHAPTER>
              Open this chapter (a number, a file name, or part of the title)

          --colors <COLORS>
              Colors: `terminal` (your palette) or `book` (the book's palette)
              
              [possible values: terminal, book]

          --light
              Use the book's light colors

          --dark
              Use the book's dark colors

          --images <IMAGES>
              Images: auto, kitty, iterm2, sixel, halfblocks, or none

          --no-images
              Don't show images

          --no-mouse
              Don't use the mouse (the terminal selects text as usual)

          --width <WIDTH>
              Maximum width of the text

      -b, --book <LOCATION>
              Another Quarto book or website (a directory, an HTML file, or a URL) for any command, e.g. `--book ./_book toc`

      -h, --help
              Print help (see a summary with '-h')

      -V, --version
              Print version

    Examples:
      tomes                          Read where you left off (or pick a book)
      tomes https://r4ds.hadley.nz/  Read R for Data Science
      tomes ./_book                  Read a Quarto book on your computer
      tomes -b ./_book toc           Print the outline
      tomes -b ./_book cat 3         Print chapter 3
      tomes -b ./_book search join   Search the book

    In the reader, press ? for all keys and Space o for other books.
    More at https://tomes.jeroenjanssens.com


# Arguments


`LOCATION`  
Optional.


# Options


`-c, --chapter : chapter`  
 

`--colors : colors`  
 

`--light`  
 

`--dark`  
 

`--images : images`  
 

`--no-images`  
 

`--no-mouse`  
 

`--width : width`  
 

`-b, --book : location`  
 

`-h, --help`  
 

`-V, --version`  
 


# Commands


`open`  
[Read another Quarto book or website: a directory, an HTML file, or a URL](../../reference/cli/open.md)

`cat`  
[Print a chapter (with colors when the output is a terminal)](../../reference/cli/cat.md)

`toc`  
[Print the outline](../../reference/cli/toc.md)

`search`  
[Search the book and print the matches](../../reference/cli/search.md)

`commands`  
[Print every command of a chapter (as a script you can follow)](../../reference/cli/commands.md)

`config`  
[Show where the configuration lives, or create it](../../reference/cli/config.md)
