This article documents the supported method for programmatically discovering and downloading the CF CLI directly from the Apps Manager instance within your foundation.
Apps Manager provides a metadata endpoint that lists the current available versions and download paths for the CF CLI. This allows CI/CD scripts to dynamically fetch the correct installer for a specific environment.
TAS/EART 10.x
curl -k "https://apps.<sys_domain>/proxy/cli-updates/?target=https://cli-updates.<sys_domain>/tanzu_cf_cli/discovery_metadata.json"
curl -k -o cf10-cli.tgz "https://cli-updates.<sys_domain>/tanzu_cf_cli/<file name extracted from discovery_metadata.json ex)cf10-cli-linux-amd64.tar.gz>"
The URL structure for the metadata and binary repository is intended to remain consistent to support internal platform operations.These endpoints are integral to the "Tools" download section within the Apps Manager UI.
Note** Always check the discovery_metadata.json first rather than hardcoding filenames.