Outdated cf cli version in tag "latest", compared to tag "v22"

Open
#81 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
docker
Domain
cli, devops

Research direction

Start by inspecting the Docker image build and tag configuration, then reproduce the reported commands in fresh containers for latest and v22. Compare the bundled cf versions and verify that latest supports both cf login and cf auth with the intended current CLI version.

Written by the indexing model from the issue text.

Description

Dear colleagues,

I am not sure why, but latest seems to be a step backwards (2025 -> 2020):

>docker run -it docker.wdf.sap.corp:50000/ppiper/cf-cli:latest sh
$ cf -v
cf version 6.53.0+8e2b70a4a.2020-10-01

>docker run -it docker.wdf.sap.corp:50000/ppiper/cf-cli:v22 sh
$ cf -v
cf version 8.14.1+2bcb856.2025-06-10

This is NOT an issue (not really) while using "cf login" as it is still using CF CLI v3. But while using "cf auth" it's falling back to CF CLI v2:

>docker run -it docker.wdf.sap.corp:50000/ppiper/cf-cli:latest sh
$ cf login -a https://api.cf.sap.hana.ondemand.com -u andreas.meier@sap.com -p abc --skip-ssl-validation
API endpoint: https://api.cf.sap.hana.ondemand.com

[...]

API endpoint:   https://api.cf.sap.hana.ondemand.com (API version: 3.203.0)

>docker run -it docker.wdf.sap.corp:50000/ppiper/cf-cli:latest sh
$ cf api api.cf.sap.hana.ondemand.com --skip-ssl-validation
Setting api endpoint to api.cf.sap.hana.ondemand.com...
OK

$ cf auth andreas.meier@sap.com abc
Cloud Foundry API version 2.268.0 requires CLI version 8.0.0. You are currently on version 6.53.0+8e2b70a4a.2020-10-01. To upgrade your CLI, please visit: https://github.com/cloudfoundry/cli#downloads

For testing "cf login" vs. "cf auth" please use a new docker instance! When you perform "cf login" in same instance first, "cf auth" will run on CF CLI v3 as well.

For my environment, I cannot use "cf login" as I need to build spaces etc. first (which are required for "cf login" but not for "cf auth").

Thx & BR,
Andreas

Dominant language
Dockerfile
Stars
8
Forks
20
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SAP/devops-docker-cf-cli

All issues in SAP/devops-docker-cf-cli

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.