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 in GCP by akhtar
• 33,120 points
99 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 by MD
• 78,020 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 in GCP by akhtar
• 33,120 points
77 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 in GCP by MD
• 78,020 points
13 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
• 58,210 points
201 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 in GCP by MD
• 78,020 points
54 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 in GCP by akhtar
• 33,120 points
68 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 in GCP by MD
• 78,020 points
56 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 in GCP by MD
• 78,020 points
80 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 in GCP by MD
• 78,020 points
113 views