Cloudflare releases Forge, an open-source pipeline for generating SDKs, CLIs and documentation

A modular steel anvil against a softly blurred dark-blue background, representing a configurable software generation pipeline.

Cloudflare has released Forge, an open-source, self-hosted pipeline for generating SDKs, command-line tools, documentation and other API-facing software. Licensed under Apache 2.0, the early-stage project already produces the output needed for Cloudflare’s cf CLI and is intended to replace fragmented generation workflows with infrastructure that teams can run in their own CI systems.

Generation moves into the API workflow

Forge is designed to lint API changes and create preview builds of affected CLIs, SDKs and documentation before those changes are merged. Developers can install and test the previews, with their modifications highlighted, rather than discovering generation failures during a later release process.

Cloudflare built the system around its own scale: an API containing more than 3,500 operations, backed by hundreds of services and repositories using languages including Rust, Go, TypeScript and Python. The company says previous hosted tools did not provide enough control or coordination across those teams.

Pluggable transformers can be chained

Forge treats generated artifacts as inputs for further transformations. A team could generate an SDK and then use that output to produce a CLI or another package, while retaining control over the language and sequence. This also lets developers combine generated API commands with handwritten, local-only behavior and feed the resulting information into documentation.

The pipeline currently accepts OpenAPI specifications. Cloudflare says transformers can produce its Cap’n Web bindings as well as outputs such as library-specific packages, schemas or MCP servers. Support for AsyncAPI, GraphQL, Cap’n Proto and Protobuf is presented as a future design goal rather than a currently available capability.

Cloudflare plans broader internal adoption

Forge does not yet power every Cloudflare developer surface. The company says it will be used for its API documentation and SDKs over the coming months, with more information planned for TypeScript, Rust, Python, Go, PHP and Terraform tooling.

The pipeline is also part of Cloudflare’s work on API versioning that could introduce new major versions without abandoning existing clients and SDKs. That approach remains under development. For teams evaluating Forge now, the principal limitations are its early maturity and its current reliance on OpenAPI as the supported input format.

AI-generated editorial illustration; not a documentary photograph.

Source: Introducing Forge: the open source pipeline for generating SDKs, CLIs, docs, and more

Share this article
FacebookThreadsLinkedInX

Leave a Reply

Your email address will not be published. Required fields are marked *