#Ugs cli Login?

1 messages · Page 1 of 1 (latest)

heavy spade
#

Could someone please teach me how to log in to the UGS CLI? I've correctly configured the permissions in my Service account, but when I try to deploy cloud code during login, it returns code 51. I checked, and code 51 means invalid token, but the credentials I copied from the Unity Cloud Dashboard during login should be correct. It just keeps returning code 51.

warm patio
#

Logging in just needs the service account key and secret.
Does the same thing happen from the Deployment window in the Editor?

Safely stores the Service Account Key ID and Secret key locally.

heavy spade
warm patio
heavy spade
#

yes,but same code 51, i have no any idea

warm patio
red cobalt
#

the error seems to be when calling GetEnvironments.
Most operations within the CLI require us to fetch the environments at one point or another, so the environment read access is required.

Additionally we've noticed some cases where the environment write access is required, and we're going to be looking in to that (we never should require write access).

In the meantime, @heavy spade if you can try adding environment read/write settings to your service account, this should hopefully fix the issue.

heavy spade
red cobalt
#

I'm glad it's working. Thanks @warm patio for jumping in quickly to help 🙏