From https://proton.me/blog/proton-drive-cli :
"Sign-in happens through your browser — no password on the command line."
which I can confirm having tried it myself. It's hard to imagine what the proton devs were thinking. Did the case of using a command line tool on a headless or remote server never occur to them?
The browser doesn't need to be running on the same machine.