# Accessing global variables when running collection using Newman

**URL:** <https://community.postman.com/t/accessing-global-variables-when-running-collection-using-newman/11133>\
**Category:** Help Hub\
**Created:** [March 2, 2020, 8:31pm UTC](https://community.postman.com/t/accessing-global-variables-when-running-collection-using-newman/11133 "2020-03-02T20:31:22Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![kevin.swiber](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kevin.swiber/32/3820_2.png) [@kevin.swiber](https://community.postman.com/u/kevin.swiber)\
**Post date:** [March 3, 2020, 1:32am UTC](https://community.postman.com/t/accessing-global-variables-when-running-collection-using-newman/11133/2 "2020-03-03T01:32:11Z")

</div>

Hi, @dcarva! Welcome.

Globals can be passed as a command line parameter, either as a JSON file path/URL (via `--globals`) or individually (via `--global-var`). See here: [https://github.com/postmanlabs/newman/#newman-run-collection-file-source-options](https://github.com/postmanlabs/newman/#newman-run-collection-file-source-options).

---

_[View the full topic](https://community.postman.com/t/accessing-global-variables-when-running-collection-using-newman/11133)._
