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.
#Ugs cli Login?
1 messages · Page 1 of 1 (latest)
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.
I tried to log in, but it still returned CODE 51.Am I missing any steps?
That seems like it should work. Did you give the Service Account all the Cloud Code permissions?
yes,but same code 51, i have no any idea
the error seems to be when calling GetEnvironments. make sure there are no typos there.
You can also try deploying to production instead as a test
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.
Thank you, I logged in successfully. There were no errors. After selecting project roles and Unity environment admin in the Unity dashboard's service account, I found the correct settings.
also thanks for you
I'm glad it's working. Thanks @warm patio for jumping in quickly to help 🙏