Using IBM Bluemix CLI
IBM Bluemix is a cloud-based platform for building, managing, and running all types of apps, such as web, mobile, big data, and smart devices.
IBM Bluemix platform provides Command Line Interface (CLI) to interact with your apps, virtual servers, and containers. You can navigate to Bluemix Region, Organization, Spaces etc using CLI and work on specific app or service.
To get started with IBM Cloud CLI:
1. Download the installer of your OS
- Mac OS X 64 bit: installer / checksum
- Windows 64 bit: installer / checksum
- Linux 64 bit: installer / checksum
- Click here for IBM Cloud CLI Installer all versions.
2. Run the installer
- For macOS and windows, just run the installer.
- For Linux, extract the package and run install_bluemix_cli script
3. Target an API endpoint and login to IBM Cloud
Now you are ready to manage IBM Cloud resouces. Type bluemix help or bx help to see the command descriptions.
IBM Cloud CLI frequently used commands
As per IBM Cloud (bx) document, from bx cli version 0.5.0, IBM Cloud command line client bundles a Cloud Foundry command line client in its installation.
Note: You can use the short format of bluemix commands; for example, bx api
is short for bluemix api
.
IBM Cloud API endpoint list
Germany: https://api.eu-de.bluemix.net
Sydney: https://api.au-syd.bluemix.net
US East: https://api.us-east.bluemix.net
US South: https://api.ng.bluemix.net
United Kingdom: https://api.eu-gb.bluemix.net
Frequently used IBM Cloud cli commands
1. Login to IBM Cloud bluemix cli
$ bx login
2. How to set API endpoint while loggin into IBM Cloud bluemix cli
$ bx login API_ENDPOINT
For example, lets’ set the IBM Cloud bluemix api endpoint as Sydney
$ bx api https://api.au-syd.bluemix.net
3. List all IBM Cloud regions
$ bx regions
Name | Geolocation | Customer | Deployment | Domain | CF API Endpoint | Type |
---|---|---|---|---|---|---|
eu-de | Germany | IBM | Production | eu-de.bluemix.net | https://api.eu-de.bluemix.net | public |
au-syd | Sydney | IBM | Production | au-syd.bluemix.net | https://api.au-syd.bluemix.net | public |
us-east | US East | IBM | Production | us-east.bluemix.net | https://api.us-east.bluemix.net | public |
us-south | US South | IBM | Production | ng.bluemix.net | https://api.ng.bluemix.net | public |
eu-gb | United Kingdom | IBM | Production | eu-gb.bluemix.net | https://api.eu-gb.bluemix.net | public |
4,623 total views, 3 views today