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

Using the CLI

The Matchy command-line interface lets you build and query databases without writing code. This is perfect for:

  • Operations and DevOps workflows
  • Quick prototyping and testing
  • Shell scripts and automation
  • One-off queries and analysis

What You'll Learn

Example Workflow

$ # Build a database from a CSV file
$ matchy build threats.csv -o threats.mxy

$ # Query it
$ matchy query threats.mxy 192.0.2.1
Found: IP address 192.0.2.1
  threat_level: "high"
  category: "malware"

$ # Benchmark performance
$ matchy bench threats.mxy
Queries per second: 7,234,891
Average latency: 138ns

After completing this section, check out the CLI Commands reference for detailed documentation on all available commands.