← 返回命令列表

Linux command

apisnip 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Open a local OpenAPI spec file

apisnip [input.yaml]

Trim and save to a specific output file

apisnip [input.yaml] [output.yaml]

Open a remote OpenAPI spec

apisnip [https://petstore.swagger.io/v2/swagger.json] [output.yaml]

说明

apisnip is a terminal user interface for selectively trimming OpenAPI specifications. It presents an interactive list of all API endpoints where you can toggle which ones to keep, then generates a smaller specification file containing only the selected endpoints with all necessary $ref references and components preserved. Written in Rust using Ratatui, apisnip supports both JSON and YAML formats, fuzzy search with weighted scoring, HTTP method syntax highlighting, automatic theme detection, mouse support, and smart grouping of selected endpoints at the top of the list.

FAQ

What is the apisnip command used for?

apisnip is a terminal user interface for selectively trimming OpenAPI specifications. It presents an interactive list of all API endpoints where you can toggle which ones to keep, then generates a smaller specification file containing only the selected endpoints with all necessary $ref references and components preserved. Written in Rust using Ratatui, apisnip supports both JSON and YAML formats, fuzzy search with weighted scoring, HTTP method syntax highlighting, automatic theme detection, mouse support, and smart grouping of selected endpoints at the top of the list.

How do I run a basic apisnip example?

Run `apisnip [input.yaml]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

Where can I find more apisnip examples?

This page includes 3 examples for apisnip, plus related commands for nearby Linux tasks.