Unable to run VCF Consumption Command Line Interface VCF Commands due to 'getting credentials: exec: executable vcf not found'
search cancel

Unable to run VCF Consumption Command Line Interface VCF Commands due to 'getting credentials: exec: executable vcf not found'

book

Article ID: 408678

calendar_today

Updated On:

Products

VMware vSphere Kubernetes Service Tanzu Kubernetes Runtime

Issue/Introduction

After downloading the VCF CLI and following instructions to run vcf context commands, the following error message is returned:

vcf context create --endpoint=<Supervisor IP or hostname>
vcf context list
vcf context use <context name>

getting credentials: exec: executable vcf not found

Environment

vSphere Supervisor 9.

Cause

The VCF CLI is intended for OIDC workflows and generates a KUBECONFIG file for interfacing with the environment through this CLI tool.

Corresponding configuration files must be able to execute VCF CLI sub-commands to properly interact with the system.

This error message indicates that the VCF CLI binary executable "vcf" could not be found.

Resolution

Rename the extracted vcf-cli binary file to vcf.

Linux

mv vcf-cli vcf