o365 login syntax error issue
o365 login command failed if the password contains a special character (>, ;)
login --authType password --userName [email protected] --password U#*h$CpY>GiU7q9:.KJ6sncYVL|;
Login command should work correctly
invalid syntax with ;
Git Bash on Windows 10
@ashokswain27 have you tried to enclose the password in double quotes? For example:
--password "U#*h$CpY>GiU7q9:.KJ6sncYVL|;"
o365 login --authType password --userName "[email protected]" --password "U#h$CpY>GiU7q9:.KJ6sncYVL|;"
o365 login --authType password --userName [email protected] --password "U#h$CpY>GiU7q9:.KJ6sncYVL|;"
Yes, tried with double quotes. It shows the below error:
Invalid Command. Showing Help.
If you add the --debug option to the command line, can you see what's exactly going over the wire and if the password is altered in any way?
Closing due to lack of response
@ashokswain27 , @VelinGeorgiev , @waldekmastykarz
Sorry to comment on an old issue, but I noticed it was closed only due to lack of response.
This works if you enclose your password with single quotes, not double quotes