CLI
Import & Export
Import cURL commands and OpenAPI specs into collections, export requests as cURL or OpenAPI, and list workspace resources from the command line.
Import cURL
Parse a cURL command into an API Studio request and save it to a collection.
openpost import curl "curl -X POST https://api.example.com -H 'Auth: Bearer tk' -d '{}'"
Parses cURL command into a request (method, URL, headers, body, auth)
Saves to specified collection (or creates a new one)
Supports all major cURL flags (
-X, -H, -d, -F, -u, etc.)Import OpenAPI
Import an OpenAPI or Swagger spec file to auto-generate a collection and environment.
openpost import openapi ./swagger.yaml
Supports OpenAPI 3.0/3.1 and Swagger 2.0
JSON and YAML formats accepted
Auto-creates collection + environment with base URL
Export cURL
Generate a cURL command from a saved request with variables resolved and auth injected.
openpost export curl "My API" "Get Users" --env production
Outputs cURL command to stdout
Variables resolved from the specified environment
Auth automatically injected into the command
Pipe to clipboard:
| pbcopyExport OpenAPI
Generate an OpenAPI 3.0 spec from an existing collection.
openpost export openapi "My API"
Generates OpenAPI 3.0 spec from collection requests
Output to stdout — pipe to file:
> spec.jsonList Commands
List workspace resources — collections, requests, and environments.
openpost list collections
openpost list requests "My API"
openpost list environments
Shows names, IDs, and scope (local/global)
--json flag for machine-readable output