Postman CLI - Collection run

I have installed Postman CLI and exported the collection and environment from the Postman agent.

The collection has two requests. The first one is a call for a session token, which is stored as a variable in the environment. The second token uses the variable from the first request and executes some action.

When I execute the collection with the following parameters:

postman collection run SpaceAPI_Collection.json -e SpaceAPI_ENV.json

I get the following msg:

Error: No authorization data found.

Postman expects you to be logged in, even if you are using local JSON files.

Not sure if this is a bug or a feature.

login to postman is to send information to postman about the run just happened. Once Postman has the run details you can view them in postman directly.