Skip to content

[DOCS] Document Cloudflare Workers deployment target in adl-cli #247

Closed

Description

The adl-cli now generates Cloudflare Workers artifacts from spec.deployment.type: cloudflare (adl-cli PR inference-gateway/adl-cli#224, closing issue #221).

User-facing change to document:

  • New deployment target spec.deployment.type: cloudflare with a spec.deployment.cloudflare block: name, accountId, compatibilityDate, compatibilityFlags, routes, workersDev, environment.
  • TypeScript-only target. Generates wrangler.toml (name, main, compatibility_date, compatibility_flags, account_id, workers_dev, routes, [vars]) and a src/worker.ts module-format Worker entrypoint scaffold (added to .adl-ignore).
  • Defaults: compatibilityDate defaults to 2025-01-01 when omitted; compatibilityFlags defaults to [nodejs_compat]; name falls back to metadata.name.
  • Secrets stay out-of-band via wrangler secret put; only ${VAR} placeholders are rendered into [vars].
  • Deploys from source via wrangler (no container image), like the vercel target. Models Workers (server/serverless), not Pages. Resource bindings (KV, R2, D1, Durable Objects, Queues) are out of scope for the initial schema.

Affected pages: deployment docs / any page enumerating adl deployment targets (alongside kubernetes, cloudrun, vercel). A new example manifest examples/cloudflare-agent.yaml and a README 'Cloudflare Workers Deployment' section were added in the adl-cli repo and can serve as a reference.

Activity

  1. added
    documentation
    on Jun 18, 2026
  2. edenreich commented on Jun 18, 2026

    @edenreich
    Contributor

    @claude Can you document it?

  3. inference-gateway-maintainer commented on Jun 18, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 7m 44s —— View job • docs/issue-247-20260618-2004 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-247-20260618-2004?quick_pull=1&title=Issue%20%23247%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23247%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documenting Cloudflare Workers deployment target

    Done. Documented the new spec.deployment.type: cloudflare target in adl-cli.md and opened PR #248.

    • Gather context: deployment targets are documented in adl-cli.md
    • Review existing deployment target docs (kubernetes, cloudrun, vercel)
    • Pull accurate field/schema/template details from adl-cli PR docs: document mirror-agent-logs input for infer-action #224
    • Add Cloudflare Workers deployment target documentation
    • Run lint/format/build checks (markdownlint, prettier, vitepress build all pass)
    • Commit changes and open PR

    What changed in adl-cli.md

    • Feature bullet - added Cloudflare Workers to the Cloud Deployment list.
    • generate examples + --deployment flag - added a --deployment cloudflare example and listed cloudflare as a flag value.
    • New #### Cloudflare Workers section (under Deployment, after Vercel):
      • TypeScript-only target that deploys from source via wrangler (no container image), modeling Workers not Pages.
      • Full spec.deployment.cloudflare field reference table: name, accountId, compatibilityDate, compatibilityFlags, routes, workersDev, environment.
      • Defaults documented: compatibilityDate -> 2025-01-01, compatibilityFlags -> [nodejs_compat], name falls back to metadata.name.
      • Generated artifacts: a rendered wrangler.toml example and the src/worker.ts module-format scaffold (added to .adl-ignore).
      • Secrets-out-of-band callout (wrangler secret put; only ${VAR} placeholders in [vars]) and a note that resource bindings (KV, R2, D1, Durable Objects, Queues) are out of scope for the initial schema.

    Field names, defaults, the rendered wrangler.toml, and scaffold behavior were sourced from the upstream PR branch (schema, template, example manifest) rather than paraphrased, for accuracy.

    Notes

    • I did not add wrangler.toml/src/worker.ts to the Go/Rust "Generated Project Structure" trees - Cloudflare is TypeScript-only, so listing it there would be misleading; the section's own "This generates" list covers the artifacts.
    • adl-cli.md is the only page enumerating deployment targets, so no other pages needed changes.
      | Branch: docs/issue-247-20260618-2004
  4. moved this from In progress to QA in 2026on Jun 18, 2026
  5. moved this from QA to Done in 2026on Jun 18, 2026
  6. inference-gateway-releaser commented on Jun 24, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.6.113 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    No type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions