apic
apic: a command line for any HTTP API, without writing a CLI per service
apic turns any HTTP API into a command line tool: it reads the API definition (OpenAPI / Swagger, or a few lines of YAML) and builds one command per endpoint, with parameters as options and shell completion.
- Definitions become commands: a service with an OpenAPI document is one
site addaway; for an internal service without one, list its endpoints in a few lines of YAML.apic linkalso gives a site its own command, such aspetctl. - Environments and authentication: separate base URLs and credentials for dev and prod; bearer, basic, apikey, log-in-for-a-token and token-from-a-command auth; writes to production need
--yes. - Picking, paging, formatting:
--picktakes fields from any level and renames them,--all-pageswalks and merges the pages,-o table/yamlmakes the result readable. - For people and AI agents: stdout carries only the response body, exit codes have fixed meanings, and
apic skillwrites aSKILL.mdfor agents. Secrets are masked in-v,--dry-runand error messages.