## NAME

gdcloud auth activate-service-account - Authorize access to GDC air-gapped with a service account.

## SYNOPSIS

```text
gdcloud auth activate-service-account [flags]
```

## DESCRIPTION

Authorize access to GDC air-gapped with a service account.
To allow gdcloud to make requests using service account credentials, use this command to import these credentials from a file that contains a private authorization key, and activate them for use in gdcloud. The "gdcloud auth activate-service-account" serves the same function as the "gdcloud auth login" command, but uses a service account rather than the user credentials.

### EXAMPLES

```text
To authorize gdcloud to access GDC air-gapped using an existing service account, run:

   gdcloud auth activate-service-account --key-file=/path/key.json
```

### REQUIRED FLAGS

```text
      --key-file string   Path to the private key file.
```

### OPTIONAL FLAGS

```text
      --login-config-cert string   (Optional) Absolute file path to the CA certificate file to be used for fetching login-config over HTTPS connection.
      --skip-kubeconfig-update     (Optional) Skip updating the kubeconfig after login.
```

### GDCLOUD WIDE FLAGS

These flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.

For more information, see the [gdcloud CLI reference overview](https://docs.cloud.google.com/distributed-cloud/hosted/docs/latest/gdcag/resources/gdcloud-reference/gdcloud.md.txt) page.