`gcloud` is a unified command-line tool that is part of the [Google Cloud CLI](https://docs.cloud.google.com/sdk/docs).
When you run [`gcloud` commands](https://docs.cloud.google.com/network-intelligence-center/docs/connectivity-tests/reference/gcloud-sdk#gcloud-commands) for Connectivity Tests,
you perform operations on the `ConnectivityTest` resource that is part
of the Network Management API.

For more information about the Network Management API, see the
[API reference](https://docs.cloud.google.com/network-intelligence-center/docs/connectivity-tests/apis).

## `gcloud` commands

> [!NOTE]
> **Note:** `gcloud` commands for the Network Management API use the hyphenated word *network-management*.

You can use `gcloud` to run the following commands for Connectivity Tests.
For more information, see the
[SDK overview for Connectivity Tests](https://docs.cloud.google.com/sdk/gcloud/reference/beta/network-management/connectivity-tests).

| Command | Task |
|---|---|
| [`gcloud network-management connectivity-tests list`](https://docs.cloud.google.com/sdk/gcloud/reference/network-management/connectivity-tests/list) | Lists Connectivity Tests for a project |
| [`gcloud network-management connectivity-tests create`](https://docs.cloud.google.com/sdk/gcloud/reference/network-management/connectivity-tests/create) | Creates and runs a Connectivity Test |
| [`gcloud network-management connectivity-tests rerun`](https://docs.cloud.google.com/sdk/gcloud/reference/network-management/connectivity-tests/rerun) | Reruns a Connectivity Test |
| [`gcloud network-management connectivity-tests describe`](https://docs.cloud.google.com/sdk/gcloud/reference/network-management/connectivity-tests/describe) | Lists test results for a [running](https://docs.cloud.google.com/network-intelligence-center/docs/connectivity-tests/how-to/long-running-ops) or completed Connectivity Test |
| [`gcloud network-management connectivity-tests update`](https://docs.cloud.google.com/sdk/gcloud/reference/network-management/connectivity-tests/update) | Updates options for an existing Connectivity Test |
| [`gcloud network-management connectivity-tests delete`](https://docs.cloud.google.com/sdk/gcloud/reference/network-management/connectivity-tests/delete) | Deletes a Connectivity Test |

For command-line examples, see the following pages:

- [Running Connectivity Tests](https://docs.cloud.google.com/network-intelligence-center/docs/connectivity-tests/how-to/running-connectivity-tests)
- [Updating or deleting Connectivity Tests](https://docs.cloud.google.com/network-intelligence-center/docs/connectivity-tests/how-to/managing-connectivity-tests)