CLI Usage Guide
The soap-calc command-line interface (CLI) is your primary tool for validating, calculating, and exporting recipes.
Basic Commands
validate
Checks your recipe file for errors without performing full calculations.
Common errors found:
* Oil percentages not summing to 100%.
* Unknown oil names.
* Missing required fields (e.g., lye_type).
calculate
Computes the recipe and prints the results to the terminal.
Options:
* --oil-weight <grams>: Override the total_oil_weight in the recipe file. Useful for resizing a batch on the fly.
export
Generates a detailed Markdown report suitable for printing or sharing.
Options:
* -o, --output <file>: Specify the output filename. If omitted, prints to stdout.
scale
Resizes a recipe file permanently and saves it as a new file.
This scales original.json to 1200g of total oils and saves it to scaled.json.
list-oils
Searches the available oil database.
Use this to find the exact naming spelling for your oils list.