Using CLI

CLI provides a set of commands that allows you to manage your applications, brokered services, spaces, domains, and other components on Cloud Foundry. Let me show you the most important commands you should know to be able to run your application on PWS:

  1. In order to deploy the application, you must first navigate to its directory. You should then sign in to PWS using the cf login command as follows:
$ cf login -a https://api.run.pivotal.io 
  1. The next step is to push the application to PWS with the cf push command, passing the service's name:
$ cf push account-service -p target/account-service-1.0.0-SNAPSHOT.jar
  1. Alternatively, you can provide manifest.yml in the application's root directory with all the required deployment settings. ...

Get Mastering Spring Cloud now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.