Use newman to run postman test in command line, but where to export environment variable json file

hi all, i want to use newman to run postman api test as a comand line tool, i try to export postman api collection json, it is ok, but my api need specified environment variable and global variable, i found global variable export function, but where to export environment variable, i didn’t find it.

Hi @wayne.wu,

This page shows how you can export your environment:

Once you have it exported you can pass it as a parameter to newman using the -e flag. You can find more information here: