How to use Global variable using UID?

I am running my test collections using Postman Command Line Interface (CLI). I want to know how I can utilize the global variable by its Unique Identifier (UID), in the same way as I use environment and collection variables. So instead of using the global variable with a file path as shown below:

postman collection run [Collection UID] -e [Environment UID] -g [Global var File path]

I would like to use the UID of the global variable. Could you please tell me how to do this?

Hey @devang-ey :wave:

Welcome back to the Community Forum :trophy:

We had a similar question recently:

Currently, using the UID for the Globals is not possible but you can use the Postman API and the /workspaces/<workspace_id>/global-variables endpoint to access these from the command line.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.