Beta Space StudioBeta Space Studio logo
Dev Tools·1 June 2025·Said Sürücü·131

Yargı CLI

Query Turkish legal databases from your terminal. Designed for AI agents and programmatic use — JSON output, pipe-friendly, zero configuration.

Author: Said SürücüCategory: Dev ToolsLast update: 1 June 2025
131GitHub stars

Overview

The CLI counterpart of Yargı MCP. Query Court of Cassation, Council of State, local courts, and appellate court decisions directly from your terminal. All output is JSON — ideal for AI agents and automation scenarios.

Supported Databases

  • Yargıtay (Court of Cassation) — Supreme court appeal decisions
  • Danıştay (Council of State) — Administrative court decisions
  • Yerel Hukuk (Local Civil Courts) — First instance civil court decisions
  • İstinaf Hukuk (Civil Courts of Appeals) — Regional appellate court decisions
  • KYB (Extraordinary Appeals) — Decisions in the interest of law

Supports 79 different chamber filters.

Installation

npm install -g @saidsrc/yargi

Usage

# Search decisions
yargi bedesten search "workplace accident" --court YARGITAYKARARI --chamber 9

# Get full decision text (Markdown output)
yargi bedesten doc <documentId>

Supports Solr search operators: exact phrase ("phrase"), required/excluded terms (+term, -term), AND/OR/NOT.

Why CLI?

  • For AI Agents: JSON output, rich --help for agent self-discovery
  • Pipe-friendly: Easily compose with other tools
  • Zero configuration: No API key or auth required

Tools that connect to your own data.

Yargı CLI is open source. If your organization needs something similar for its own data sources, let's talk.

Yargı CLI - Resources | Beta Space Studio | Beta Space Studio