mongocli iam project list¶
mongocli iam project list command retrieves projects in an
organization using the specified profile.
You must have the
Organization Owner role to retrieve all projects
in an organization. If you have lesser permissions, the command
retrieves only the project for which you are the
For Ops Manager deployments, you can also use a Personal API Key to retrieve all projects in all organizations.
mongocli iam project list [ --orgId <organization-ID> ] [ --output|-o <output-format> ] [ --profile|-P <profile-name> ] [ --limit <integer> ] [ --page <integer> ]
--help to view the command-line help for
Unique identifier of the organization that contains the projects to retrieve. If omitted, retrieves all projects to which the API key has access.
Name of the profile that contains the access information. If omitted, uses the default profile.
Number of projects to return from the result set.
Starting chunk of projects to return from the result set. The
The command prints the following fields in the specified format to the terminal if the command succeeds. If the command returns errors, see Troubleshooting for recommended solutions.
The JSON document includes an array of result objects, an array of link objects and a count of the total number of result objects retrieved.
Array includes one or more links to sub-resources and/or related resources. The relations between URL