Lists visible projects for the active account.
gcloud projects list --format=json
- Evidence
- Documentation checked · reviewed 2026-10-04
- Environment
- GCP
- Compatibility
- Examples use POSIX shell quoting. Consult installed tool help for version-specific options.
- Expected result
- Lists visible projects for the active account.
- Troubleshooting
- Service-account principal-set grants may not appear in this listing.
- Side effects
- No intentional configuration changes. Remote reads may generate audit events.
- Native
- Configuration and verification
- Requires
- Authenticated CLI session
Shows configured account, project and other properties.
- Evidence
- Documentation checked · reviewed 2026-10-04
- Environment
- GCP
- Compatibility
- Examples use POSIX shell quoting. Consult installed tool help for version-specific options.
- Expected result
- Shows configured account, project and other properties.
- Troubleshooting
- Configured properties do not prove that the account has access to the selected project.
- Side effects
- No intentional configuration changes. Remote reads may generate audit events.
- Native
- Configuration and verification
- Requires
- Authenticated CLI session
Shows policy bindings visible to the current account.
gcloud projects get-iam-policy 'lab-project' --format=json
- Evidence
- Documentation checked · reviewed 2026-10-04
- Environment
- GCP
- Compatibility
- Examples use POSIX shell quoting. Consult installed tool help for version-specific options.
- Expected result
- Shows policy bindings visible to the current account.
- Troubleshooting
- Requires resourcemanager.projects.getIamPolicy; inherited grants need separate review.
- Side effects
- No intentional configuration changes. Remote reads may generate audit events.
- Native
- Configuration and verification
- Requires
- Authenticated CLI session