How to send AUTH Key while using Newman CLI

Archived topic — this may be out of date.
Newman has been replaced by the Postman CLI, 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 lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.

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.

Hey @ahtashamali06 :wave:

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 :pray:
I am looking forward to hearing back from you!

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


and code snipped are that i am using to run the collection

Thanks for getting back!

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