-
Notifications
You must be signed in to change notification settings - Fork 2
Usage
cf90 uses different approach compared to the official cf CLI. The main difference is that nothing happens behind the scenes and that's why the granularity of available operations is higher. It does not shield user from important details and also helps in understanding CF.
There are several main objects to work with
- target
- space
- organization
- domain
- route
- application
Cli defines commands based on these object, i.e. $ cf90 target.list
or $ cf90 app.create
. To get the complete list of available commands execute $ cf90 help
.
Each command accepts some additional parameters. They can be provided in the form of param=value
on the command line, e.g. $ cf90 target.use alias=pivotal
. If missing, user is prompted to provided those information on the screen.
cf90 enables configuring several different targets (Cloud Foundry instances). To see the list of configured targets use:
$ cf90 target.list
Right after the installation the list is empty. To new target execute:
$ cf90 target.add alias=pivotal-1 target=https://api.run.pivotal.io
$ cf90 target.add alias=pivotal-2 target=https://api.run.pivotal.io
$ cf90 target.add alias=private target=https://api.mycf.org
Notice that you can add several targets with same URL, but with different alias. This enables using same CF instance in case you have more than 1 account. Next step is to login:
$ cf90 target.login alias=pivotal-1
You'll be prompted to enter username
and password
. The login operation submits your credentials to CF token endpoint and retrieves access token
that will be used in further interaction. You can login to other configured targets.