https://www.ng.bluemix.net/docs/cli/reference/bluemix_cli/index.html
The Bluemix command line interface (CLI) provides a set of commands that are grouped by namespace for users to interact with Bluemix. Some Bluemix CLI commands, which are called bx commands, are wrappers of existing cf commands, and others are unique for Bluemix. The information that follows lists all commands that are supported by Bluemix CLI and includes their names, options, usage, prerequisites, descriptions, and examples.
Download it from Here
http://clis.ng.bluemix.net/ui/home.html
The following shows how to use it once you installed it for you operating System.
1. Target End Point
pasapicella@pas-macbook-pro:~$ bluemix api https://api.ng.bluemix.net
Invoke 'cf api https://api.ng.bluemix.net'...
Setting api endpoint to https://api.ng.bluemix.net...
OK
API endpoint: https://api.ng.bluemix.net (API version: 2.40.0)
Not logged in. Use 'bluemix login' to log in.
2. Login as shown below
pasapicella@pas-macbook-pro:~$ bluemix login -u pasapi@au1.ibm.com -p ****** -o pasapi@au1.ibm.com -s dev
Invoke 'cf login -u pasapi@au1.ibm.com -p ****** -o pasapi@au1.ibm.com -s dev'...
API endpoint: https://api.ng.bluemix.net
Authenticating...
OK
Targeted org pasapi@au1.ibm.com
Targeted space dev
API endpoint: https://api.ng.bluemix.net (API version: 2.40.0)
User: pasapi@au1.ibm.com
Org: pasapi@au1.ibm.com
Space: dev
3. Test the "bluemix info" call.
pasapicella@pas-macbook-pro:~$ bluemix info
Listing Bluemix info...
build: 221004
routing_endpoint: https://api.ng.bluemix.net/routing
console_endpoint: https://mccp.ng.bluemix.net
region: us-south
app_ssh_endpoint: ssh.ng.bluemix.net:2222
vms_endpoint: https://mccp.ng.bluemix.net
token_endpoint: https://mccp.ng.bluemix.net/uaa
containers_endpoint: https://mccp.ng.bluemix.net
version: 2
description: IBM Bluemix
user: b6c020b4-e11a-4630-a6a2-3f20fcec7f90
app_ssh_oauth_client: ssh-proxy
logging_endpoint: wss://loggregator.ng.bluemix.net:443
doppler_logging_endpoint: wss://doppler.ng.bluemix.net:4443
authorization_endpoint: https://mccp.ng.bluemix.net/login
api_version: 2.40.0
name: Bluemix
support: http://ibm.com
And my favorite which is the "bluemix list" command.
pasapicella@pas-macbook-pro:~$ bluemix list
Getting CF applications in org 'pasapi@au1.ibm.com' / space 'dev' as pasapi@au1.ibm.com...
Name Type State Instances Memory Disk URLs
bluemix-apples-springboot CF Application STARTED 1/1 512M 1G bluemix-apples-protozoological-yabby.mybluemix.net
containerbridge CF Application STOPPED 0/1 64M 1M
pas-bmspringboot-demo CF Application STARTED 1/1 512M 1G pas-bmspringboot-demo.mybluemix.net
pas-dotnet-helloworld CF Application STARTED 1/1 256M 1G pas-dotnet-helloworld.mybluemix.net
pas-mjalbums CF Application STARTED 1/1 512M 1G pas-mjalbums.mybluemix.net
pas-mobile-web CF Application STARTED 1/1 512M 1G pas-mobile-web.mybluemix.net
pas-mongodb-local CF Application STARTED 1/1 450M 1G pas-mongodb-local.mybluemix.net
pas-mysql-local CF Application STARTED 1/1 450M 1G pas-mysql-local.mybluemix.net
pas-postgresql-local CF Application STARTED 1/1 450M 1G pas-postgresql-local.mybluemix.net
pas-sb-elastic CF Application STARTED 1/1 450M 1G pas-sb-elastic.mybluemix.net
pas-SpringBootJARDemo CF Application STARTED 1/1 512M 1G pas-SpringBootJARDemo.mybluemix.net
pas-tonynode CF Application STARTED 1/1 512M 1G pas-tonynode.mybluemix.net
springboot-swagger-rest CF Application STARTED 1/1 512M 1G apples-sacroiliac-subfacies.mybluemix.net
Getting services in org 'pasapi@au1.ibm.com' / space 'dev' as pasapi@au1.ibm.com...
Name Type Service Plan Bound CF Apps Last Operation
API Management-wv Service Instance API Management APImStandardPlan
BlazeMeter-92 Service Instance blazemeter free-tier
cleardb-mysql Service Instance cleardb spark pas-SpringBootJARDemo
Cloudant-NoSQL-DB-mel-training Service Instance cloudantNoSQLDB Shared
dev_elephantsql Service Instance elephantsql turtle bluemix-apples-springboot, pas-postgresql-local, pas-SpringBootJARDemo
jhipster-postgresql Service Instance elephantsql turtle
pas-mongodb Service Instance mongodb 100 pas-mongodb-local
pas-mongodb-lab Service Instance mongolab sandbox
pas-mysql Service Instance cleardb spark containerbridge, pas-mjalbums, pas-mysql-local
pas-telstrademo-cloudantNoSQLDB Service Instance cloudantNoSQLDB Shared
todo-mongo-db Service Instance mongolab sandbox
Twilio-7b Service Instance
Getting containers in org 'pasapi@au1.ibm.com' / space 'dev' as pasapi@au1.ibm.com...
No containers were found.
Getting container groups in org 'pasapi@au1.ibm.com' / space 'dev' as pasapi@au1.ibm.com...
Name Type State Instances Memory URLs
pas-etherpad1 Container Group RESIZE_FAILED 0/1 256M pas-etherpad1.mybluemix.net
pas-sb-container Container Group UPDATE_COMPLETE 1/1 512M pas-sb-container.mybluemix.net
pas-mysql-container Container Group CREATE_COMPLETE 1/1 512M
Getting VM groups in org 'pasapi@au1.ibm.com' / space 'dev' as pasapi@au1.ibm.com...
No VM groups were found.
1 comment:
Awesome, as usual!
Post a Comment