Using CM commands with cloud hosted repos

Hello!
I am writing a python wrapper for CM and I’d like to have repo controls exposed for switching between local and cloud repos, as well as verification and administration. When I try to use CM to determine its behavior when using the repo commands, I get the following:

D:\wkspaces\gitsync-test>cm repo list repserver:sr_tech@cloud
The remote server returned an error: (404) Not Found.
Unknown user: 'No user specified'. Please check your current credentials. Remember that user names are case-sensitive!

We have been mostly using Cloud while we set up the infrastructure to be able to sync cloud to an on-premise server, but we have some devs who work using a local server and then sync from that to the cloud. All that to say, we are largely signed in via SSO through our UnityIDs.
Is there any way for CM to interact with cloud repos? My WorkspaceServer config in client.conf isn’t set and I’m not sure what to set it to since I’m sure it is looking for a domain and port number based on what I see in the docs.
If there is no way for CM to interact with cloud repos, do you have any suggestions? I’d like to have a repository object that can take actions on the server if the user has permissions. Is it better to have a “dumb” repository field that is parsed from cm status and do repository actions outside of my wrapper?

Hi @celeste_srtech ,

Plastic SCM(UVCS) has Client REST API and Server Rest API
In addition, the cm command should work for the cloud server as well. The reason why you are having the error is the client.conf files that the cm.exe relying on for credentials does not have a proper username/password for it.

Please open a support ticket with more detailed information, such as what kinds of wrappers you are making or their purpose, and I can help you further with a more detailed explanation.

1 Like