cli icon indicating copy to clipboard operation
cli copied to clipboard

Add an option to disable the update check

Open tedmielczarek-fastly opened this issue 1 year ago • 1 comments

Every time I look at a CI log I see the A new version of the Fastly CLI is available message, because we only update the version we use as-needed.

I would like it if the CLI had an option of some sort to disable this check. An environment variable or config option would be perfect. A commandline option would work, but would mean I would have to remember to include it in every CLI invocation in CI.

From looking at the code I noticed that passing --quiet does silence this output, but in CI I explicitly use --verbose so that the logs contain enough information to diagnose issues that crop up.

tedmielczarek-fastly avatar Feb 27 '24 14:02 tedmielczarek-fastly

We already support a ttl attribute in config.toml for wasm-tools and Viceroy, and if that is set properly then no update checks are performed. Supporting this in the cli block in that file should be straightforward.

(edited: this would go into the cli block, not the fastly block)

kpfleming avatar Aug 16 '24 17:08 kpfleming