-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Color output of sf org list
is very difficult to read in a white terminal window
#2647
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
Short answer to this is to turn off all colors by setting the environment variable: We have plans to handle CLI themes but it's not quite in a user friendly state yet. For the org categorization things: "cyan text for Production orgs (labeled 'DevHub' even if never used as such)" --> We try to identify and label devhubs as best we can. The command first checks the auth file for "magenta text for many sandbox orgs, which have no value in the output's Type column" --> We try to detect sandbox orgs and label them. The detection code was recently improved (within the past few months) so it could be that those sandboxes have been around for a while. If you re-auth to those sandboxes it will likely be marked as such, but I believe the CLI needs the associated production org auth info for this. If the CLI doesn't think it's a prod org, or sandbox, or scratch org, it doesn't have a type assigned. |
this isn't exactly a fix or replacement for requires: unlike
works fine on any dark/light theme (and can customize table colors with gum). |
Summary
In CLI V2 (I have
@salesforce/cli/2.23.20
),sf org list
produces colored text output, including:While this probably looks great for "dark mode" users, and others with a dark background in their terminal, it is very difficult to read for a user with a white (or other light color) background in their terminal window. I can only guess what accessibility issues it might raise for low vision users.
Steps To Reproduce
No Repo needed, just a system with a variety of authenticate orgs to list.
sf org list
Expected result
Results should be legible.
Actual result
Results are very difficult to read - especially yellow-on-white sandboxes. Please note that I cannot post a screenshot here because I do not want to publicly post user names or orgids, or even org aliases (which identify clients). I am willing to share screenshots directly with SF employees via email.
System Information
Mac OS 14.1.2
sf doctor
output clean.(Indidentally, the output of
sf version --verbose --json
is also colored, and in particular the punctuation (e.g. braces, brackets) is a very light grey that is almost invisible on a white background.)My normal terminal is the Mac OS terminal app, running zsh (with OhMyZSH) in a tmux session, however, I have reproduced this same behavior in
sh
(no zsh, no tmux).Additional information
The text was updated successfully, but these errors were encountered: