Network Connectivity Google Cloud CLI commands enable connectivity with and
between Google Cloud resources.

When you run Network Connectivity gcloud CLI commands, you
perform operations on resources that are part of the Network Connectivity
API. For more information about the API, see the
[Network Connectivity API reference](https://docs.cloud.google.com/network-connectivity/docs/apis).

## Commands for working with NCC hubs

Use these commands when working with NCC hubs. For more
information, see
[Working with hubs](https://docs.cloud.google.com/network-connectivity/docs/network-connectivity-center/how-to/working-with-hubs-spokes#working_with_hubs).

| Command | Task |
|---|---|
| [`gcloud network-connectivity hubs list`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/hubs/list) | Lists NCC hubs for a project |
| [`gcloud network-connectivity hubs create`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/hubs/create) | Creates a NCC hub |
| [`gcloud network-connectivity hubs describe`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/hubs/describe) | Lists detailed information for a NCC hub |
| [`gcloud network-connectivity hubs update`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/hubs/update) | Adds a label or description to a NCC hub |
| [`gcloud network-connectivity hubs delete`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/hubs/delete) | Deletes a NCC hub |
| [`gcloud network-connectivity hubs accept-spoke`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/hubs/accept-spoke) | Accepts a VPC spoke from a different project into a hub |
| [`gcloud network-connectivity hubs list-spokes`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/hubs/list-spokes) | Lists spokes connected to a hub |
| [`gcloud network-connectivity hubs reject-spoke`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/hubs/reject-spoke) | Rejects a VPC spoke from a different project from being accepted into a hub |
| [`gcloud network-connectivity hubs add-iam-policy-binding`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/hubs/add-iam-policy-binding) | Adds an Identity and Access Management (IAM) policy binding to the IAM policy of a hub resource |
| [`gcloud network-connectivity hubs get-iam-policy-binding`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/hubs/get-iam-policy-binding) | Gets the IAM policy for a hub resource |
| [`gcloud network-connectivity hubs remove-iam-policy-binding`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/hubs/remove-iam-policy-binding) | Removes an IAM policy binding from the IAM policy of a hub resource |
| [`gcloud network-connectivity hubs route-tables describe `](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/hubs/route-tables/describe) | Describes a NCC hub route table |
| [`gcloud network-connectivity hubs route-tables list `](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/hubs/route-tables/list) | Lists a NCC hub route table |
| [`gcloud network-connectivity hubs route-tables routes describe `](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/hubs/route-tables/routes/describe) | Describes a NCC hub route |
| [`gcloud network-connectivity hubs route-tables routes list `](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/hubs/route-tables/routes/list) | Lists a NCC hub route |

## Commands for working with NCC spokes

Use these commands when working with NCC spokes. For more
information, see
[Working with spokes](https://docs.cloud.google.com/network-connectivity/docs/network-connectivity-center/how-to/working-with-hubs-spokes#working-with-spokes).

| Command | Task |
|---|---|
| [`gcloud network-connectivity spokes list`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/spokes/list) | Lists all spokes in the specified region |
| [`gcloud network-connectivity spokes linked-vpc-network create`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/spokes/linked-vpc-network/create) | Creates a VPC spoke |
| [`gcloud network-connectivity spokes linked-producer-vpc-network create`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/spokes/linked-producer-vpc-network/create) | Creates a producer VPC spoke |
| [`gcloud network-connectivity spokes linked-router-appliances create`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/spokes/linked-router-appliances/create) | Creates a Router appliance spoke |
| [`gcloud network-connectivity spokes linked-interconnect-attachments create`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/spokes/linked-interconnect-attachments/create) | Creates a VLAN attachment spoke |
| [`gcloud network-connectivity spokes linked-vpn-tunnels create`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/spokes/linked-vpn-tunnels/create) | Creates a VPN spoke |
| [`gcloud network-connectivity spokes describe`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/spokes/describe) | Lists detailed information for a NCC spoke |
| [`gcloud network-connectivity spokes linked-vpc-network update`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/spokes/linked-vpc-network/update) | Updates a VPC spoke |
| [`gcloud network-connectivity spokes linked-producer-vpc-network update`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/spokes/linked-producer-vpc-network/update) | Updates a producer VPC spoke |
| [`gcloud network-connectivity spokes linked-router-appliances update`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/spokes/linked-router-appliances/update) | Updates a Router appliance spoke |
| [`gcloud network-connectivity spokes linked-interconnect-attachments update`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/spokes/linked-interconnect-attachments/update) | Adds a label or description to a VLAN attachment spoke |
| [`gcloud network-connectivity spokes linked-vpn-tunnels update`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/spokes/linked-vpn-tunnels/update) | Adds a label or description to a VPN spoke |
| [`gcloud network-connectivity spokes delete`](https://docs.cloud.google.com/sdk/gcloud/reference/network-connectivity/spokes/delete) | Deletes a NCC spoke |