GCP Shell has a command named gcloud. This helps to connect to the API of the GCP cloud. You can use the below command to list down all the projects.
root@cloudshell:~$ gcloud projects list
PROJECT_ID NAME PROJECT_NUMBER
animated-wave-286913 My First Project 772379451478
flutterproject-286917 Flutterproject 927420523999
leafy-display-287005 Myproject 889183400100
long-parity-286815 My First Project 807029470645
micro-mediator-282616 My First Project 911935951284
nadeem-gcp-123456 Nadeem-gcp-production 432803405362
omega-depot-282616 My First Project 291591567610
Hope this helped!!
To know more about Google Cloud, It is recommended to go for Google Cloud Certification training today.