# Environment variables not picked up by ClI

**URL:** <https://community.postman.com/t/environment-variables-not-picked-up-by-cli/89867>\
**Category:** Help Hub\
**Tags:** ssl, client-certificate, postmancli\
**Created:** [April 14, 2026, 11:22am UTC](https://community.postman.com/t/environment-variables-not-picked-up-by-cli/89867 "2026-04-14T11:22:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam-cimoch-d8f487b0](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@adam-cimoch-d8f487b0](https://community.postman.com/u/adam-cimoch-d8f487b0)\
**Post date:** [April 14, 2026, 11:22am UTC](https://community.postman.com/t/environment-variables-not-picked-up-by-cli/89867/1 "2026-04-14T11:22:12Z")

</div>

I tried to run a Postman collection via CLI. From what I found on internet CLI works only with collections in workspace that are pushed to postman cloud, not locally? Am I correct? ( **Resolved** )

I had my environment variables set locally, but they seemed not picked up. Then I tried to sync the environments to postman cloud. The envs synced, but their values remained empty. Is that a correct behaviour? ( **Still in question** )

Additinally my collection request chain only fails in PostmanCli, but works well with collection runner. ( **Resolved below** )

---

<div class="post-metadata">

**Author:** ![spaceflight-physicis](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/spaceflight-physicis/32/28603_2.png) [@spaceflight-physicis](https://community.postman.com/u/spaceflight-physicis)\
**Post date:** [April 14, 2026, 11:44am UTC](https://community.postman.com/t/environment-variables-not-picked-up-by-cli/89867/2 "2026-04-14T11:44:45Z")

</div>

Hey @adam-cimoch-d8f487b0 👋

Welcome to the Postman Community! :postman:

Postman CLI lets you run both cloud as well as local collections. You can specify the environment (local / cloud) as well and the variables will be resolved during the run execution.

For more details, check out the documentation : [Collection commands | Postman Docs](https://learning.postman.com/docs/postman-cli/postman-cli-collections#postman-collection-run)

Also, the AI support at [Postman documentation overview | Postman Docs](https://learning.postman.com/docs/introduction/overview) can greatly assist you in learning more about features.

Let us know if you still face any blocker with environment resolution / locally running the collection.

---

<div class="post-metadata">

**Author:** ![adam-cimoch-d8f487b0](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@adam-cimoch-d8f487b0](https://community.postman.com/u/adam-cimoch-d8f487b0)\
**Post date:** [April 14, 2026, 11:46am UTC](https://community.postman.com/t/environment-variables-not-picked-up-by-cli/89867/3 "2026-04-14T11:46:42Z")

</div>

@spaceflight-physicis

Hi There, thank you for your help.

I think I found the core issue to my problem. I need to present MTLS certificate during handshake. However I am not sure how to attach it to my request. It works by default in postman desktop app by adding it in settings.

Is there a way to do it on CLI level? My certificate is not picked up and the handshake fails. ( **Solved by ssl parameters** )

```auto
https://learning.postman.com/docs/postman-cli/postman-cli-collections

```

I would also like to know whether locally set values in environment variables are pushed to cloud. Seems like not to me, but it might be an issue.
