# How to pass argument or value while running collection from newman

**URL:** <https://community.postman.com/t/how-to-pass-argument-or-value-while-running-collection-from-newman/7417>\
**Category:** Help Hub\
**Tags:** newman-project, variables, global-variable\
**Created:** [August 26, 2019, 12:05pm UTC](https://community.postman.com/t/how-to-pass-argument-or-value-while-running-collection-from-newman/7417 "2019-08-26T12:05:21Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Mark.Hudson](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/mark.hudson/32/5264_2.png) [@Mark.Hudson](https://community.postman.com/u/Mark.Hudson)\
**Post date:** [August 14, 2020, 4:12pm UTC](https://community.postman.com/t/how-to-pass-argument-or-value-while-running-collection-from-newman/7417/8 "2020-08-14T16:12:34Z")

</div>

Ah-ha, I fell for the forum’s copy-and-paste bug myself. Was puzzling over why it wasn’t working, only to discover that I had been using the invalid curly-quotes from earlier examples. Once I literally straightened them out, it worked!

- Bad: `–global-var “k=v” ; // bad em-dash & curly-quotes`
- Good: `--env-var "ev=5999222 ; // good double-minus & straight-quotes"`

References:

- [issue 764](https://github.com/postmanlabs/newman/issues/764) `--global-var` option added on Aug 22, 2017
- [issue 1799](https://github.com/postmanlabs/newman/issues/1799) `--env-var` option added in Newman v4.4.0.

---

_[View the full topic](https://community.postman.com/t/how-to-pass-argument-or-value-while-running-collection-from-newman/7417)._
