How to use Cloud Foundry to log in to IBM Bluemix?

I am trying to start using IBM Bluemix and want to use the Cloud Foundry CLI to log in and manage my applications. But I cannot figure out how to log in using the cf command. I think I am missing the API endpoint I have to provide for the cf login command:

cf login -a [API_URL] -u [USERNAME] -p [PASSWORD] 

I suspect I'm using the IBM ID username and password, but I'm not sure about API_URL. It seems like this should be a simple search question, but I could not find the answer.

+8
ibm-cloud
source share
2 answers

You set the api endpoint as follows:

 cf api https://api.ng.bluemix.net 

and then you log in to cf login .

Alternatively, you can use a European endpoint:

 cf api https://api.eu-gb.bluemix.net 

EDIT:

Alternatively, as you suggested, you can pass the API endpoint to cf login directly using the -a option:

 cf login -a https://api.ng.bluemix.net -u <ibm.com id> 
+16
source share

Found the answer to my question. API endpoint for IBM bluemix https://api.ng.bluemix.net . This was a key piece of information that I lacked to log into IBM Bluemix using CLI Cloud Foundry:

 cf login -a https://api.ng.bluemix.net -u <IBM ID Name> -p <IBM ID Password> 

I am impressed with how easy the rest of the cf command is for managing applications.

+5
source share

All Articles