Skip to main content

Shared CLI options

Most metacrafter scan … commands accept the same classification and output flags.

Classification

FlagMeaning
--contextsComma-separated context filters (pii, finance, …)
--langsComma-separated language filters (en, ru, fr)
--country-codesRestrict rules to ISO country codes
--confidence, -cMinimum confidence (0–100, default 5.0)
--stop-on-matchStop after the first matching rule per field
--no-datesDisable qddate pattern detection
--include-impreciseInclude imprecise rules that are ignored by default
--include-emptyInclude empty values in statistics and confidence
--fieldsProcess only specific fields (comma-separated)
--rulepathExtra YAML rule directories (comma-separated)
--limitMaximum records sampled per field

LLM

FlagMeaning
--classification-moderules (default), llm, or hybrid
--llm-onlyShortcut for --classification-mode llm
--use-llmShortcut for --classification-mode hybrid
--llm-provideropenai, openrouter, ollama, lmstudio, perplexity
--llm-modelModel name for the selected provider
--llm-api-keyAPI key for cloud providers
--llm-base-urlBase URL for Ollama, LM Studio, or custom endpoints
--llm-registryPath to registry JSONL
--llm-indexPath to vector index directory
--llm-min-confidenceMinimum LLM confidence (default 50.0)

Output

FlagMeaning
--formatshort or full result detail
--output-formattable, json, yaml, or csv
--output, -oOutput file path
--stdoutWrite to stdout
--pretty / --indentJSON formatting
--table-formatauto, rich, plain, or a tabulate format
--stats-onlyStatistics without classification

Set METACRAFTER_PLAIN to disable rich table rendering globally.

Remote API

FlagMeaning
--remoteBase URL of a running metacrafter server
--timeoutRequest timeout in seconds (<=0 disables)
--retriesRetry attempts
--retry-delayDelay between retries

Logging

--debug, --verbose, --quiet, --progress.

See LLM classification and API server for provider and remote details.