gcloud commands Flashcards

1
Q

What is the command you would use to list all properties within a configuration?

A

gcloud config list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the command you would use to specifically get the value of the project your currently in?

A

gcloud config get-value project

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the command you would use to get a list of services?

A

gcloud services list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the command to create a new vm in the compute engine?

A

gcloud compute instances create

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can you delete an instance of a vm?

A

gcloud compute instances delete

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the command to list all of the vm instances running within your current project?

A

gcloud compute instances list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the command you would run to set a config property?

A

gcloud config set

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the command you would run to check a config property?

A

gcloud config get-value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the command you would run to clear a config property?

A

gcloud config unset

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the command you would use to get an interactive workflow to set common properties in a config file?

A

gcloud init

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the command you would use to list all your current configurations?

A

gcloud config configurations list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Whats the command you would use to create a new configuration?

A

gcloud config configurations create ITS_NAME

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How can you switch to a new configuration that you have made?

A

gcloud config configurations activate ITS_NAME

How well did you know this?
1
Not at all
2
3
4
5
Perfectly