# Getting error "postman: command not found" while executing collection in Jenkins with Postman CLI

**URL:** <https://community.postman.com/t/getting-error-postman-command-not-found-while-executing-collection-in-jenkins-with-postman-cli/47147>\
**Category:** Help Hub\
**Tags:** tests, collections\
**Created:** [May 5, 2023, 6:46pm UTC](https://community.postman.com/t/getting-error-postman-command-not-found-while-executing-collection-in-jenkins-with-postman-cli/47147 "2023-05-05T18:46:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SachinGupta88](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/sachingupta88/32/14393_2.png) [@SachinGupta88](https://community.postman.com/u/SachinGupta88)\
**Post date:** [May 5, 2023, 6:46pm UTC](https://community.postman.com/t/getting-error-postman-command-not-found-while-executing-collection-in-jenkins-with-postman-cli/47147/1 "2023-05-05T18:46:35Z")

</div>

_My question_: I am getting an error while executing collection in Jenkins Pipeline, I am using Mac intel machine

_Details (like screenshots)_:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/f/0/f02a8c73d2c6772987ff9475534b2141e6f9f08c.png)

_Below is the pipeline script which has been generated from Postman, few things I have updated as required:_

> pipeline {  
> agent any
> 
> tools {nodejs “Node1”}
> 
> stages {  
> stage(‘Install Postman CLI’) {  
> steps {  
> sh ‘curl -o- “[https://dl-cli.pstmn.io/install/osx\_64.sh](https://dl-cli.pstmn.io/install/osx_64.sh)” | sh’  
> }  
> }  
> stage(‘Postman CLI Login’) {  
> steps {  
> sh ‘postman login --with-api-key PMAK-6031-2d4302912’  
> }  
> }  
> stage(‘Running collection’) {  
> steps {  
> sh ‘postman collection run “2219022-2501447e-c8” -e “221902ad-9e0b-cd0dd289edd1”’  
> }  
> }  
> }  
> }

Above Script has been generated from Postman CLI Configuration, see the below snapshot

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/1/d/1d7210baeee79bd08f536067911ab161519e4e4e.png)

See the below Jenkins logs error

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/b/2/b28d1947cdc5a91f41ffa7fe34c4cc3915a9a1ff.png)

---

<div class="post-metadata">

**Author:** ![satellite-candidat13](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@satellite-candidat13](https://community.postman.com/u/satellite-candidat13)\
**Post date:** [December 5, 2023, 9:14am UTC](https://community.postman.com/t/getting-error-postman-command-not-found-while-executing-collection-in-jenkins-with-postman-cli/47147/2 "2023-12-05T09:14:48Z")

</div>

Hi! @SachinGupta88 Any updates? I faced this error too

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [December 5, 2023, 2:57pm UTC](https://community.postman.com/t/getting-error-postman-command-not-found-while-executing-collection-in-jenkins-with-postman-cli/47147/3 "2023-12-05T14:57:42Z")

</div>

Hey @satellite-candidat13 👋

Welcome to the Postman Community! :postman:

Can you share your specific issue including screenshots, please?

The previous issue was seen over 7 months ago and the version of the CLI and the Postman platform has progressed a lot in that time.
