This document is for developers and other users who have identities from
third-party providers and need to access fleet member clusters from the command
line.

## Before you begin

- Log in from the command line

  If you want to use one of the command line login options, do the following:
  1. Ensure that you have the following command line tools installed:

     - The latest version of the Google Cloud CLI, which includes `gcloud`, the command line tool for interacting with Google Cloud. If you need to install the Google Cloud CLI, see the [installation guide](https://docs.cloud.google.com/sdk/docs/install).
     - `kubectl` for running commands against Kubernetes clusters. If you need to install `kubectl`, see the [installation guide](https://docs.cloud.google.com/kubernetes-engine/docs/how-to/cluster-access-for-kubectl.md.txt).
  2. Run the following commands to install or update the `anthos-auth` component:

     ```
     gcloud components update
     gcloud components install anthos-auth
     ```
  3. Verify that the component was installed successfully by running the following command:

     ```
     gcloud anthos auth version
     ```

     If a version is returned, your installation was successful.
- Log in from the Google Cloud console

  For OIDC and AzureAD providers only, you can also log in to clusters from the Google Cloud console without a configuration file or FQDN. For more information, see [Work with clusters from the Google Cloud console](https://docs.cloud.google.com/kubernetes-engine/fleet-management/docs/console.md.txt).

## Access methods to log in to clusters

To log in to your configured clusters, use one of the following access methods:

- **Log in from the command line with FQDN access** : If you need to log in to your clusters using a fully qualified domain name, see [FQDN access](https://docs.cloud.google.com/kubernetes-engine/enterprise/identity/setup/authenticate-fqdn-access.md.txt).
- **Log in from the command line with file-based access** : If you need to log in to your clusters with a configuration file, see [file-based access](https://docs.cloud.google.com/kubernetes-engine/enterprise/identity/setup/authenticate-file-access.md.txt).