How to create a VPC on GCP from command line

+2 votes

Hi Guys,

I am new to GCP Cloud. I want to create a VPC from the command line. How can I do that?

Aug 24, 2020 in GCP by akhtar
• 38,180 points
301 views

1 answer to this question.

+1 vote

Hi@akhtar,

To create a personal network, you need to use VPC service in GCP Cloud. GCP SDK has the capability to create a VPC from the command line. You can use the below command.

$ gcloud compute networks create network-name
answered Aug 24, 2020 by MD
• 95,240 points

Related Questions In GCP

+2 votes
1 answer

How to create a GKE cluster from command line?

Hi@MD, A cluster consists of at least one cluster master machine ...READ MORE

answered Aug 24, 2020 in GCP by akhtar
• 38,180 points
272 views
0 votes
1 answer

How to create a new project in GCP using the command line?

Hi@akhtar, You need to configure GCP SDK in ...READ MORE

answered Nov 9, 2020 in GCP by MD
• 95,240 points
118 views
0 votes
1 answer

How to create a file on GCP storage?

In case you are using Cloud storage ...READ MORE

answered Nov 5, 2019 in GCP by Sirajul
• 59,090 points
640 views
+2 votes
1 answer

How to create a project in GCP Cloud?

Hi@akhtar, To deploy your app on App Engine, ...READ MORE

answered Aug 22, 2020 in GCP by MD
• 95,240 points
134 views
+2 votes
1 answer

How to activate GCP Cloud Shell?

Hi@MD, You can follow the below steps to ...READ MORE

answered Aug 22, 2020 in GCP by akhtar
• 38,180 points
198 views
+2 votes
1 answer

How to list down all the projects in GCP Cloud?

Hi@akhtar, GCP Shell has a command named gcloud. ...READ MORE

answered Aug 22, 2020 in GCP by MD
• 95,240 points
218 views
+2 votes
1 answer

How to launch one instance on GCP Cloud from command line?

Hi@akhtar, You can compute service in GCP to launch ...READ MORE

answered Aug 24, 2020 in GCP by MD
• 95,240 points
171 views
+2 votes
1 answer

Create a firewall rule on GCP Cloud from command line.

Hi@akhtar, You need to configure GCP Cloud SDK ...READ MORE

answered Aug 24, 2020 in GCP by MD
• 95,240 points
531 views