wrangler containers stop/start/restart/logs #13172
alexminza
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
wrangler containers— missing instance lifecycle commands (restart,stop,start,logs,exec)Problem
wrangler containerscurrently supports listing and deleting containers/instances, but has no commands for day-to-day instance lifecycle management:restart— cannot restart a running container instance without deleting and redeployingstop/start— cannot stop an instance without deleting itlogs— cannot stream or tail container instance logs (must use the dashboard)exec/ssh— cannot execute commands inside a running instance for debuggingThis forces operators to either use the Cloudflare dashboard UI or make raw API calls to Cloudchamber for routine operations like restarting a misbehaving instance or inspecting logs during an incident.
Proposed commands
wrangler containers restart <ID> [--instance <INSTANCE_ID>]wrangler containers stop <ID> [--instance <INSTANCE_ID>]wrangler containers start <ID> [--instance <INSTANCE_ID>]wrangler containers logs <ID> [--instance <INSTANCE_ID>]--follow,--tail N,--since)wrangler containers exec <ID> --instance <INSTANCE_ID> -- <command>wrangler containers redeploy <ID>Current state (wrangler 4.76.0)
Existing
wrangler containerssubcommands:The gap: you can create, list, inspect, and destroy — but you cannot operate on running instances.
Workaround
Currently the only way to "restart" a container instance is to delete and redeploy, which causes downtime and requires re-running the full deployment pipeline. For logs, operators must navigate to the Cloudflare dashboard manually.
Use case
Running long-lived services (e.g., AI gateway, bot backends) on Cloudflare Containers that occasionally need restarts due to upstream software bugs, configuration changes, or memory leaks — without triggering a full redeployment cycle.
Beta Was this translation helpful? Give feedback.
All reactions