ZuploZuplo
LoginSign Up
  • Documentation
  • API Reference
Introduction
Getting Started
    Develop using the Portal
      1 - Setup Your Gateway2 - Rate Limiting3 - API Key Auth4 - Deploy5 - Dynamic Rate LimitingMCP - Quick start
    Develop Locally
      1 - Setup Your Gateway2 - Rate Limiting3 - API Key Auth
Concepts
Development
Policies
Handlers
API Keys
MCP Server
MCP Gateway
AI Gateway
Developer Portal
Monetization
Deploying & Source Control
Observability
Networking & Infrastructure
Account Management
Programming API
Build with AI
Zuplo CLI
    OverviewCreate Zuplo APIAuthenticationGlobal OptionsNetwork Connectivitybucket listca-certificate createca-certificate deleteca-certificate describeca-certificate listca-certificate updatecustom-domain createcustom-domain deletecustom-domain listcustom-domain updatedeletedeploydevdocseditorinfoinitlinklistlogoutmtls-certificate createmtls-certificate deletemtls-certificate describemtls-certificate disablemtls-certificate listmtls-certificate updateopenapi convertopenapi mergeopenapi overlayproject createproject infoproject listsource migratesource upgradetesttunnel createtunnel deletetunnel describetunnel listtunnel rotate-tokentunnel services describetunnel services updatevariable createvariable updatewhoami
Migration Guides
Platform LimitsSecuritySupportTrust & ComplianceChangelog
powered by Zudoku
Zuplo CLI

Zuplo CLI: OpenAPI Convert

Convert OpenAPI files between JSON and YAML formats
Code
zuplo oas convert --input <file> (--json|--yaml|--format <format>) [options]

Examples

Convert a YAML OpenAPI file to JSON format

Code
zuplo oas convert --input openapi.yaml --json

Convert a JSON OpenAPI file to YAML with custom output path

Code
zuplo oas convert -i openapi.json --yaml -o api-spec.yaml

Convert using --format flag instead of --json/--yaml

Code
zuplo oas convert --input api.yaml --format json

Watch the input file for changes and automatically re-convert

Code
zuplo oas convert --input openapi.yaml --json --watch

Options

--input

The input OpenAPI file (JSON or YAML)

Type: stringAlias: -i

--format

Output format

Type: stringChoices: json, yamlAlias: -f

--output

Output file path (if not specified, generates based on input)

Type: stringAlias: -o

--json

Convert to JSON format

Type: booleanConflicts: --yaml, --format

--yaml

Convert to YAML format

Type: booleanConflicts: --json, --format

--watch

Watch input file for changes and automatically re-convert

Type: booleanDefault: false

Global options

The following global options are available for all commands:

  • --help
  • --api-key
Edit this page
Last modified on May 29, 2026
mtls-certificate updateopenapi merge
On this page
  • Global options