Skip to content

[FEATURE REQUEST] Ability to hide "update available" text, for specific subcommands #1494

@case-fastly

Description

@case-fastly

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

$(fastly profile token) is a handy way to access an API token because it simply prints the token… unless a CLI update is available, in which case it outputs the following:

$ fastly profile token
{token}

A new version of the Fastly CLI is available.
Current version: 11.2.0
Latest version: 11.3.0
Run `fastly update` to get the latest version.

Tools that assume the fastly profile token output will only be the {token} string will break when they encounter the "A new version…" text.

Describe the solution you'd like

Thinking out loud, there are probably a set of commands that make sense to have the "Update available" text be visible by default, and another set of commands that probably don't need to show it. (e.g. profile token)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions