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

hemtt script

Run a Rhai script on the project

Usage: script [OPTIONS] <name>

Arguments:
  <name>  The name of the script to run, without .rhai

Options:
  -t, --threads <THREADS>  Number of threads, defaults to # of CPUs
  -v...                    Verbosity level
  -h, --help               Print help (see more with '--help')

Description

Run a Rhai script on the project

hemtt script is used to run a Rhai script on the project This is useful for automating tasks in a platform agnostic way, or requiring external dependencies.

Use Cases

  • Automated file generation or manipulation
  • Custom build steps and preprocessing
  • Integration with external tools or APIs
  • Project-specific workflows and validation

Scripts have access to project configuration and can interact with the file system, making them powerful for custom automation needs.

Learn more about Scripts.

Arguments

<name>

The name of the script to run, without .rhai

Scripts are kept in .hemtt/scripts/ Example: hemtt script generate_docs will run .hemtt/scripts/generate_docs.rhai