CF CLI v10 Shows Error: [x] : cf command not found
search cancel

CF CLI v10 Shows Error: [x] : cf command not found

book

Article ID: 439604

calendar_today

Updated On:

Products

VMware Tanzu Application Service

Issue/Introduction

  • You get error: [x] : cf command not found after installing cf CLI v10
  • Your PATH variable is correctly setup and the  which cf command can find it
  • Using the full path to the CLI returns the same error
  • Running the CLI from other directories result in the same error

Environment

Linux

Cause

This can be caused if you have the noexec flag set on your home directory. The CLI stores executable plugins in $HOME/.tanzucf/plugins by default. The CLI will return error [x] : cf command not found if /home has the noexec flag.

Example:

[example@localhost ~]$ mount | grep /home
/dev/mapper/vg-home on /home type xfs (rw,noexec,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota)

Resolution

Set the TANZUCF_HOME variable to a directory that doesn't have the noexec flag. TANZUCF_HOME controls where the plugins get stored. You may also want to set CF_PLUGIN_HOME to the same directory. Please refer to the  Changing the plug-in directory documentation for more information