Skip to content

[BUG] generation does not work Nonexistent flag: --use-new-generatorΒ #1955

@EAlf91

Description

@EAlf91

Describe the bug.

Hey I just installed the cli like this and got the following error:

docs: https://www.asyncapi.com/docs/tools/generator/usage

brew install asyncapi 
asyncapi --version 
@asyncapi/cli/5.0.2 darwin-arm64 node-v25.2.1

asyncapi generate fromTemplate my.yaml @asyncapi/[email protected] --use-new-generator
WARNING: NODE_ENV value of 'production' did not match any deployment config file names.
WARNING: See https://github.com/node-config/node-config/wiki/Strict-Mode
WARNING: To disable this warning set SUPPRESS_NO_CONFIG_WARNING in the environment.
Error: Nonexistent flag: --use-new-generator
See more help with --help

Expected behavior

HTML generation works like described in the docs

Screenshots

see code above

How to Reproduce

Install cli using brew from scratch and run the command from above

πŸ–₯️ Device Information [optional]

  • Operating System (OS):
  • Browser:
  • Browser Version:

πŸ‘€ Have you checked for similar open issues?

  • I checked and didn't find similar issue

🏒 Have you read the Contributing Guidelines?

Are you willing to work on this issue ?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions