Newman - how to add and send multiple files stored in GitLab by newman

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 all,

I am here pretty new and I would like kindly ask you, everybody, for help with a problem that I solve in my project.

I already solved how to run collections via API key not only locally like this

newman run "https://api.getpostman.com/collections/<collection_id>?apikey=<my_postman_api_key>“ --environment “https://api.getpostman.com/environments/<environment_id>?apikey=<my_postman_api_key>” –

but the problem is that files are not uploaded during tests running
as you can see in the screen

I do not know how to get data to the requests to be uploaded.Both “Postman_Sprints_x.json” collection and data which I want to upload during request are send and the same level in GitLab.

I have already tried to use e. parameters --folder but there must be also set path (at least relative). I do not if this would be a way?

There is an example of structure in my “Postman_Sprints_x.json” and there are different “src” in the json file

Is there any possibility how to share/upload the files from GitLab to be used in Newman always after checkout the GIT on the local drive? I would appreciate any advice or clue how to solve.

The goal is to run the collection from any place or via eg. from Teamcity.

Thanks for your Help

Roman