Skip to content

Support default output format for 'azd auth token' #7383

Description

@weikanglim

Summary

A review comment on #7356 raised a follow-up product question about the default output for azd auth token.

Original review comment: #7356 (comment)

Context

The suggestion was to consider making azd auth token default to JSON output so that running the command with no --output flag behaves the same as --output json.

Why this matters

For users, the default output format affects how easy the command is to use in shells, scripts, and tooling:

  • raw token output is convenient for command substitution and piping
  • JSON output is convenient when callers need both the token and expiry metadata

Follow-up questions

  • Should the default experience prioritize shell-friendly token output or machine-readable JSON?
  • If the command keeps raw token output by default, do we want another affordance for richer output beyond --output json?
  • Do any docs or examples need to be updated once the default behavior is finalized?

Metadata

Metadata

Assignees

Labels

area/authAuthentication, credentials, identityarea/core-cliCLI commands, cmd/, internal/cmd/

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions