diff options
| author | Marat Boshernitsan <[email protected]> | 2025-06-25 09:11:54 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-25 16:11:54 +0000 |
| commit | 9897a2b80a6f371363faf1345f406ea581b841db (patch) | |
| tree | b209e9c6325748d5f91c1115cdfe7f92c369d5f2 /docs/cli | |
| parent | 819507c5e8f9fe54b1ac15dfc953e252982cd1ae (diff) | |
Clarify why authentication failures might be happening and direct users to documentation (#1478)
Co-authored-by: Scott Densmore <[email protected]>
Co-authored-by: matt korwel <[email protected]>
Diffstat (limited to 'docs/cli')
| -rw-r--r-- | docs/cli/authentication.md | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/docs/cli/authentication.md b/docs/cli/authentication.md index e4d83db7..bb9fea84 100644 --- a/docs/cli/authentication.md +++ b/docs/cli/authentication.md @@ -22,10 +22,16 @@ The Gemini CLI requires you to authenticate with Google's AI services. On initia source ~/.bashrc ``` -3. **Login with Google Workspace** +3. **<a id="workspace-gca"></a>Login with Google (Gemini Code Assist for Workspace or licensed Code Assist users):** - - Use this option to log in with the **Google Workspace Accounts**. This is a paid service for businesses and organizations that provides a suite of productivity tools, including a custom email domain (e.g. [email protected]), enhanced security features, and administrative controls. These accounts are often managed by an employer or school. - - Google Workspace Account must first configure a Google Cloud Project Id to use, [enable the Gemini for Cloud API](https://cloud.google.com/gemini/docs/discover/set-up-gemini#enable-api) and [configure access permissions](https://cloud.google.com/gemini/docs/discover/set-up-gemini#grant-iam). You can temporarily set the environment variable in your current shell session using the following command: + (For more information, see: https://developers.google.com/gemini-code-assist/resources/faqs#gcp-project-requirement) + + - Use this option if: + + 1. You have a Google Workspace account. Google Workspace is a paid service for businesses and organizations that provides a suite of productivity tools, including a custom email domain (e.g. [email protected]), enhanced security features, and administrative controls. These accounts are often managed by an employer or school. + 2. You are a licensed Code Assist user. This can happen if you have previously purchased a Code Assist license or have acquired one through Google Developer Program. + + - If you fall into one of these categories, you must first configure a Google Cloud Project Id to use, [enable the Gemini for Cloud API](https://cloud.google.com/gemini/docs/discover/set-up-gemini#enable-api) and [configure access permissions](https://cloud.google.com/gemini/docs/discover/set-up-gemini#grant-iam). You can temporarily set the environment variable in your current shell session using the following command: ```bash export GOOGLE_CLOUD_PROJECT="YOUR_PROJECT_ID" ``` |
