You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cf login doesn't work properly when password specified with mutliple special characters. #3399
Please fill out the issue checklist below and provide ALL the requested information.
[ x] I reviewed open and closed github issues that may be related to my problem.
[ x] I tried updating to the latest version of the CF CLI to see if it fixed my problem.
I attempted to run the command with CF_TRACE=1 to help debug the issue.
I am reporting a bug that others will be able to reproduce.
Describe the bug and the command you saw an issue with
Command CF login
I have an application that calls cf cli internally.
I run cf login -u username -p password
When the password has special characters , cf login fails.
For eg.,
for demo purpose let's say imaginary password "-ig@ZlHDVZl_"
Activity
Samze commentedon May 28, 2025
Thanks for raising this @ashlymat. As a workaround you could use
and provide the password via the CF_PASSWORD environment variable (ensuring it is escaped properly). See
cf auth --help.Alternatively you could try and escape the password itself as described in the example