google / clasp

🔗 Command Line Apps Script Projects
https://developers.google.com/apps-script/guides/clasp
Apache License 2.0
4.52k stars 422 forks source link

[FR] please provide option to specify port for clasp login #964

Open jk-kashe opened 1 year ago

jk-kashe commented 1 year ago

clasp login currently starts the server on a random port, which prevents usage working on a remote machine through ssh, as it's not possible to setup port forwarding to complete the login on the local machine.

Expected behaviour:

user should be able to run clasp login --port:nnnn to listen on a predefined port