# Specify URL target through newman CLI

**URL:** <https://community.postman.com/t/specify-url-target-through-newman-cli/33426>\
**Category:** Help Hub\
**Tags:** newman-project, tests, collections\
**Created:** [March 12, 2022, 4:04pm UTC](https://community.postman.com/t/specify-url-target-through-newman-cli/33426 "2022-03-12T16:04:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![avionics-geoscienti7](https://avatars.discourse-cdn.com/v4/letter/a/7feea3/32.png) [@avionics-geoscienti7](https://community.postman.com/u/avionics-geoscienti7)\
**Post date:** [March 12, 2022, 4:04pm UTC](https://community.postman.com/t/specify-url-target-through-newman-cli/33426/1 "2022-03-12T16:04:22Z")

</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).

I’m trying to integrate Newman into Jenkins. Thing is, the URL endpoint is created during the runtime as part of the CI build. Newman needs to run tests on the URL which is generated only Jenkins created the endpoint.

With Newman, how can I specify the endpoint target URL using the CLI?

Thanks ahead!

---

<div class="post-metadata">

**Author:** ![ppp\_user](https://avatars.discourse-cdn.com/v4/letter/p/9de0a6/32.png) [@ppp\_user](https://community.postman.com/u/ppp_user)\
**Post date:** [March 14, 2022, 6:39am UTC](https://community.postman.com/t/specify-url-target-through-newman-cli/33426/2 "2022-03-14T06:39:19Z")

</div>

You can pass it by environment variable as parameter for newman, which of course needs to be set in URL in your collection.
