cloudfoundry-attic / cfdev

A fast and easy local Cloud Foundry experience on native hypervisors, powered by LinuxKit with VPNKit
Apache License 2.0
226 stars 64 forks source link

How to upgrade CAPI version? #60

Closed emailtowalter closed 5 years ago

emailtowalter commented 5 years ago

I try to use the V3 API , e.g. cf v3-apps, and get this error. "This command requires CF API version 3.27.0 or higher. Your target is 3.17.0."

My version of the PCFDev is "PCF Dev version 0.30.0 (CLI: 850ae45, OVA: 0.549.0)"

Is there a way to upgrade CAPI?

Thanks

aemengo commented 5 years ago

@emailtowalter You're currently using an outdated version of the cfdev plugin. Please uninstall the plugin and re-install in the following way. It will have the upgraded CAPI version.

$ cf install-plugin -r CF-Community "cfdev"
...
$ cf dev version
CLI: 0.0.12
emailtowalter commented 5 years ago

Just realized that I installed PCFDev. It stops me from installing cf dev cli.

Then the question is what is the difference between PCF Dev and CF Dev. Seems both documentation are actively updated.

Thanks,

aemengo commented 5 years ago

The architecture of the previous PCF Dev proved to be unamenable to upgrades in CF release versions. The new CF Dev was re-implemented with this issue in mind, and thus is receiving all future engineering attention. From a user perspective, the new CF Dev also has these key improvements:

sclevine commented 5 years ago

To clarify, the new PCF Dev is an extension of CF Dev that can be downloaded from PivNet. You can download the "PCF Dev - PAS" ISO file and use cf dev start -f /path/to/pcfdev-pas.v.2.0.22-build.0.101.0.iso to start it.

This is currently significantly more resource intensive that the old PCF Dev, but we're actively working to improve that.