Pivotal/Cloud Foundry/CLI
From r00tedvw.com wiki
(Difference between revisions)
(→Quick Reference CF CLI) |
(→Quick Reference CF CLI) |
||
| Line 36: | Line 36: | ||
Show expanded details on an app | Show expanded details on an app | ||
<nowiki>~$ cf app <app_name></nowiki> | <nowiki>~$ cf app <app_name></nowiki> | ||
| + | |||
| + | ==cf logs== | ||
| + | Show logs from an app either as a snapshot or live stream | ||
| + | <nowiki>Snapshot: ~$ cf logs <app_name> --recent | ||
| + | Stream: ~$ cf logs <app_name></nowiki> | ||
Revision as of 16:39, 15 May 2018
Cloud Foundry | Cloud Foundry CLI
Contents |
Installing CF CLI
Mac OSX (High Sierra)
First start by installing homebrew package manager
~$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Tap the Cloud Foundry repo and install CF CLI
~$ brew tap cloudfoundry/tap ~$ brew install cf-cli
For good measure you should install git if you have not.
~$ brew install git
Quick Reference CF CLI
cf-login
Sign into PWS (Pivotal Web Services).
Man file
~$ cf login -u username -o org -s space -a api.run.pivotal.io
To logout it is as simple as
~$ cf logout
cf config
Set configuration variables such as language, timeouts, color, etc.
Man file | Localize
~$ $ cf config --locale YOUR_LANGUAGE Language Examples: English (US): en-US German: de-DE Spanish: es-ES
cf apps
Show all apps in your authenticated instance with their state and some details.
~$ cf apps
cf app
Show expanded details on an app
~$ cf app <app_name>
cf logs
Show logs from an app either as a snapshot or live stream
Snapshot: ~$ cf logs <app_name> --recent Stream: ~$ cf logs <app_name>