# How to send AUTH Key while using Newman CLI

**URL:** <https://community.postman.com/t/how-to-send-auth-key-while-using-newman-cli/22133>\
**Category:** Help Hub\
**Tags:** variables, authentication, collections, newman-project, tests\
**Created:** [March 31, 2021, 12:59pm UTC](https://community.postman.com/t/how-to-send-auth-key-while-using-newman-cli/22133 "2021-03-31T12:59:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahtashamali06](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@ahtashamali06](https://community.postman.com/u/ahtashamali06)\
**Post date:** [March 31, 2021, 12:59pm UTC](https://community.postman.com/t/how-to-send-auth-key-while-using-newman-cli/22133/1 "2021-03-31T12:59:00Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

Hi team i just start working on Newman CLI to automate my test case and save the response in csv file but when i try to run my collection in Newman is shows error " unable to verify the first certificate " so please let me is there anyway to pass authentication key in Newman like we pass in postman.

---

<div class="post-metadata">

**Author:** ![taehoshino](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/taehoshino/32/6608_2.png) [@taehoshino](https://community.postman.com/u/taehoshino)\
**Post date:** [April 1, 2021, 3:52am UTC](https://community.postman.com/t/how-to-send-auth-key-while-using-newman-cli/22133/2 "2021-04-01T03:52:27Z")

</div>

Hey @ahtashamali06 👋

So that we can understand your situation better, could you please tell me the following?

- Can you run the same collection if you use the in-app collection runner?
- What is the type of authorization you are using? (e.g. API key, Bearer token etc)
- Can you share a newman command that you are using and the screenshot of the error message?

Thanks for your cooperation on this in advance 🙏  
I am looking forward to hearing back from you!

---

<div class="post-metadata">

**Author:** ![ahtashamali06](https://avatars.discourse-cdn.com/v4/letter/a/a88e57/32.png) [@ahtashamali06](https://community.postman.com/u/ahtashamali06)\
**Post date:** [April 1, 2021, 5:12am UTC](https://community.postman.com/t/how-to-send-auth-key-while-using-newman-cli/22133/3 "2021-04-01T05:12:36Z")

</div>

Yes i am running same collection in postman runner and it work fine but when i try to run same collection by using newmam it shows this error that shown in below image

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/a/7/a74b49ec82a04d094e89ce6f9528bee4a84d7b9b.png)  
and code snipped are that i am using to run the collection  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/f/7/f7ae14746d9f3b2e7b39d11bfdb746d66f10384e.png)  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/c/c/cce640dd4834b242e03e9d4b8352a3b38c2f0e4c.png)

---

<div class="post-metadata">

**Author:** ![taehoshino](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/taehoshino/32/6608_2.png) [@taehoshino](https://community.postman.com/u/taehoshino)\
**Post date:** [April 6, 2021, 3:45am UTC](https://community.postman.com/t/how-to-send-auth-key-while-using-newman-cli/22133/4 "2021-04-06T03:45:31Z")

</div>

Thanks for getting back!

Can you also tell me what type of authorization you are using?
