yq command not found
Asked by Ronak Toshniwal:

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| HI > ``` > image: atlassian/default-image:3 > pipelines: > #pull-requests: > branches: > 'Dev': > - step: > script: > #Assign variables > - export CLIURL=https://developer.salesforce.com/media/salesforce-cli/sfdx/channels/stable/sfdx-linux-x64.tar.xz > - export SFDX_AUTOUPDATE_DISABLE=false > - export SFDX_USE_GENERIC_UNIX_KEYCHAIN=true > - export SFDX_DOMAIN_RETRY=300 > - export SFDX_DISABLE_APP_HUB=true > - export SFDX_LOG_LEVEL=DEBUG > - export DEPLOYDIR=src > - export TESTLEVEL=RunLocalTests > #Create sfdx directory > - mkdir ~/sfdx > #Install Salesforce CLI > #By default, the script installs the current version of Salesforce CLI. To install the release candidate, set the DX_CLI_URL_CUSTOM local variable to the appropriate URL > #- wget -qO- ${DX_CLI_URL_CUSTOM-$CLIURL} | tar xJ -C ~/sfdx --strip-components 1 > - npm install sfdx-cli > - export PATH=~/sfdx/bin:$PATH > - sfdx --version > - sfdx plugins --core > > # Install utilities > > #- pip install yq > - npm install yq > - yq --version > ``` > ``` > ? > ``` giving this error [![image](https://user-images.githubusercontent.com/73140231/210359608-f30a6d36-56c4-4927-95c0-70fb1d4f4ac7.png)](https://user-images.githubusercontent.com/73140231/210359608-f30a6d36-56c4-4927-95c0-70fb1d4f4ac7.png) |


Answers:
author: Theodora Boudale
body: Hi [@Ronak Toshniwal](/t5/user/viewprofilepage/user-id/5107022) ,

Do you have a documentation page for the yq tool you are trying to install? I searched on the internet, and I found the following two tools:

**1st:** <https://mikefarah.gitbook.io/yq/>

**2nd:** <https://kislyuk.github.io/yq/>

Are you trying to install one of these two?

If you want to install the first one, please check the installation instructions here:

* <https://github.com/mikefarah/yq/#install>

I tried doing the installation using the following command that is provided there:

```
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq && chmod +x /usr/bin/yq
```

And then the **yq --version** command provides output.

If you want to install the second one, please check here:

* <https://kislyuk.github.io/yq/#installation>

You will first need to install pip3 with

```
apt update
apt install python3-pip
```

and then you can use the command **pip3 install yq** to install yq. Please also note that the documentation for this tool mentions that before using yq, you also have to install its dependency, jq. A link with instructions is provided in the doc.

<br />

If you are trying to install a different tool called yq, it would be useful to have its documentation page.

Kind regards,  
Theodora


author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

This means that your build environment (the shell within which the build is being run) does not include the path in which yq is installed, or the install of yq is failing.


Tags: atl-gruland

bitbucket-cloud

cloud