The CLI covers your whole API
jojapi 0.2 goes beyond Worker code. From a terminal, CI or an AI agent you can now manage deployments, bindings, variables, the listing, its OpenAPI document, pricing, traffic and request logs. Every write that cannot be undone shows what will change and asks first. See Command-line interface.
- Endpoints as code.
jojapi exportwrites the API as an OpenAPI document that imports back without a single change.jojapi importpreviews every change field by field and ends with a digest;--apply --expect <digest>applies exactly that preview, and refuses if anything changed since. OpenAPI (JSON or YAML) and Postman Collections are read from a file or a URL. - Deployments.
jojapi changeslists what production is behind;changes deploypromotes it andchanges discardthrows it away.jojapi deployments keep|public|archivechanges one deployment. - Worker.
jojapi resources add|remove|share|revoke|accepthandles storage, queues and their shares.jojapi varssets variables; secrets are read from a prompt or stdin, never from an argument.jojapi settings --logs on,jojapi usageandjojapi modecover the rest. - Listing.
jojapi info,createandupdate(--marketplace publicnames the checks that fail);jojapi endpoints show|add|update|hide|disable|delete|duplicate|move|example;jojapi groups,faqs,objects; andjojapi page, which shows the marketplace page as consumers see it. - Pricing.
jojapi plans create|public|private|rate|display|add-object|delete|access;jojapi features;jojapi billingfor what endpoints charge;jojapi agentsfor per-request agent prices;jojapi grantfor one-off free quota. - Analytics.
jojapi apis,dashboard,traffic,requests(credentials and cookies are always redacted),transactionsandsubscribers.
Management API
- New plans come back with their slug.
create-api-plananswersplan: {slug, type, blocked}, so you no longer have to list the plans again to find the new one. - Opaque ids for subscriptions and transfers.
ProviderSubscriptionsandpending-transfersreturn string ids, and the routes that take an id expect it exactly as returned. This includesstudio/grant-quotaand the Studio’s transfer and cancel actions. Raw numbers are refused. - Every error has a
status. The few routes that answered errors with only acodenow carrystatusas well (codestays for older clients). - Public plan limits apply when a plan is made public. Opening a private plan with
update-api-plannow checks the same limits as creating a public plan: 10 public plans per API, one of them pay-as-you-go. The hidden plan behind agent payments no longer takes one of the 10 slots. - Small fixes. Switching an API’s Worker to the mode it already runs no longer creates a deployment. A Postman Collection imported from a URL is recorded as a Postman source. Access to a deleted plan can no longer be granted.
