Skip to content

Commit 2f1d09e

Browse files
committed
added commands for GCP
1 parent 8904a78 commit 2f1d09e

File tree

1 file changed

+58
-1
lines changed

1 file changed

+58
-1
lines changed

Cloud_providers/GCP/gcp.md

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Google Cloud Platform (GCP) Concepts
1+
# 1. Google Cloud Platform (GCP) Concepts
22

33
Google Cloud Platform is a suite of cloud computing services offered by Google. Here are some fundamental concepts to understand when working with GCP:
44

@@ -123,3 +123,60 @@ Google Cloud Platform is a suite of cloud computing services offered by Google.
123123
- **Apache Beam:** Dataflow is based on the Apache Beam open-source project.
124124

125125
These advanced concepts and services in Google Cloud Platform expand its capabilities for building scalable, secure, and data-driven cloud solutions.
126+
127+
128+
# 2. Basic Commands
129+
These are only basic commands for more you can consider https://cloud.google.com/docs
130+
131+
### 1. Login to GCP Account:
132+
```gcloud auth login```
133+
134+
### 2. Set Project: (arduino)
135+
```gcloud config set project PROJECT_ID```
136+
137+
### 3. List Projects:
138+
```gcloud projects list```
139+
140+
### 4. Create a New VM Instance:
141+
```gcloud compute instances create INSTANCE_NAME --machine-type MACHINE_TYPE --image IMAGE```
142+
143+
### 5. SSH into a VM Instance:
144+
```gcloud compute ssh INSTANCE_NAME```
145+
146+
### 6. List VM Instances:
147+
```gcloud compute instances list```
148+
149+
### 7. Create a Cloud Storage Bucket:
150+
```gsutil mb -p PROJECT_ID gs://BUCKET_NAME/```
151+
152+
### 8. Upload a File to Cloud Storage:
153+
```gsutil cp FILE_PATH gs://BUCKET_NAME/```
154+
155+
### 9. List Files in Cloud Storage Bucket:
156+
```gsutil ls gs://BUCKET_NAME/```
157+
158+
### 10. Create a Pub/Sub Topic:
159+
```gcloud pubsub topics create TOPIC_NAME```
160+
161+
### 11. Publish a Message to Pub/Sub Topic:
162+
```gcloud pubsub topics publish TOPIC_NAME --message "MESSAGE"```
163+
164+
### 12. Create a Cloud SQL Instance (MySQL):
165+
```gcloud sql instances create INSTANCE_NAME --database-version=MYSQL_5_7 --tier=db-n1-standard-1```
166+
167+
### 13. List Cloud SQL Instances:
168+
```gcloud sql instances list```
169+
170+
### 14. Deploy App Engine Application:
171+
```gcloud app deploy app.yaml```
172+
173+
### 15. List App Engine Services:
174+
```gcloud app services list```
175+
176+
### 16. Create a Kubernetes Cluster:
177+
```gcloud container clusters create CLUSTER_NAME --num-nodes=1 --zone=COMPUTE_ZONE```
178+
179+
### 17. List Kubernetes Clusters:
180+
```gcloud container clusters list```
181+
182+
As said you can always official documentation for more commands and concepts https://cloud.google.com/docs

0 commit comments

Comments
 (0)