Skip to content

Latest commit

 

History

History
56 lines (39 loc) · 694 Bytes

File metadata and controls

56 lines (39 loc) · 694 Bytes

SDK Build Examples

Generate All SDKs

core build sdk

Specific Language

core build sdk --lang typescript
core build sdk --lang php
core build sdk --lang go

Custom Spec

core build sdk --spec ./api/openapi.yaml

With Version

core build sdk --version v2.0.0

Preview

core build sdk --dry-run

Configuration

.core/sdk.yaml:

version: 1

spec: ./api/openapi.yaml

languages:
  - name: typescript
    output: sdk/typescript
    package: "@myorg/api-client"

  - name: php
    output: sdk/php
    namespace: MyOrg\ApiClient

  - name: go
    output: sdk/go
    module: github.com/myorg/api-client-go