# Mac App Store Command-Line Setup

Source: https://obsvra.com/docs/mac-app-store-command-line

> The two one-time steps that put the SpiceGrinder command-line tools on your PATH after a Mac App Store install, and where the sandbox lets them read and write.

> © 2026 Obsvra. This document describes SpiceGrinder and is provided to help you evaluate and use it. It is not a license to reproduce, adapt, or use this material to build a competing product or service. Full terms: the SpiceGrinder EULA.

The Mac App Store version of SpiceGrinder includes the command-line tools (`grind`, `validate`, `analyze`, `compare`, `format`, `list`, `experiment` and `mcp`), the documentation, sample models and agent skills. The App Store doesn't let an app change your Terminal settings, so there are two one-time steps to make the tools available. After that, App Store updates keep working without repeating them.

If you downloaded SpiceGrinder from obsvra.com instead, you don't need this page. With the desktop app, choose **SpiceGrinder Free > Install Command-Line Tools…** (or Pro) and click Install; the User Manual's "Setting up your PATH" shows the other downloads.

## Set up (once)

1. Add the tools to your PATH. In Terminal, run this once:

        echo 'export PATH="/Applications/SpiceGrinder.app/Contents/Resources/cli/bin:$PATH"' >> ~/.zshrc

   Then open a new Terminal window. (If you use bash, put the same line in `~/.bash_profile` instead.)

2. Create your working folder, `~/Downloads/SpiceGrinder`, with a copy of the samples, docs and skills:

        spicegrinder-setup

3. Check that it worked:

        grind --version

The PATH line points at the app's fixed location, so it keeps working after every App Store update. Don't link individual tools into another folder (for example with `ln -s`): each tool finds the app from where it sits, so a copy or link elsewhere stops working. Use the PATH line.

After an update, run `spicegrinder-setup` again to pick up new samples and docs. It never replaces a file you already have, so your edits are safe; a sample that changed in the new version stays as it was in your copy.

## Where the tools can read and write

Mac App Store apps run in Apple's sandbox. The tools can name files in your Downloads folder, which includes the `~/Downloads/SpiceGrinder` working folder, and reach anything else through a pipe:

    grind --count 1000 ~/Downloads/SpiceGrinder/samples/simulation/first-simulation.xml
    grind --count 1000 ~/Downloads/SpiceGrinder/model.xml --out ~/Downloads/SpiceGrinder/rows.csv
    grind --count 1000 - < ~/Documents/model.xml > ~/Documents/rows.csv

`grind ~/Documents/model.xml` fails with "Operation not permitted", because the sandbox blocks that path. The direct download from obsvra.com has no such limit.

## Agents

Point your agent's MCP settings at this command:

    /Applications/SpiceGrinder.app/Contents/Resources/cli/bin/mcp

The agent skills are in `~/Downloads/SpiceGrinder/skills` after setup.
