Hello, in our organization we have UiPath On-Premise. Right now we want to connect UiPath to CLI to manage automation in orchestrator. The issue is when we use command uip login it forwards us to cloud based site where we don’t have resources. Instead when we try to connect to our local machine by uip login --interactive --tenant "[Tenant]" --authority "https://[our_hostname]/identity it shows Cannot find the requested page
Yes, UiPath CLI can work with an on-premises Orchestrator. In your case, it looks like uip login is using the default UiPath Cloud login, which is why it redirects you to the cloud site.
I would suggest first checking your UiPath CLI version and then verifying the Orchestrator URL, tenant name, and Identity URL used in your on-premises setup.
Also, try opening the /identity URL in a browser to confirm that the endpoint is accessible.
If you can share your Orchestrator version and UiPath CLI version, we may be able to identify the correct login command for your environment.