# Accessing Global Variables after Running Collection via CLI

**URL:** <https://community.postman.com/t/accessing-global-variables-after-running-collection-via-cli/49783>\
**Category:** Help Hub\
**Tags:** variables, collections\
**Created:** [July 20, 2023, 6:58pm UTC](https://community.postman.com/t/accessing-global-variables-after-running-collection-via-cli/49783 "2023-07-20T18:58:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marklar11](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@marklar11](https://community.postman.com/u/marklar11)\
**Post date:** [July 20, 2023, 6:58pm UTC](https://community.postman.com/t/accessing-global-variables-after-running-collection-via-cli/49783/1 "2023-07-20T18:58:41Z")

</div>

I just started using the CLI to run Collections. I can set global variables using the --global-var option when running the collection, and my Test script seems to be able to access and update the variables. However when the collection is over I cannot find the updated values using the web interface or UI (they appear blank). I can log the values to the console, however that is not ideal as it is messy and adds extra characters.

Hopefully I am overlooking something simple.

_Details (like screenshots)_:

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

_How I found the problem_:

Things were working fairly well using the UI.

_I’ve already tried_:

I have checked the global variables using the web interface and the UI. I have tried the “Persist” option when using the web interface. Exporting just shows the same blank values.
