cli.md.template 595 B

12345678910111213141516171819202122
  1. ---
  2. id: cli
  3. title: CLI
  4. ---
  5. KaTeX installed [using Node.js package managers](node.md) comes with a
  6. built-in command-line interface (CLI) which can be used to render TeX to HTML.
  7. By default, CLI will take the input from standard input.
  8. ```bash
  9. npx katex
  10. ```
  11. > Above uses the `npx` command to run the locally installed executable
  12. after `npm install katex`. You can also execute with the relative path:
  13. `./node_modules/.bin/katex`
  14. > To use the CLI from local Git clone, you need to build the project first.
  15. See [Building from Source](node.md#building-from-source) for more details.
  16. ## Options