I'm sorry, but the knowledge sources do not provide explicit, step-by-step instructions on how to generate the Go client SDK for Ory Kratos after building the Kratos image. However, they do mention that the SDKs are generated using [openapi-generator](
https://github.com/OpenAPITools/openapi-generator) and [go-swagger](
http://goswagger.io), and that the process involves extracting API definitions from the Go code, converting them to OpenAPI specs, and then generating SDKs from those specs. The generated SDKs are then published to the [ory/sdk](
https://github.com/ory/sdk) repository for public use. If you need to generate the SDK yourself, you would typically: 1. Extract the OpenAPI/Swagger specification from the Kratos codebase. 2. Use a tool like openapi-generator or go-swagger to generate the Go client SDK from that specification. However, the exact commands or scripts to do this are not detailed in the provided documentation. For most users, it is recommended to use the pre-generated SDKs available at [ory/kratos-client-go](
https://github.com/ory/kratos-client-go) or via package managers, as described in the documentation:
go get <http://github.com/ory/kratos-client-go@<version-you-want|github.com/ory/kratos-client-go@<version-you-want>>
[Ory Kratos SDK Overview](
https://www.ory.sh/docs/kratos/sdk/overview) If you need more details on the SDK generation process, you may want to consult the [REST API Guidelines](
https://www.ory.sh/docs/open-source/guidelines/rest-api-guidelines) or the Ory Kratos GitHub repository for Makefile or CI/CD scripts that handle this process.