Automating Cloud Foundry (CF) CLI Installation via Apps Manager
search cancel

Automating Cloud Foundry (CF) CLI Installation via Apps Manager

book

Article ID: 433075

calendar_today

Updated On:

Products

VMware Tanzu Application Service

Issue/Introduction

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.

Environment

TAS/EART 10.x

Resolution

  • First query the discovery metadata to find the exact version required to be downloaded.
     
curl -k "https://apps.<sys_domain>/proxy/cli-updates/?target=https://cli-updates.<sys_domain>/tanzu_cf_cli/discovery_metadata.json"

 

  • For Downloading the cf cli binary run the below command.
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>"

 

 

Additional Information

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.