Skip to Content
Mastering Spring Cloud
book

Mastering Spring Cloud

by Piotr Mińkowski
April 2018
Intermediate to advanced content levelIntermediate to advanced
432 pages
10h 38m
English
Packt Publishing
Content preview from Mastering Spring Cloud

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. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microservices with Spring Boot and Spring Cloud - Second Edition

Microservices with Spring Boot and Spring Cloud - Second Edition

Magnus Larsson

Publisher Resources

ISBN: 9781788475433Supplemental Content