# Access Environment from Postman CLI

**URL:** <https://community.postman.com/t/access-environment-from-postman-cli/45246>\
**Category:** Help Hub\
**Created:** [March 17, 2023, 6:06am UTC](https://community.postman.com/t/access-environment-from-postman-cli/45246 "2023-03-17T06:06:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![research-explorer-90](https://avatars.discourse-cdn.com/v4/letter/r/a6a055/32.png) [@research-explorer-90](https://community.postman.com/u/research-explorer-90)\
**Post date:** [March 17, 2023, 6:06am UTC](https://community.postman.com/t/access-environment-from-postman-cli/45246/1 "2023-03-17T06:06:42Z")

</div>

_My question_:  
I want to run a collection from command line but got assertion error.  
It shows that variables are not fetched .  
How to use Environment from postman in post man CLI

_Details (like screenshots)_:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/5/3/53918ea4dff1089403793a88eb867b5501f8d183.png)

_How I found the problem_:

_I’ve already tried_:  
I have already tried with -e “end\_id” but still didn’t work. Did I miss any setup for environment or something ??
