## NAME

gdcloud iam service-accounts keys - Manage keys for a project's service account.

## SYNOPSIS

```text
gdcloud iam service-accounts keys COMMAND [flags]
```

## DESCRIPTION

Create, list, or delete credentials for a project's service account. You must have the "project-iam-admin" role in a project to manage the service accounts' keys for that project.

### EXAMPLES

```text

  To create an application default credentials JSON file "/tmp/my-key.json" for service account "psa-test" in project "iam-test" using cacert file "/tmp/ca.crt", run:

    gdcloud iam service-accounts keys create /tmp/my-key.json --iam-account=psa-test --project=iam-test --ca-cert-path=/tmp/ca.crt

  To list all the public keys for service account "psa-test" in project "iam-test", run:

    gdcloud iam service-accounts keys list --iam-account=psa-test --project=iam-test

  To delete a public key with ID "ab98fa9a-dae0-401f" from service account "psa-test" in project "iam-test", run:

    gdcloud iam service-accounts keys delete ab98fa9a-dae0-401f --iam-account=psa-test --project=iam-test

```

### GDCLOUD WIDE FLAGS

These flags are available to all commands: `--help`.

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.

### COMMANDS

`COMMAND` is one of the following:

```text
create
    Create an application default credentials JSON file which contains a private key for a service account.
delete
    Delete a public key from a service account.
list
    List all the public keys for a service account.
```