Skip to content

[Images, Stream] Add Cloudflare CLI (cf) and cloudflare.config.ts support - #35860

Open
MattieTK wants to merge 16 commits into
productionfrom
docs/media-images-stream-cf-cli
Open

MattieTK wants to merge 16 commits into
productionfrom
docs/media-images-stream-cf-cli

Conversation

@MattieTK

Copy link
Copy Markdown
Member

Summary

Adds Cloudflare CLI (cf) and cloudflare.config.ts support across the Media Transformations, Cloudflare Images, and Cloudflare Stream documentation. These three product areas share the images/ and stream/ documentation sections (Media Transformations lives under stream/transform-videos/).

Media Transformations

  • Added bindings.media(), dev: { remote: true }, and cf dev local development coverage to stream/transform-videos/bindings.mdx.

Cloudflare Images

  • Added bindings.images(), worker.cache, and cf dev coverage to images/optimization/binding.mdx and images/storage/binding.mdx.
  • Added cloudflare.config.ts examples to images/tutorials/optimize-user-uploaded-image.mdx and images/examples/watermark-from-kv.mdx.
  • Added cf secrets and signing key commands (images/optimization/hosted-images/serve-private-images.mdx), cf dev local development guidance (images/optimization/transformations/transform-via-workers.mdx, images/optimization/transformations/url.mdx), and cf images commands (images/storage/manage-images/delete-images.mdx, images/optimization/hosted-images/create-variants.mdx, images/optimization/hosted-images/delete-variants.mdx).

Cloudflare Stream

  • Added bindings.stream() to stream/manage-video-library/bindings.mdx and fixed an existing http://localhost:1111/... link to a root-relative path.
  • Added cf init, cf dev (port 5173), cf stream webhooks update, bindings.secret(), <TypeScriptExample>, cf deploy --secrets-file, and cf workers secrets update variants to stream/examples/test-webhooks-locally.mdx.
  • Added Cloudflare CLI (cf) tabs and unwrapped nested Workers Binding API tabs into src/index.ts plus <CliVariants> (wrangler.jsonc / cloudflare.config.ts) across stream/get-started.mdx, stream/uploading-videos/upload-via-link.mdx, stream/uploading-videos/direct-creator-uploads.mdx, stream/manage-video-library/creator-id.mdx, stream/edit-videos/adding-captions.mdx, stream/edit-videos/applying-watermarks.mdx, and stream/viewing-videos/download-videos.mdx.

Notes on cf CLI parity and validation

  • Workarounds/omissions tracked upstream:
    • cloudflare/cf#854 (cf stream videos direct-upload create injects invalid default expiry when --expiry is omitted – docs use --body when omitting expiry)
    • cloudflare/cf#855 (cf stream videos edit injects default requireSignedURLs/thumbnailTimestampPct – docs use --body)
    • cloudflare/cf#856 (cf stream videos downloads lacks a get/list subcommand – "Get download links" remains on REST API and Workers Binding API)
    • cloudflare/cf#857 (cf images create/direct-upload serialises --require-signed-urls as kebab-case – omitted from serve-private-images.mdx for now)
  • stream/examples/test-webhooks-locally.mdx uses --body on cf stream webhooks update for compatibility with cf@1.0.0-rc.4 currently pinned in this repo (--notification-url was added in cf@1.0.0-rc.7).
  • Local validation ran pnpm run check, pnpm run lint, pnpm run format:core:check, pnpm run build, pnpm run lint:nimbus, and pnpm run test:prebuild -- --run (CI will run the Workers Vitest project, which does not resolve ../dist/__redirects cleanly from a sibling git worktree).

Documentation checklist

@github-actions github-actions Bot added product:stream Related to Stream product product:images Related to Image Resizing product labels Nov 30, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://docs-media-images-stream-cf-cli.previews.developers.cloudflare.com (commit fbfe2c9)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://654cc90c.previews.developers.cloudflare.com fbfe2c9 2026-12-01T01:21:36.605Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://a1dd88d9.previews.developers.cloudflare.com 2a4dae5 2026-11-30T23:53:10.357Z Visit the dashboard ↗

@MattieTK
MattieTK marked this pull request as ready for review December 1, 2026 00:53
@MattieTK
MattieTK requested review from a team, deannalam, dochne and renandincer as code owners December 1, 2026 00:53
@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

AI Review

✅ Reviewed fbfe2c9 · 1 finding · incremental · findings not verified

👉 Fix in your agent 👈
Fix the following review findings in PR #35860 (https://github.com/cloudflare/cloudflare-docs/pull/35860).

Before making changes, review each finding and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification.
- If you disagree, explain why.
- If you need clarification before deciding, ask those questions.
- Then share your plan for which issues to tackle and in what order.

After triaging, follow this order:
1. Post a comment on this PR for any findings you are skipping, with the finding ID and your reasoning.
2. Then commit the fixes for the legitimate findings.

The comment must come before the commit because the next review reads PR comments.

