Team commands
This topic covers team commands for the Postman CLI.
Use the postman team commands to work with the teams inside your Postman organization. These are the teams within the organization, not the organization itself.
To use these commands, sign in to Postman with the postman login command, or set a Postman API key in the POSTMAN_API_KEY environment variable.
postman team list
Lists the teams inside your organization, with each team’s ID. Use it to find the team you want, for example to create a workspace in a specific team with postman workspace create and its --team-id option.
Listing teams requires a Postman organization that has the teams feature. When you’re signed in to a team that doesn’t have it, the command prints an error to stderr and exits with code 1 instead of listing anything:
Usage
Options
Lists only the teams you can create a workspace in.
Prints the list as JSON for machine-readable output.
Stops the command after this many milliseconds.