stackit auth get-access-token
outputs token to stderr instead of stdout
#653
Labels
stackit auth get-access-token
outputs token to stderr instead of stdout
#653
Summary
The
stackit auth get-access-token
command currently outputs the access token to/dev/stderr
instead of/dev/stdout
. This behavior breaks standard CLI conventions and complicates usage in scripts and automation.Current Behavior
The access token is written to stderr.
Capturing the token in a variable requires redirecting stderr to stdout:
This approach also captures error messages in the variable. Example:
Expected Behavior
Impact
Suggested Fix
--output
to specify the output stream, if needed.Environment
The text was updated successfully, but these errors were encountered: