
Explanation:
The --project flag allows overriding the project for a single command without changing the default configuration. Changing config affects all subsequent commands, and re-authenticating or editing config is unnecessary.
Ultimate access to all questions.
You run gcloud compute instances list and get instances from the wrong project. What's the fastest way to target project web-prod for just this one command?
A
gcloud config set project web-prod then rerun
B
Add --project=web-prod to the command
C
gcloud auth login
D
Edit ~/.config/gcloud
No comments yet.