Skip to content

Conversation

@petebacondarwin
Copy link
Contributor

@petebacondarwin petebacondarwin commented Jan 23, 2026

Migrate containers and cloudchamber CLI commands from the legacy yargs defineCommand approach to the new createCommand pattern. This aligns these commands with the updated telemetry handling where events are dispatched directly from command handlers rather than middleware.

Builds on top of #12069


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: refactor

A picture of a cute animal (not mandatory, but encouraged)


Open with Devin

@changeset-bot
Copy link

changeset-bot bot commented Jan 23, 2026

⚠️ No Changeset found

Latest commit: 7dee593

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 23, 2026

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@12071

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@12071

miniflare

npm i https://pkg.pr.new/miniflare@12071

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@12071

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@12071

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@12071

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@12071

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@12071

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@12071

wrangler

npm i https://pkg.pr.new/wrangler@12071

commit: 7dee593

…reateCommand

Migrate containers and cloudchamber CLI commands from the legacy yargs
defineCommand approach to the new createCommand pattern. This aligns
these commands with the updated telemetry handling where events are
dispatched directly from command handlers rather than middleware.
@petebacondarwin petebacondarwin force-pushed the pbd/wrangler/migrate-containers-to-define-command branch from a073093 to db843d1 Compare January 23, 2026 18:01
Thanks to @vicb's feedback on GitHub, this:
- Adds printBanner behaviour to suppress the Wrangler version banner
  in non-interactive/CI mode and when using --json flag
- Adds hidden:false to all cloudchamber child commands/namespaces to
  override the inherited hidden:true from cloudchamberNamespace, which
  was preventing COMMANDS from showing in --help output
@petebacondarwin petebacondarwin marked this pull request as ready for review January 24, 2026 12:16
@petebacondarwin petebacondarwin requested review from a team as code owners January 24, 2026 12:16
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View issue and 5 additional flags in Devin Review.

Open in Devin Review

After feedback from Devin AI review, this adds the missing
behaviour.printBanner configuration to containersImagesListCommand
and containersImagesDeleteCommand to match their cloudchamber
equivalents. This ensures the banner is suppressed when using
--json flag or in non-interactive/CI environments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

1 participant