# 安裝Google Cloud SDK

Google Cloud SDK是GCP上的服務操作指令集合，具備Linux與Windows平台的安裝程式，您可以安裝在您所需要的平台上。

## 快速安裝

熟悉Linux的朋友，可以透過下面指令直接下載cloud sdk的安裝檔案，並開始安裝流程：

```
curl https://sdk.cloud.google.com | bash
```

Windows的朋友應該可以直接下載exe的安裝程式安裝，在此不進一步說明...

## 安裝過後 - 認證gcloud

在gcloud安裝完成後，基本上可以在環境中找到gcloud跟相關的指令，接下來就是要認證gcloud這個工具...

```
# gcloud auth login
```

在login時候，系統會彈出認證的網頁，讓我們完成認證的流程... 完成過後，即可回來terminal視窗，開始gcloud的相關操作。

## 參考網頁

* <https://cloud.google.com/sdk/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gdgcloud-taipei.gitbook.io/google-cloud-platform-in-practice/ren-shi-google-cloud/gcp-zhi-ling-lie-gong-ju-gcloud/an-zhuang-google-cloud-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
