Terminal
Updated Nov 12, 2026
The Fairspec Terminal provides a command-line interface for managing datasets, tables, files, and JSON data. It exposes the framework's core capabilities to scripts, CI pipelines, and interactive shells without requiring TypeScript code.
The pages in this section walk through the available commands grouped by what they operate on.
Automation
Every command takes --json to write its result as JSON. Given a value, --json also reads the command's input from it, using the option names in camelCase, so a script or an agent can skip shell quoting:
fairspec table validate --json '{"path": "data.csv", "check": ["positive-price=price > 0"]}'fairspec --llms prints every command's input and output as JSON Schema, in the shape of an MCP tools/list response.
Remote URLs
Commands fetch any http(s) URL you give them, intranet and localhost included. Set FAIRSPEC_HOST_POLICY=public to refuse hosts that resolve to a loopback, private, link-local (cloud metadata at 169.254.169.254 among them) or other non-public address. The check runs on the address actually connected to and again on every redirect, and proxy settings are ignored under it.
fairspec mcp takes URLs from model input, so it starts with the public policy unless FAIRSPEC_HOST_POLICY is set; FAIRSPEC_HOST_POLICY=any lets it reach intranet hosts again:
{
"mcpServers": {
"fairspec": {
"command": "npx",
"args": ["fairspec@latest", "mcp"],
"env": { "FAIRSPEC_HOST_POLICY": "any" }
}
}
}Created with ❤ and Livemark