(Rancher employee) I'm not sure what you're asking for but the UI is l00% static client-side code. Everything it does can by definition be automated through the API.
Getting the command to import a cluster is ~5 calls from a brand new server container.. Login with admin/admin, set a better password, set the server-url, create a cluster and get the registration token/command for it.
Getting the command to import a cluster is ~5 calls from a brand new server container.. Login with admin/admin, set a better password, set the server-url, create a cluster and get the registration token/command for it.