redocly-cli icon indicating copy to clipboard operation
redocly-cli copied to clipboard

Suppress update now logging

Open artsiommiksiuk opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

I want to be able to hide this update now message on every run:


    ╔═══════════════════════════════════════════════════════╗
    ║                                                       ║
    ║  A new version of Redocly CLI (1.18.0) is available.  ║
    ║  Update now: `npm i -g @redocly/cli@latest`.          ║
    ║  Changelog: https://redocly.com/docs/cli/changelog/   ║
    ║                                                       ║
    ╚═══════════════════════════════════════════════════════╝

Describe the solution you'd like

cli option like --no-update-check, or config option for that will do.

Describe alternatives you've considered

I looked through documentation and issues, but didn't find any solution.

artsiommiksiuk avatar Jul 18 '24 13:07 artsiommiksiuk

Thanks for the suggestion. As an immediate workaround, this message is suppressed if you run the CLI from a continuous integration environment, so you can set an environment variable CI to true to avoid seeing this message.

lornajane avatar Jul 19 '24 13:07 lornajane