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
- Installing the CLI - Install the
matchycommand-line tool - First Database with CLI - Build and query your first database
Example Workflow
$ # Build a database from a CSV file
$ matchy build threats.csv --input-format csv --output threats.mxy
$ # Query it
$ matchy query threats.mxy 192.0.2.1
Found: IP address 192.0.2.1
threat_level: "high"
category: "malware"
$ # Run a synthetic benchmark
$ matchy bench ip
IP queries/sec: 7,234,891
Average query latency: 138ns
After completing this section, check out the CLI Commands reference for detailed documentation on all available commands.