# How to use package Library in newman

**URL:** <https://community.postman.com/t/how-to-use-package-library-in-newman/60795>\
**Category:** Help Hub\
**Tags:** package-library\
**Created:** [May 8, 2024, 5:22am UTC](https://community.postman.com/t/how-to-use-package-library-in-newman/60795 "2024-05-08T05:22:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![shid19nov](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@shid19nov](https://community.postman.com/u/shid19nov)\
**Post date:** [May 8, 2024, 5:22am UTC](https://community.postman.com/t/how-to-use-package-library-in-newman/60795/1 "2024-05-08T05:22:48Z")

</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 am able to use the package library well in postman desktop.  
But in order to run the collection using newman , how can we export the package and provide the same to newman for running collection.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [May 8, 2024, 6:44am UTC](https://community.postman.com/t/how-to-use-package-library-in-newman/60795/2 "2024-05-08T06:44:58Z")

</div>

Hey @shid19nov 👋

As Newman is a separate project without a direct link back to Postman, the package library is not currently available to use with that tool.

The packages are not exportable and do not live with the Collection that you may be using. These can be freely used within the Postman UI though.

The package library is available to use with the latest version of the Postman CLI, for non free and basic users.

---

<div class="post-metadata">

**Author:** ![ronnieufst](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@ronnieufst](https://community.postman.com/u/ronnieufst)\
**Post date:** [May 8, 2024, 8:10am UTC](https://community.postman.com/t/how-to-use-package-library-in-newman/60795/3 "2024-05-08T08:10:32Z")

</div>

Hey @danny-dainton , you mention its not possible to export the packages at the moment, so i assume if you want to run the CLI using local files only, its then not possible to use the packages ?

Reason we are offline, is because our jenkins is limited to a local network, and doesn’t have the option to connect to postman online.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [May 8, 2024, 9:42am UTC](https://community.postman.com/t/how-to-use-package-library-in-newman/60795/4 "2024-05-08T09:42:04Z")

</div>

If you’re running local files, that are using packages, with the Postman CLI without logging in with your API Key (`postman login --with-api-key PMAK-1234`), you’d receive an error.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/e/f/eff39c9c8c01871cf95a1808f201f8aaf3cfc68e.png)

* * *

Running packages with the Postman CLI are only available of specific plans.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/c/b/cbf4190c8c87b456a4a2ee7cecd1b2457195fef5.png)

> **[Run a collection using the Postman CLI | Postman Learning Center](https://learning.postman.com/docs/postman-cli/postman-cli-run-collection/#running-a-collection-that-uses-test-data-files)**
>
> Postman is a collaboration platform for API development. Postman's features simplify each step of building an API and streamline collaboration so you can create better APIs—faster.

---

<div class="post-metadata">

**Author:** ![shid19nov](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@shid19nov](https://community.postman.com/u/shid19nov)\
**Post date:** [May 9, 2024, 5:47am UTC](https://community.postman.com/t/how-to-use-package-library-in-newman/60795/5 "2024-05-09T05:47:39Z")

</div>

hi @danny-dainton , thanks for the update , Do we have any future plan for package export and use outside the postman.  
Newman is widely used by people. It would be great feature to use exported package

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [May 9, 2024, 9:33am UTC](https://community.postman.com/t/how-to-use-package-library-in-newman/60795/6 "2024-05-09T09:33:38Z")

</div>

I don’t have any information on that.

You could raise that as a feature request over on the Newman repo:

> **[Issues · postmanlabs/newman](https://github.com/postmanlabs/newman/issues)**
>
> Newman is a command-line collection runner for Postman - Issues · postmanlabs/newman

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [June 8, 2024, 9:34am UTC](https://community.postman.com/t/how-to-use-package-library-in-newman/60795/7 "2024-06-08T09:34:01Z")

</div>

Closed on June 8, 2024, 9:34am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
