n8n - 💡(How to fix) Fix cli: restore publish:workflow --all flag [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
n8n-io/n8n#28609Fetched 2026-04-18 05:57:13
View on GitHub
Comments
2
Participants
2
Timeline
7
Reactions
0
Participants
Timeline (top)
commented ×2mentioned ×2subscribed ×2closed ×1
RAW_BUFFERClick to expand / collapse

Bug Description

In recent version the --all flag on the publish:workflow command has been removed and deprecated. This breaks deployment scripts as there are no way to enable all workflows at once.

To Reproduce

  1. Pull n8n 2.16
  2. Have some workflows unpublished
  3. run n8n publish:workflow --all

Expected behavior

The --all option should be restored to allow all workflows to be published at once.

Debug Info

Operating System

Ubuntu Linux 25.04

n8n Version

2.16.0

Node.js Version

24

Database

PostgreSQL

Execution mode

queue

Hosting

self hosted

extent analysis

TL;DR

The removal of the --all flag in the publish:workflow command in n8n version 2.16 breaks deployment scripts, and a workaround or alternative solution is needed to publish all workflows at once.

Guidance

  • Review the n8n documentation for alternative flags or commands that can achieve the same result as the deprecated --all flag.
  • Check if there are any open issues or pull requests on the n8n GitHub repository that address the removal of the --all flag and potential workarounds.
  • Consider scripting a solution that iterates over all unpublished workflows and publishes them individually using the publish:workflow command without the --all flag.
  • Reach out to the n8n community or support channels for guidance on how to handle the deprecation of the --all flag.

Notes

The removal of the --all flag is a deliberate change in n8n version 2.16, and it is unclear if it will be restored in future versions. Any workaround or solution may need to be adapted to future changes in the n8n command-line interface.

Recommendation

Apply a workaround, such as scripting a solution to publish all workflows individually, as the --all flag is deprecated and removed in n8n version 2.16.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

The --all option should be restored to allow all workflows to be published at once.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

n8n - 💡(How to fix) Fix cli: restore publish:workflow --all flag [2 comments, 2 participants]