OO

onlycli/onlycli

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

50 stars 8 forks 品質 49 トレンド 13MIT

任意の OpenAPI スペックをネイティブ CLI バイナリに変えます。 MCP なし、bloat なし、ランタイム依存関係なし、CLI のみ.

概要

GitHub REST API (1,107 の操作) の各エンドポイントは、フラグ、ヘルプテキスト、およびシェルの補完で Typed CLI コマンドになります。 リリースからビルド済みのバイナリをダウンロードしてください。 です。 仕様の操作はCLIコマンドです。 ライブパブリック仕様のPre-generated CLIs: 詳細な書き込み: 対 ステンレス · 対 残りの · 対 curl/HTTPie GitHub MCP サーバーがすべてのプロンプトに読み込みます。 3つのサービスはアイドルに消費されます。 スケールでは、純粋なスキーマのオーバーヘッドにある。 1. 仕様2から一度バイナリを生成します。 エージェントは ./cli --help を呼び出してコマンド () 3. エージェントは ./cli リポジトリが --owner x --repo y を実行し、 stdout を読みます 安定したコマンド名、予測可能なフラグ、構造化されたJSON出力。 MCP サーバー、スキーマの注入無し、関係管理無し。 完全なコスト分析を参照してください.

概要(AI 翻訳)

OpenAPI の仕様は、CLI で完了します。 1つのコマンド。 1つのバイナリ。 35x MCP よりも少ないトークン。

GitHub REST API (1,107 の操作) の各エンドポイントは、フラグ、ヘルプテキスト、およびシェルの補完で Typed CLI コマンドになります。

インストール

リリースからビルド済みのバイナリをダウンロードしてください。

クイックスタート

です。 仕様の操作はCLIコマンドです。

取得する

生成されるすべてのCLI船:

| 能力 | 能力 | 能力・能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | 能力 | お問い合わせ | コマンドとして終点 | 操作によって命名されるタグ別グループ化 | | [[T0]として全てのパラメーター | パス・クエリ・ヘッダ・リクエスト ボディフィールド | | 7 出力形式 | [[T1] | | フィールドプロジェクション | [[T2] by GJSON | | テンプレート出力 | [[T3] | | オートペジネーション | [--page-limit N] オートデテクト リンク、カーソル、オフセット、ページ番号 | | ストリーミング | 【[T5]】SSE・NDJSON対応 | | ファイル入力 | [[T6] または --data @- を stdin | | OAuth2認証 | デバイスフロー(インタラクティブ) + クライアント認証(CI) | | マルチプロファイル設定 | [[T8] |

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

OnlyCLI

Turn any OpenAPI spec into a complete CLI. One command. One binary. 35x fewer tokens than MCP.

Every endpoint in the GitHub REST API (1,107 operations) becomes a typed CLI command with flags, help text, and shell completion.

Install

go install github.com/onlycli/onlycli/cmd/onlycli@latest

Or download a pre-built binary from Releases.

Quick Start

# 1. Generate -- point at any OpenAPI 3.x spec (local file or URL)
onlycli generate \
  --spec https://raw.githubusercontent.com/swagger-api/swagger-petstore/master/src/main/resources/openapi.yaml \
  --name petstore --out ./petstore-cli

# 2. Build
cd petstore-cli && go mod tidy && go build -o petstore .

# 3. Use
./petstore pet find-pets-by-status --status available --format table
./petstore --help

That’s it. Every operation in the spec is now a CLI command.

What You Get

Every generated CLI ships with:

Capability How
Every endpoint as a command Grouped by tag, named by operationId
All parameters as --flags Path, query, header, and request body fields
7 output formats --format json|yaml|table|csv|pretty|jsonl|raw
Field projection --transform "#.name" via GJSON
Go template output --template '{{.login}}'
Auto-pagination --page-limit N auto-detects Link, cursor, offset, page-number
Streaming --stream for SSE and NDJSON responses
File input --data @payload.json or --data @- for stdin
OAuth2 authentication Device flow (interactive) + client credentials (CI)
Multi-profile config config set staging.token xxx && --profile staging
Retry with backoff --max-retries 3 for transient 429/5xx errors
Dry-run mode --dry-run prints the request without sending
HTTP/2 + gzip Modern transport, automatic content decompression
Shell completion completion bash|zsh|fish|powershell with enum hints
Cross-platform Linux, macOS, Windows; amd64, arm64

Examples

Pre-generated CLIs from live public specs:

Example Source Spec Groups Commands
petstore Swagger Petstore 3 19
github GitHub REST API 43 1,107

Regenerate them yourself:

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →