I've used variables at environment, gloabl & collection level scope in my tests. I'm aware of the flags to be used for environment & gloabl level scope i.e. -e & -g respectively.
I'm not able to find flag to be used to pass the collection level variables json file in command line to execute my postman automated tests in newman.
Please help me out.
The collection-variables are part of the collection. They're suitable for driving tests in single-enviroments. I'm using them very rarely and only collection-related for the inner logic of my scripts, that is not environment related (e.g. constants as ISO-Codes).
If it becomes necessary to drive the same collection in different configs, i shift my variables to globals or env variables, depending on the use-case.
You can finde more details about this topic in https://learning.postman.com/docs/sending-requests/variables/#variable-scopes