OO

onlycli/onlycli

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

50 stars 8 forks 품질 49 트렌드 13MIT

OpenAPI 사양을 기본 CLI 바이너리로 설정하십시오. MCP 없음, bloat 없음, 런타임 의존도 없음, ONLY CLI.

개요

GitHub REST API (1,107 작업)의 모든 엔드포인트는 flags, 도움말 텍스트, 쉘 완료로 지정된 CLI 명령이 됩니다. 또는 릴리스에서 미리 만들어진 바이너리를 다운로드. 그게 다. spec의 모든 작업은 이제 CLI 명령입니다. 살아있는 공중 specs에서 전 생성된 CLIs: 상세한 쓰기 위로: 스테인리스 ·를 대; Restish · 대 컬/HTTPie GitHub MCP 서버는 모든 프롬프트에 로드합니다. 3개의 서비스는 idle에 소모합니다. 가늠자에, 그것은 순수한 schema 머리에 있습니다. 1. spec 2.에서 한 번 바이너리를 생성 에이전트 호출 ./cli --help to discover command () 3. 에이전트 실행 ./cli repos get --owner x --repo y and read stdout 안정적인 명령명, 예측 가능한 플래그, 구조화된 JSON 출력. MCP 서버 없음, schema 주입 없음, 연결 관리 없음. 전체 비용 분석보기.

개요(AI 번역)

OpenAPI spec을 완전한 CLI로 켭니다. 1개의 명령. 1 바이너리. MCP보다 35x 토큰.

GitHub REST API (1,107 작업)의 모든 엔드포인트는 flags, 도움말 텍스트, 쉘 완료로 지정된 CLI 명령이 됩니다.

설치

또는 릴리스에서 미리 만들어진 바이너리를 다운로드.

빠른 시작

그게 다. spec의 모든 작업은 이제 CLI 명령입니다.

당신이 얻는 것

모든 생성된 CLI 배송:

| 기능 | 방법 | |—||| | 명령으로 각 종단점 | 조작이 된 태그로 그룹화 | | 모든 매개 변수는 --flags | 경로, 쿼리, 헤더, 요청 바디 필드 | | 7개의 출력 형식 | --format json\|yaml\|table\|csv\|pretty\|jsonl\|raw | 인포메이션 | [T2] | 템플릿 출력 | [T3] | | Auto-pagination | --page-limit N 자동검출 링크, 커서, 상쇄, 페이지 번호 | | 스트리밍 | [T5] SSE 및 NDJSON 대응| | 파일 입력 | [T6] or --data @-| | OAuth2 인증 | 장치 유량(interactive) + 클라이언트 자격 증명(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 가이드부터 시작하세요 →