Skip to content

"fastly profile token" deprecation warning breaks inline use #1708

Description

@joeshaw

Version

Fastly CLI version v14.1.1 (548fb34)
Built with go version go1.25.8 darwin/arm64 (2026-03-23)
Viceroy version: viceroy 0.16.2

What happened

Sometime between fastly CLI version 11.4.0 and 14.1.1, the fastly profile token command was deprecated. The deprecation message is printed to standard out and is displayed despite the --quiet flag, which breaks its usage when substituted into other commands. For example, I often do something like:

curl -H "Fastly-Key: $(fastly profile token --quiet)" https://api.fastly.com/...

and this no longer works.

My suggested fix: obey the --quiet flag and don't print the deprecation warning in that case. Alternatively, print the deprecation warning to stderr rather than stdout.

Activity

  1. kpfleming commented on Mar 23, 2026

    @kpfleming
    Member

    Tangent: it wasn't 'some time', it was the release of version 14.0.0, and was documented here: https://www.fastly.com/documentation/reference/changes/2026/02/cli-v14.0.0/#deprecations

    Oddly, I remember discussion of this specific issue (emitting warnings to stdout) in recent CLI PRs, I'm surprised it wasn't handled properly for this change.

  2. kpfleming commented on Mar 24, 2026

    @kpfleming
    Member

    This will be included in today's release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions