You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] CLI does not support reading AsyncAPI documents from stdin (-) and fails with misleading error #2011
The AsyncAPI CLI does not support reading an AsyncAPI document from stdin using - as the input path.
When - is provided, the CLI treats it as a literal file path and fails during AsyncAPI file resolution, emitting an error that only lists file paths, URLs, or contexts as valid inputs. This behavior is not documented.
While stdin support is not explicitly documented as supported, - is a widely accepted convention in Unix-style CLIs. The lack of stdin handling breaks common pipeline and automation workflows and forces users to write temporary files to disk, reducing CLI composability and usability in CI and scripting scenarios.
Expected behavior
If the AsyncAPI file argument is -, the CLI should read the AsyncAPI document from stdin and proceed with generation normally.
If stdin input is not supported, the CLI should fail immediately with a clear and explicit error message stating that reading from stdin (-) is not supported.
The CLI should not attempt file, URL, or context resolution when - is used as the input argument.
Run the AsyncAPI CLI using stdin as the input source:
asyncapi generate fromTemplate - @asyncapi/html-template -o out < asyncapi.yaml
Observe that the CLI fails to locate the AsyncAPI document and does not read from stdin, instead showing an error describing only file paths, URLs, or contexts as valid inputs.
Activity
sahillllllllll-bit commentedon Feb 7, 2026
@Shurtu-gal @AayushSaini101 @Souvikns waiting for approval to submit pr:)
fix: support reading AsyncAPI documents from stdin (-)
1164148-7-eng commentedon Apr 21, 2026
/attempt #2011
I've claimed this issue. Working on it now! 🚀
feat: support reading AsyncAPI documents from stdin using "-" (asynca…
1164148-7-eng commentedon Apr 22, 2026
/attempt #2011
I've claimed this issue. Working on it now! 🚀