I know using Collection Runner in Postman you're able to check a 'Persist variables' checkbox. Is there any way of achieving this when using their cli tool Newman?
Eventually found that you can get desired outcome with adding --export-environment
like so:
newman run coll.json -e env.json --export-environment env.json
Link to a Github-issue here.