Skip to content

The ergonomics of "fastly auth" are worse than the deprecated "fastly profile token" #1709

@joeshaw

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

Prior to fastly profile token being deprecated (see also #1708), I used it often in shell substitution when I needed an auth token. For example, calling the API directly using curl:

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

There's no equivalent fastly auth mode to display just the token for the given profile. You have to involve shell pipelines and external tools:

curl -H "Fastly-Key: $(fastly auth show --quiet --reveal | awk '/^Token:/ {print $2}' https://api.fastly.com/...

Please add a flag to display only the token!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions