{"id":327,"date":"2026-04-01T12:00:00","date_gmt":"2026-04-01T12:00:00","guid":{"rendered":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/04\/01\/workflows-workers-all-wrangler-commands-for-workflows-now-support-local-development\/"},"modified":"2026-04-01T12:00:00","modified_gmt":"2026-04-01T12:00:00","slug":"workflows-workers-all-wrangler-commands-for-workflows-now-support-local-development","status":"publish","type":"post","link":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/04\/01\/workflows-workers-all-wrangler-commands-for-workflows-now-support-local-development\/","title":{"rendered":"Workflows, Workers &#8211; All Wrangler commands for Workflows now support local development"},"content":{"rendered":"<p>All <code>wrangler workflows<\/code> commands now accept a <code>--local<\/code> flag to target a Workflow running in a local <code>wrangler dev<\/code> session instead of the production API.<\/p>\n<p>You can now manage the full Workflow lifecycle locally, including triggering Workflows, listing instances, pausing, resuming, restarting, terminating, and sending events:<\/p>\n<div>\n<figure>\n<pre data-language=\"sh\"><code class=\"language-sh\"><div><div><span>npx<\/span><span> <\/span><span>wrangler<\/span><span> <\/span><span>workflows<\/span><span> <\/span><span>list<\/span><span> <\/span><span>--local<\/span><\/div><\/div><div><div><span>npx<\/span><span> <\/span><span>wrangler<\/span><span> <\/span><span>workflows<\/span><span> <\/span><span>trigger<\/span><span> <\/span><span>my-workflow<\/span><span> <\/span><span>--local<\/span><\/div><\/div><div><div><span>npx<\/span><span> <\/span><span>wrangler<\/span><span> <\/span><span>workflows<\/span><span> <\/span><span>instances<\/span><span> <\/span><span>list<\/span><span> <\/span><span>my-workflow<\/span><span> <\/span><span>--local<\/span><\/div><\/div><div><div><span>npx<\/span><span> <\/span><span>wrangler<\/span><span> <\/span><span>workflows<\/span><span> <\/span><span>instances<\/span><span> <\/span><span>pause<\/span><span> <\/span><span>my-workflow<\/span><span> <\/span><span>&lt;INSTANCE_ID&gt;<\/span><span> <\/span><span>--local<\/span><\/div><\/div><div><div><span>npx<\/span><span> <\/span><span>wrangler<\/span><span> <\/span><span>workflows<\/span><span> <\/span><span>instances<\/span><span> <\/span><span>send-event<\/span><span> <\/span><span>my-workflow<\/span><span> <\/span><span>&lt;INSTANCE_ID&gt;<\/span><span> <\/span><span>--type<\/span><span> <\/span><span>my-event<\/span><span> <\/span><span>--local<\/span><\/div><\/div><\/code><\/pre>\n<div>\n<div><\/div>\n<\/div>\n<\/figure>\n<\/div>\n<p>All commands also accept <code>--port<\/code> to target a specific <code>wrangler dev<\/code> session (defaults to <code>8787<\/code>).<\/p>\n<p>For more information, refer to <a href=\"https:\/\/developers.cloudflare.com\/workflows\/build\/local-development\/\">Workflows local development<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>All wrangler workflows commands now accept a &#8211;local flag to target a Workflow running in a local wrangler dev session instead of the production API. You can now manage the full Workflow lifecycle locally, including triggering Workflows, listing instances, pausing, resuming, restarting, terminating, and sending events: npx wrangler workflows list &#8211;localnpx wrangler workflows trigger my-workflow [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-327","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/comments?post=327"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/327\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/media?parent=327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/categories?post=327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/tags?post=327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}