# Postman v10,postmanCLI execution of folder not picking environement variable

**URL:** <https://community.postman.com/t/postman-v10-postmancli-execution-of-folder-not-picking-environement-variable/40113>\
**Category:** Help Hub\
**Tags:** collections, postmancli\
**Created:** [October 17, 2022, 5:43am UTC](https://community.postman.com/t/postman-v10-postmancli-execution-of-folder-not-picking-environement-variable/40113 "2022-10-17T05:43:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veenadevi](https://avatars.discourse-cdn.com/v4/letter/v/c2a13f/32.png) [@Veenadevi](https://community.postman.com/u/Veenadevi)\
**Post date:** [October 17, 2022, 5:43am UTC](https://community.postman.com/t/postman-v10-postmancli-execution-of-folder-not-picking-environement-variable/40113/1 "2022-10-17T05:43:14Z")

</div>

My Postman request

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

Here is my CLI Command

postman login --with-api-key   
postman collection run 22942095-90a9a1e6-c1a3-4a81-ab5c-1b85fbffde94 -e 22942095-c64a7fe4-3150-4dc3-b798-e743bd89631d -i 22942095-ce474db4-81bf-4f97-9d75-818313cc39fe

the command included -e with the parameter. However, in execution, it’s not picking BaseURL comes from Environment variables  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/f/2/f24c3c29c5019e4dafb41285d42c4ace031b29c0.png)

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [October 17, 2022, 8:42am UTC](https://community.postman.com/t/postman-v10-postmancli-execution-of-folder-not-picking-environement-variable/40113/2 "2022-10-17T08:42:18Z")

</div>

Hi @Veenadevi  
Looking at that screenshot, it doesn’t pick up the other variable either.  
Are you sure that the collection and environment UIDs you are using are correct?

I just tried it myself using a basic example and it works…

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

---

<div class="post-metadata">

**Author:** ![Veenadevi](https://avatars.discourse-cdn.com/v4/letter/v/c2a13f/32.png) [@Veenadevi](https://community.postman.com/u/Veenadevi)\
**Post date:** [October 17, 2022, 9:44am UTC](https://community.postman.com/t/postman-v10-postmancli-execution-of-folder-not-picking-environement-variable/40113/3 "2022-10-17T09:44:28Z")

</div>

Yes , I am using correct UID of my Environment. If I pass as Environment variable for single value its taking

–env-var "BaseURL=“[http://URL.com](http://URL.com)” .However not picking directly from UID .Cross verified with

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

Still not picking

---

<div class="post-metadata">

**Author:** ![malvika-chaudhary](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/malvika-chaudhary/32/13746_2.png) [@malvika-chaudhary](https://community.postman.com/u/malvika-chaudhary)\
**Post date:** [October 18, 2022, 9:39am UTC](https://community.postman.com/t/postman-v10-postmancli-execution-of-folder-not-picking-environement-variable/40113/4 "2022-10-18T09:39:14Z")

</div>

Hi @Veenadevi👋

It seems your initial value of the environment variable is empty because of which Postman CLI is picking up empty value for your variable.

Postman CLI relies on the initial values of your variables that is stored in Postman. The current values are like session values and we do not store them on our Db.  
Read more about initial and current values of variable here: [Using variables | Postman Learning Center](https://learning.postman.com/docs/sending-requests/variables/)

Hope this helps solves your problem.

Regards  
Malvika

---

<div class="post-metadata">

**Author:** ![Veenadevi](https://avatars.discourse-cdn.com/v4/letter/v/c2a13f/32.png) [@Veenadevi](https://community.postman.com/u/Veenadevi)\
**Post date:** [October 18, 2022, 10:21am UTC](https://community.postman.com/t/postman-v10-postmancli-execution-of-folder-not-picking-environement-variable/40113/5 "2022-10-18T10:21:00Z")

</div>

Thanks @malvika-chaudhary …Its Solved my issue
