Loading...
Loading...
Compare original and translation side by side
.speakeasyundefined.speakeasyundefinedundefinedundefinedspeakeasy configure sourcesspeakeasy configure sourcesspeakeasy configure sources \
--location ./openapi.yaml \
--source-name my-apispeakeasy configure sources \
--location ./openapi.yaml \
--source-name my-api
| Flag | Short | Description |
|------|-------|-------------|
| `--location` | `-l` | OpenAPI document location (file or URL) |
| `--source-name` | `-s` | Name for the source |
| `--auth-header` | | Authentication header name (optional) |
| `--output` | `-o` | Output path for compiled source (optional) |
| `--non-interactive` | | Force non-interactive mode |
| 标志 | 简写 | 说明 |
|------|-------|-------------|
| `--location` | `-l` | OpenAPI文档位置(文件或URL) |
| `--source-name` | `-s` | 源名称 |
| `--auth-header` | | 认证头名称(可选) |
| `--output` | `-o` | 编译后源的输出路径(可选) |
| `--non-interactive` | | 强制非交互模式 |speakeasy configure targetsspeakeasy configure targetsspeakeasy configure targets \
--target-type typescript \
--source my-api \
--output ./sdks/typescriptspeakeasy configure targets \
--target-type typescript \
--source my-api \
--output ./sdks/typescript
| Flag | Short | Description |
|------|-------|-------------|
| `--target-type` | `-t` | Language: typescript, python, go, java, csharp, php, ruby, terraform |
| `--source` | `-s` | Name of source to generate from |
| `--target-name` | | Name for the target (defaults to target-type) |
| `--sdk-class-name` | | SDK class name (optional) |
| `--package-name` | | Package name (optional) |
| `--base-server-url` | | Base server URL (optional) |
| `--output` | `-o` | Output directory (optional) |
| `--non-interactive` | | Force non-interactive mode |
| 标志 | 简写 | 说明 |
|------|-------|-------------|
| `--target-type` | `-t` | 语言类型:typescript, python, go, java, csharp, php, ruby, terraform |
| `--source` | `-s` | 用于生成SDK的源名称 |
| `--target-name` | | 目标名称(默认值为target-type) |
| `--sdk-class-name` | | SDK类名(可选) |
| `--package-name` | | 包名(可选) |
| `--base-server-url` | | 基础服务器URL(可选) |
| `--output` | `-o` | 输出目录(可选) |
| `--non-interactive` | | 强制非交互模式 |undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedmy-api-sdks/
├── openapi.yaml # Source spec
├── .speakeasy/
│ └── workflow.yaml # Multi-target config (created by CLI)
├── sdks/
│ ├── typescript/
│ │ ├── .speakeasy/
│ │ │ └── gen.yaml # Created by configure
│ │ └── src/
│ ├── python/
│ │ ├── .speakeasy/
│ │ │ └── gen.yaml
│ │ └── src/
│ └── go/
│ ├── .speakeasy/
│ │ └── gen.yaml
│ └── go.mod
└── .github/workflows/
└── sdk_generation.yamlmy-api-sdks/
├── openapi.yaml # 源规范文件
├── .speakeasy/
│ └── workflow.yaml # 多目标配置文件(由CLI创建)
├── sdks/
│ ├── typescript/
│ │ ├── .speakeasy/
│ │ │ └── gen.yaml # 由configure命令创建
│ │ └── src/
│ ├── python/
│ │ ├── .speakeasy/
│ │ │ └── gen.yaml
│ │ └── src/
│ └── go/
│ ├── .speakeasy/
│ │ └── gen.yaml
│ └── go.mod
└── .github/workflows/
└── sdk_generation.yamlundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined.speakeasy/speakeasy quickstartspeakeasy configureworkflow.yamlgen.yaml.speakeasy/.speakeasy/speakeasy quickstartspeakeasy configureworkflow.yamlgen.yaml.speakeasy/undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined| Issue | Solution |
|---|---|
| Wrong target generated | Specify |
| Source not found | Run |
| Target not found | Run |
| Config out of sync | Run |
| 问题 | 解决方案 |
|---|---|
| 生成了错误的目标SDK | 在 |
| 找不到源 | 执行 |
| 找不到目标 | 执行 |
| 配置不同步 | 执行 |
speakeasy run --output consolespeakeasy run --output consoleConfiguration complete. Would you like to regenerate the SDK(s) now with?speakeasy run
undefined配置完成。是否现在使用重新生成SDK?speakeasy run
undefined
Changes to workflow.yaml and gen.yaml only take effect after regeneration.
workflow.yaml和gen.yaml的修改仅在重新生成后生效。start-new-sdk-projectconfigure-sdk-optionsmanage-openapi-overlaysorchestrate-multi-repo-sdksstart-new-sdk-projectconfigure-sdk-optionsmanage-openapi-overlaysorchestrate-multi-repo-sdks