CLI / @pontx/hub-cli
One CLI for the entire API catalog.
Use pontx-hub to search, inspect, preview, and call curated APIs, with stable JSON output for scripts and agents.
01Discover
pontx-hub search02Inspect
pontx-hub show03Preview
pontx-hub preview04Integrate
pontx-hub sdk01
Install and configure
The universal package is @pontx/hub-cli and its executable is pontx-hub.
pnpm add --global @pontx/hub-cli
pontx-hub --help02
Command map
Discovery commands are resource-centered; request commands follow API product → controller → Endpoint name.
listList API productssearch <query>Search APIs, Endpoints, and Schemasshow <resource-id>Inspect a stable resource<api> preview …Build a redacted preview<api> call …Call through the controlled Hub proxysdk <api>Inspect SDK package and statusskill installInstall the universal Agent Skill03
Search and inspect
Search results use stable IDs, so later commands and agents never need to guess URLs.
pontx-hub search "返回 dueDate 的接口" --locale zh --json
pontx-hub show endpoint:dida365/get-task-by-idpontx-hub search projectId --type schema --locale en --json
pontx-hub show schema:dida365/TaskCreatepontx-hub list --json
pontx-hub sdk frankfurter-v2Repeat --type with api, endpoint, or schema; use --limit and --offset for stable pagination.
04
Build a request
Pass Endpoint parameters as same-name options; use --body for JSON and -H for an additional declared header.
pontx-hub <api-product> preview [controller] <endpoint-name> --parameter value
# Controller present
pontx-hub frankfurter preview 'Exchange Rates' getLatestRates --base USD
# No meaningful controller
pontx-hub frankfurter-v2 preview getRates --base USD--projectId 123- Preferred: use the OAS parameter name directly.
--body '<json>'- Pass a JSON request body.
-H 'Header: value'- Add a declared raw header; never expose secrets in arguments.
05
Scripts and automation
Use --json for programs, and preserve the exit code and error.code.
pontx-hub search "exchange rate" --type endpoint --json > results.json
# Keep credentials in the environment, never in CLI arguments.
export PROVIDER_ACCESS_TOKEN="<from-your-secret-manager>"
pontx-hub <api-product> preview <endpoint-name>