# \#cli

**URL:** https://community.postman.com/tag/cli/242.md

[Latest](https://community.postman.com/latest.md) · [Categories](https://community.postman.com/categories.md) · [Tags](https://community.postman.com/tags.md)

---

## [How to use postman cli with local yaml files](https://community.postman.com/t/how-to-use-postman-cli-with-local-yaml-files/89557)

<div class="topic-metadata">

**Author:** [@joint-operations-co8](https://community.postman.com/u/joint-operations-co8)\
**Replies:** 1\
**Last updated:** [March 25, 2026, 8:19am UTC](https://community.postman.com/t/how-to-use-postman-cli-with-local-yaml-files/89557 "2026-03-25T08:19:32Z")

</div>

I upgrade my postman app, my local files which are integrated with our git were no longer supported and they have been migrated to the yaml format. Fine, yaml is actually nicer to work with than the mega json collection…

---

## [Postman CLI - Not picking up or setting Environment variables from Collection Pre-request](https://community.postman.com/t/postman-cli-not-picking-up-or-setting-environment-variables-from-collection-pre-request/86997)

<div class="topic-metadata">

**Author:** [@faisalk-ps](https://community.postman.com/u/faisalk-ps)\
**Replies:** 6\
**Last updated:** [November 25, 2025, 5:51pm UTC](https://community.postman.com/t/postman-cli-not-picking-up-or-setting-environment-variables-from-collection-pre-request/86997 "2025-11-25T17:51:49Z")

</div>

Hi, When I run a collection with an environment using Postman CLI it doesn’t seem to set or pickup the environment variables: postman collection run (collection-uuid) -e (environment-uuid) This is the format of the …

---

## [Unable to run CLI - the Postman server returned status code: 401](https://community.postman.com/t/unable-to-run-cli-the-postman-server-returned-status-code-401/86721)

<div class="topic-metadata">

**Author:** [@johnDT](https://community.postman.com/u/johnDT)\
**Replies:** 4\
**Last updated:** [November 17, 2025, 2:47pm UTC](https://community.postman.com/t/unable-to-run-cli-the-postman-server-returned-status-code-401/86721 "2025-11-17T14:47:24Z")

</div>

In Azure DevOps, We started getting this error when running our tests in the CLI Pipeline. I have changed the api-key and set it to never expire. I am still getting a 401. Nothing has changed outside of the collection

---

## [Postman CLI Variable Handling is not consistent](https://community.postman.com/t/postman-cli-variable-handling-is-not-consistent/85212)

<div class="topic-metadata">

**Author:** [@johnDT](https://community.postman.com/u/johnDT)\
**Replies:** 2\
**Last updated:** [October 13, 2025, 1:22pm UTC](https://community.postman.com/t/postman-cli-variable-handling-is-not-consistent/85212 "2025-10-13T13:22:20Z")

</div>

Issue: Postman Collections run through CLI from Azure Dev Ops inconsistently writes values to global, environmental, and collection variables and causes tests to have false negatives. Steps to Reproduce: Setup CLI Pip…

---

## [Postman CLI Publish API Error: Unable to find a Git branch connected to this API](https://community.postman.com/t/postman-cli-publish-api-error-unable-to-find-a-git-branch-connected-to-this-api/76605)

<div class="topic-metadata">

**Author:** [@jhillamwins](https://community.postman.com/u/jhillamwins)\
**Replies:** 3\
**Last updated:** [May 13, 2025, 4:38am UTC](https://community.postman.com/t/postman-cli-publish-api-error-unable-to-find-a-git-branch-connected-to-this-api/76605 "2025-05-13T04:38:03Z")

</div>

I have an API set up with Postman Teams, connected to a GitHub repository. I can publish the API without issues using the Postman desktop app. However, I’m encountering difficulties when trying to publish the API via the…

---

## [Self signed certificate error Postman CLI](https://community.postman.com/t/self-signed-certificate-error-postman-cli/71517)

<div class="topic-metadata">

**Author:** [@Coxjeffrey](https://community.postman.com/u/Coxjeffrey)\
**Replies:** 6\
**Last updated:** [December 5, 2024, 2:33pm UTC](https://community.postman.com/t/self-signed-certificate-error-postman-cli/71517 "2024-12-05T14:33:41Z")

</div>

Hello, When I try to run a collection in the postman CLI I’m getting this error when I’m trying to login on the cli. Can’t find any solutions on the internet. I already have SSL certificate verification turned off.

---

## [Not able to run my collection in CLI same is running functional](https://community.postman.com/t/not-able-to-run-my-collection-in-cli-same-is-running-functional/69043)

<div class="topic-metadata">

**Author:** [@lunar-module-operato](https://community.postman.com/u/lunar-module-operato)\
**Replies:** 7\
**Last updated:** [October 8, 2024, 2:04pm UTC](https://community.postman.com/t/not-able-to-run-my-collection-in-cli-same-is-running-functional/69043 "2024-10-08T14:04:04Z")

</div>

I need some help, My issue is my collections are running successfully in functional mode but same when i wan to run from CLI or Scheduled runs, my scripts are failing. Its is giving " \[401 Unauthorized, 299B, 1809ms\] …

---

## [Folders Not Included During Collection Run Through CLI](https://community.postman.com/t/folders-not-included-during-collection-run-through-cli/64906)

<div class="topic-metadata">

**Author:** [@gourish-mahale](https://community.postman.com/u/gourish-mahale)\
**Replies:** 6\
**Last updated:** [August 2, 2024, 4:42pm UTC](https://community.postman.com/t/folders-not-included-during-collection-run-through-cli/64906 "2024-08-02T16:42:35Z")

</div>

I’ve noticed this peculiar issue where in some folder including Postman requests are not getting executed while running the collection through CLI. My Folder structure looks something like this: Collection Persona M…

---

## [Error: runtime~extractRunnableItems: Unable to find a folder](https://community.postman.com/t/error-runtime-extractrunnableitems-unable-to-find-a-folder/58496)

<div class="topic-metadata">

**Author:** [@luisbriceno](https://community.postman.com/u/luisbriceno)\
**Replies:** 3\
**Last updated:** [March 12, 2024, 4:14pm UTC](https://community.postman.com/t/error-runtime-extractrunnableitems-unable-to-find-a-folder/58496 "2024-03-12T16:14:15Z")

</div>

Question regarding Newman CLI 6.1.1, and the –folder \[name\] feature. My goal is to call the specific request within a collection. Based on the following command: newman run "collection\_file.json" -e "environment\_fil…

---

## [OAuth isn't passing to the request in CLI](https://community.postman.com/t/oauth-isnt-passing-to-the-request-in-cli/57057)

<div class="topic-metadata">

**Author:** [@nategerman](https://community.postman.com/u/nategerman)\
**Replies:** 5\
**Last updated:** [January 31, 2024, 12:45pm UTC](https://community.postman.com/t/oauth-isnt-passing-to-the-request-in-cli/57057 "2024-01-31T12:45:30Z")

</div>

I am attempting to run a request in postman cli, but I continually receive a 401 Unauthorized response. The request works consistently when run through the postman app, but fails every time when run through the CLI. Any…

---

## [Editing Environmental variables while using Postman CLI](https://community.postman.com/t/editing-environmental-variables-while-using-postman-cli/53080)

<div class="topic-metadata">

**Author:** [@nategerman](https://community.postman.com/u/nategerman)\
**Replies:** 4\
**Last updated:** [October 16, 2023, 8:48pm UTC](https://community.postman.com/t/editing-environmental-variables-while-using-postman-cli/53080 "2023-10-16T20:48:55Z")

</div>

I have been looking for clarification as to if you can update an environmental variable from a pre-script or test script of a request when running the collection via Postman CLI. There is clear documentation for accessin…

---

## [Running the tests in Newman CLI gives 400 Bad Request](https://community.postman.com/t/running-the-tests-in-newman-cli-gives-400-bad-request/47259)

<div class="topic-metadata">

**Author:** [@dragosionut115](https://community.postman.com/u/dragosionut115)\
**Replies:** 13\
**Last updated:** [May 10, 2023, 5:59am UTC](https://community.postman.com/t/running-the-tests-in-newman-cli-gives-400-bad-request/47259 "2023-05-10T05:59:42Z")

</div>

Hi guys. I tried different solutions but nothing seems to work. I’m a beginner in Postman/Newman collections. My end goal is to have a working solution with Newman being integrated with Jenkins. So, I have the collectio…

---

## [Response/Authentication via CLI](https://community.postman.com/t/response-authentication-via-cli/41856)

<div class="topic-metadata">

**Author:** [@dustenwithane](https://community.postman.com/u/dustenwithane)\
**Replies:** 4\
**Last updated:** [February 21, 2023, 2:23pm UTC](https://community.postman.com/t/response-authentication-via-cli/41856 "2023-02-21T14:23:30Z")

</div>

My company provides a downloadable collection for interfacing with their product via Postman API. I’m able to authenticate and run the methods/responses within their provided collection within the Postman app, but runs o…

---

## [Postman CLI - Collection run](https://community.postman.com/t/postman-cli-collection-run/39307)

<div class="topic-metadata">

**Author:** [@xUrko](https://community.postman.com/u/xUrko)\
**Replies:** 2\
**Last updated:** [December 20, 2022, 4:49am UTC](https://community.postman.com/t/postman-cli-collection-run/39307 "2022-12-20T04:49:12Z")

</div>

I have installed Postman CLI and exported the collection and environment from the Postman agent. The collection has two requests. The first one is a call for a session token, which is stored as a variable in the environ…

---

## [Postman-CLI crash - JavaScript heap out of memory](https://community.postman.com/t/postman-cli-crash-javascript-heap-out-of-memory/40319)

<div class="topic-metadata">

**Author:** [@douglasmccormickjr](https://community.postman.com/u/douglasmccormickjr)\
**Replies:** 1\
**Last updated:** [October 31, 2022, 8:08pm UTC](https://community.postman.com/t/postman-cli-crash-javascript-heap-out-of-memory/40319 "2022-10-31T20:08:05Z")

</div>

My question: I’ve installed and am using the Postman-CLI on my windows machine. It crashed when it got to my 2 of 3 iteration. I’m getting this message: FATAL ERROR: Reached heap limit Allocation failed - JavaScript h…

---

## [Are there Postman (not newman) Command line options?](https://community.postman.com/t/are-there-postman-not-newman-command-line-options/15293)

<div class="topic-metadata">

**Author:** [@tnarik](https://community.postman.com/u/tnarik)\
**Replies:** 1\
**Last updated:** [February 11, 2021, 5:30pm UTC](https://community.postman.com/t/are-there-postman-not-newman-command-line-options/15293 "2021-02-11T17:30:35Z")

</div>

Hi, I’m aware of Newman (and I’m already using it for some automations), but I was wondering if there are parameters/options similar to -e \<environment\> which could be used to select the default Postman environment to b…

---

## [Newman install Error Etimedout 104.16.27.35:80](https://community.postman.com/t/newman-install-error-etimedout-104-16-27-35-80/3695)

<div class="topic-metadata">

**Author:** [@Anbissa.Subbiah](https://community.postman.com/u/Anbissa.Subbiah)\
**Replies:** 0\
**Last updated:** [January 2, 2019, 1:45pm UTC](https://community.postman.com/t/newman-install-error-etimedout-104-16-27-35-80/3695 "2019-01-02T13:45:48Z")

</div>

Hello This is the error I get when I try to install Newman through NPM. ETIMEDOUT ETIMEDOUT request to http://registry.npmjs.org/newman failed, reason: connect ETIMEDOUT 104.16.24.35:80 This is a problem related to net…
