CLI / @pontx/hub-cli
One CLI for the entire API catalog.
Install @pontx/hub-cli to search, inspect, and preview every curated API and call Endpoints enabled for online execution, with JSON output for automation.
01Search the catalog
pontx-hub search02Preview a request
pontx-hub preview03Universal call
pontx-hub call04Typed integration
@pontx/<api>01
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 listList universal and product Skillsskill installInstall the universal pontx-hub Skillskill install <apiSlug>Install a product Skill03
Search and inspect
Search results include stable resource IDs that later commands and scripts can use directly.
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 PontxSpec 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>