## Style Guide
- S-1e8a6b44 | src/content/docs/stream/manage-video-library/bindings.mdx:111 | Number and unit missing a space: `200MB`
  The rewritten line keeps `200MB` without a space between the number and unit. This PR already normalizes the same figure to `200 MB` in `stream/uploading-videos/direct-creator-uploads.mdx`.

Style Guide

  • src/content/docs/stream/manage-video-library/bindings.mdx:111 · Number and unit missing a space: 200MB

    The rewritten line keeps 200MB without a space between the number and unit. This PR already normalizes the same figure to 200 MB in stream/uploading-videos/direct-creator-uploads.mdx.

Commands
  • /review Run a review now.
  • /full-review Review the entire PR diff.
  • /disable-auto-review Stop automatic reviews.
  • /rebase Rebase against production.

@cloudflare-docs-bot

Copy link
Copy Markdown
Contributor

Review coverage

🟡 2 ownership areas need approval.

Suggested reviewers: @dochne @tsmith512

Needs approval Eligible approvers Suggested
images @deannalam, @dochne, @renandincer, @third774, @cloudflare/product-owners dochne
stream @renandincer, @third774, @tsmith512, @cloudflare/product-owners tsmith512
CODEOWNERS mappings for displayed areas (2)
Pattern Owners
/src/content/docs/images/ @deannalam, @dochne, @renandincer, @third774, @cloudflare/product-owners
/src/content/docs/stream/ @renandincer, @third774, @tsmith512, @cloudflare/product-owners

@MattieTK
MattieTK force-pushed the docs/media-images-stream-cf-cli branch from 2a4dae5 to fbfe2c9 Compare December 1, 2026 01:13
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Worker Preview URL: https://gh-docs-media-images-stream-cf-cli.previews.developers.cloudflare.com
Worker Preview Deployment URL: https://03fa76aa.previews.developers.cloudflare.com

Files with changes (up to 15)

Original Link Updated Link
https://developers.cloudflare.com/stream/edit-videos/applying-watermarks/ https://gh-docs-media-images-stream-cf-cli.previews.developers.cloudflare.com/stream/edit-videos/applying-watermarks/
https://developers.cloudflare.com/stream/edit-videos/adding-captions/ https://gh-docs-media-images-stream-cf-cli.previews.developers.cloudflare.com/stream/edit-videos/adding-captions/
https://developers.cloudflare.com/stream/viewing-videos/download-videos/ https://gh-docs-media-images-stream-cf-cli.previews.developers.cloudflare.com/stream/viewing-videos/download-videos/
https://developers.cloudflare.com/stream/manage-video-library/creator-id/ https://gh-docs-media-images-stream-cf-cli.previews.developers.cloudflare.com/stream/manage-video-library/creator-id/
https://developers.cloudflare.com/stream/examples/test-webhooks-locally/ https://gh-docs-media-images-stream-cf-cli.previews.developers.cloudflare.com/stream/examples/test-webhooks-locally/
https://developers.cloudflare.com/images/optimization/binding/ https://gh-docs-media-images-stream-cf-cli.previews.developers.cloudflare.com/images/optimization/binding/
https://developers.cloudflare.com/stream/get-started/ https://gh-docs-media-images-stream-cf-cli.previews.developers.cloudflare.com/stream/get-started/
https://developers.cloudflare.com/stream/transform-videos/bindings/ https://gh-docs-media-images-stream-cf-cli.previews.developers.cloudflare.com/stream/transform-videos/bindings/
https://developers.cloudflare.com/images/storage/binding/ https://gh-docs-media-images-stream-cf-cli.previews.developers.cloudflare.com/images/storage/binding/
https://developers.cloudflare.com/stream/uploading-videos/upload-via-link/ https://gh-docs-media-images-stream-cf-cli.previews.developers.cloudflare.com/stream/uploading-videos/upload-via-link/
https://developers.cloudflare.com/images/tutorials/optimize-user-uploaded-image/ https://gh-docs-media-images-stream-cf-cli.previews.developers.cloudflare.com/images/tutorials/optimize-user-uploaded-image/
https://developers.cloudflare.com/stream/uploading-videos/direct-creator-uploads/ https://gh-docs-media-images-stream-cf-cli.previews.developers.cloudflare.com/stream/uploading-videos/direct-creator-uploads/
https://developers.cloudflare.com/stream/manage-video-library/bindings/ https://gh-docs-media-images-stream-cf-cli.previews.developers.cloudflare.com/stream/manage-video-library/bindings/
https://developers.cloudflare.com/images/optimization/transformations/url/ https://gh-docs-media-images-stream-cf-cli.previews.developers.cloudflare.com/images/optimization/transformations/url/
https://developers.cloudflare.com/images/optimization/hosted-images/serve-private-images/ https://gh-docs-media-images-stream-cf-cli.previews.developers.cloudflare.com/images/optimization/hosted-images/serve-private-images/

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

Labels

product:images Related to Image Resizing product product:stream Related to Stream product size/xl

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant