---
title: vercel networking
description: "Manage your team's networking with the Vercel CLI, including AWS PrivateLink endpoints for a project or a Secure Compute network."
url: "https://vercel.com/docs/cli/networking"
last_updated: 2018-10-20
related:
  - /docs/networking/privatelink
  - /docs/networking/static-ips
  - /docs/networking/secure-compute
  - /docs/cli/link
  - /docs/cli/global-options
install_vercel_plugin: npx plugins add vercel/vercel-plugin
search_with_vercel_cli: npx vercel@latest docs search "<query>"
search_kb_with_vercel_cli: npx vercel@latest kb search "<query>"
---

# vercel networking

The `vercel networking` command manages your team's networking from the command line. Use its `privatelink` subcommands to manage [AWS PrivateLink](/docs/networking/privatelink) endpoints for a project or a dedicated Secure Compute network.

## Usage

```bash filename="terminal"
vercel networking [command]
```

*Use a command to manage networking for the current team.*

## Commands

### privatelink

Manage AWS PrivateLink interface endpoints, which connect your deployments to AWS-hosted services without using the public internet.

```bash filename="terminal"
vercel networking privatelink [subcommand]
```

*Use a subcommand to manage PrivateLink endpoints for a project or network.*

The `vercel networking privatelink` command works with the networking your team already has. The command doesn't:

- Turn on [Advanced Networking](/docs/networking/static-ips) or upgrade your plan
- Deploy your project
- Change anything in your AWS account

The AWS service owner still allowlists your team's principal and approves the connection when the service requires approval.

| Subcommand | Description |
| --- | --- |
| [`context`](#privatelink-context) | Show PrivateLink prerequisites and the receiving AWS account |
| [`create [name]`](#privatelink-create) | Create an interface endpoint |
| [`list`](#privatelink-list) | List PrivateLink endpoints |
| [`inspect <endpoint>`](#privatelink-inspect) | Inspect an endpoint |
| [`update <endpoint>`](#privatelink-update) | Rename an endpoint or change its private Domain Name System (DNS) setting |
| [`delete <endpoint>`](#privatelink-delete) | Delete an endpoint |

`list` also accepts the `ls` alias, and `delete` accepts `rm` and `del`. Subcommands that take `<endpoint>` need the full endpoint ID, such as `ple_example`, not the endpoint name.

Subcommands support these shared options:

| Option | Description |
| --- | --- |
| `--project <NAME_OR_ID>` (`-p`) | Project name or ID. Defaults to the project linked to the current directory. |
| `--network <NETWORK>` | Complete dedicated Secure Compute network ID. |
| `--json` | Output as JSON. See [JSON output](#json-output). |

#### Choose a project or network

Each PrivateLink endpoint belongs to either a project that uses Advanced Networking or a dedicated [Secure Compute](/docs/networking/secure-compute) network. Pass `--project` or `--network` to choose one, but not both. Without either option, the CLI uses the project linked to the current directory, or the project that `VERCEL_ORG_ID` and `VERCEL_PROJECT_ID` name.

The CLI never links or creates a project. In a directory that isn't linked, pass `--project` or run [`vercel link`](/docs/cli/link) first.

PrivateLink endpoints belong to a team, so a personal account can't use them. Use [`--scope`](/docs/cli/global-options#scope) to choose the team:

```bash filename="terminal"
vercel networking privatelink list --project my-app --scope my-team
```

*List the endpoints of \`my-app\` in the \`my-team\` team.*

#### privatelink context

Before you create an endpoint, run `context` to see the AWS account that receives the connection, the available regions, and the principal that your AWS service owner allowlists:

```bash filename="terminal"
vercel networking privatelink context --project my-app
vercel networking privatelink context --network your_network_id_here --json
```

*Show the receiving AWS account for a project or a network.*

For a project, `context` also reports whether each region supports PrivateLink. A region marked **Incompatible** uses an older Advanced Networking configuration. To update an incompatible region:

1. In the dashboard, go to your project's **Settings** → **Networking** → **Advanced Networking** → **AWS PrivateLink**.
2. Follow the **Update Regions** flow.
3. Add the new static IPs to your allowlist.
4. Redeploy your project.

#### privatelink create

Run `create` with an endpoint name of 1 to 255 characters and the AWS endpoint service name from your provider. Project endpoints also need a Vercel region, and network endpoints use the network's region:

```bash filename="terminal"
vercel networking privatelink create payments --project my-app --region iad1 --aws-service-name com.amazonaws.us-east-1.s3
vercel networking privatelink create payments --network your_network_id_here --aws-service-name com.amazonaws.us-east-1.s3
```

*Create an interface endpoint for a project or a network.*

| Option | Description |
| --- | --- |
| `--aws-service-name <AWS_SERVICE_NAME>` | AWS endpoint service name, such as `com.amazonaws.vpce.us-east-1.vpce-svc-example`. You can also use AWS-owned interface services, such as `com.amazonaws.us-east-1.s3`. |
| `--region <REGION>` | Vercel region. Required for project endpoints and not allowed with `--network`. The Vercel region can differ from the service's AWS region. |
| `--private-dns` | Resolve the service's own private DNS names to the endpoint. Off by default. |

`create` also accepts the [wait options](#wait-for-endpoint-changes). In an interactive terminal, `create` prompts for the name, service name, or region when you leave them out. In a non-interactive shell, such as continuous integration (CI), `create` fails and names the missing options.

Advanced Networking includes one PrivateLink endpoint per project, and each Secure Compute network includes one PrivateLink endpoint. Each additional endpoint adds a monthly charge to your current plan, and `create` doesn't ask you to confirm the charge. To stop the charge, [delete the endpoint](#privatelink-delete). See [PrivateLink pricing](/docs/networking/privatelink#pricing) for rates.

#### privatelink list

Run `list` to see the endpoints of a project or network, newest first:

```bash filename="terminal"
vercel networking privatelink list --project my-app
```

*List the endpoints of a project.*

`list` accepts these options:

| Option | Description |
| --- | --- |
| `--limit <NUMBER>` (`-n`) | Number of endpoints per page. Defaults to 20, with a maximum of 100. |
| `--next <CURSOR>` | Show the next page with the cursor from the previous output. |

Pass the returned `pagination.next` cursor to `--next`, with the same team and project or network, to read another page:

```bash filename="terminal"
vercel networking privatelink list --project my-app --limit 10 --next your_cursor_here --json
```

*Continue listing endpoints with the cursor from the previous response.*

#### privatelink inspect

Run `inspect` with the full endpoint ID to see the endpoint's status and DNS names:

```bash filename="terminal"
vercel networking privatelink inspect ple_example --project my-app
```

*Inspect an endpoint by its ID.*

To wait until the endpoint is available, add `--wait`. See [Wait for endpoint changes](#wait-for-endpoint-changes).

#### privatelink update

Run `update` to rename an endpoint or turn private DNS on or off. An endpoint's service, region, and project or network can't change:

```bash filename="terminal"
vercel networking privatelink update ple_example --project my-app --name payments-api
vercel networking privatelink update ple_example --project my-app --private-dns --confirm-name ple_example
vercel networking privatelink update ple_example --project my-app --no-private-dns --confirm-name ple_example
```

*Rename an endpoint, then turn private DNS on and off.*

| Option | Description |
| --- | --- |
| `--name <NAME>` | New endpoint name, 1 to 255 characters. |
| `--private-dns` | Turn on private DNS. |
| `--no-private-dns` | Turn off private DNS. |
| `--confirm-name <NAME>` | Full endpoint ID, not the endpoint name. Approves a private DNS change. |

Renames take effect without approval. A private DNS change affects how your deployments resolve the service's hostnames, so it [requires approval](#approve-changes).

Existing deployments keep their previous DNS configuration. Once a project endpoint's private DNS change is available, the CLI shows the [`vercel deploy`](/docs/cli/deploy) command to run so that a new deployment uses it.

#### privatelink delete

Run `delete` with the full endpoint ID:

```bash filename="terminal"
vercel networking privatelink delete ple_example --project my-app --confirm-name ple_example
```

*Delete an endpoint and approve the deletion with its ID.*

`delete` [requires approval](#approve-changes) and accepts the [wait options](#wait-for-endpoint-changes). Deleting an endpoint doesn't delete data in the AWS service. Deleting a network endpoint removes the connection for every project that uses the network.

#### Wait for endpoint changes

The `create` and `delete` subcommands of `vercel networking privatelink` wait by default, checking the endpoint every five seconds:

- **`create`** waits until the endpoint is available or awaits the service owner's approval (`pending-acceptance`).
- **`delete`** waits until Vercel removes the endpoint.
- **`inspect --wait`** waits until the endpoint is available, including while it awaits the service owner's approval. Without `--wait`, `inspect` returns the current state.

| Option | Commands | Description |
| --- | --- | --- |
| `--no-wait` | `create`, `delete` | Return once the API accepts the request. You can't combine it with `--timeout`. |
| `--wait` | `inspect` | Wait until the endpoint is available. |
| `--timeout <DURATION>` | `create`, `delete`, `inspect` | Maximum time to wait, as a number with a unit, such as `30s` or `10m`. Defaults to 5 minutes. With `inspect`, it requires `--wait`. |

```bash filename="terminal"
vercel networking privatelink inspect ple_example --project my-app --wait --timeout 30m
```

*Wait up to 30 minutes for an endpoint to become available.*

#### Approve changes

`vercel networking privatelink` requires approval for private DNS changes and deletions:

- **Interactive terminal**: The CLI previews the endpoint, team, and effects, then asks you to confirm.
- **Non-interactive shell**: Pass `--confirm-name <NAME>` with the full endpoint ID, not the endpoint name, such as `--confirm-name ple_example`. A value that doesn't match exits with code `2` and changes nothing.

Without approval, the command stops before sending any request, exits with code `2`, and returns the approved command in its `next` steps. `--yes` still approves these changes but prints a deprecation warning, and agents can't use `--yes` to approve.

#### JSON output

With `--json`, every `vercel networking privatelink` subcommand writes one JSON document to stdout. `--help` always prints human-readable help, even with `--json`.

| Subcommand | Output shape |
| --- | --- |
| `context` | `{ context }` |
| `list` | `{ endpoints, pagination: { next } }`. `pagination.next` is `null` on the last page. |
| `inspect` | `{ endpoint }`. With `--wait`, also `next` when a project needs a new deployment to use private DNS. |
| `create`, `update`, `delete` | `{ endpoint, outcome, next }` |

Each `next` entry has a `command` string, an `argv` array, and an optional `when` that describes when to run it. `list` and mutations can also include `warnings`, an array of `{ reason, message }` objects, such as when `--limit` is above 100 or you approve with `--yes`.

For a project, `context` includes `projectId`, `staticIpsEnabled`, and a `regions` array. Each region has `vercelRegion`, `awsAccountId`, `awsRegion`, `teamPrincipalRoleArn`, and `compatible`. For a network, `context` includes `networkId`, `vercelRegion`, `awsAccountId`, `awsRegion`, and `teamPrincipalRoleArn`. The `teamPrincipalRoleArn` is the principal that your AWS service owner allowlists.

Endpoint objects include these fields:

| Field | Description |
| --- | --- |
| `endpointId` | Endpoint ID, such as `ple_example`. |
| `name` | Endpoint name. |
| `status` | One of `creating`, `provisioning`, `pending-acceptance`, `available`, `rejected`, `failed`, or `deleting`. |
| `statusMessage` | Details about the status, when the API provides them. |
| `vercelRegion` | Vercel region. |
| `teamId` | Team ID. |
| `projectId` | Project ID, for project endpoints. |
| `awsServiceName` | AWS endpoint service name. |
| `awsDnsEntries` | DNS names that AWS assigns to the endpoint. |
| `privateDnsNames` | The service's private DNS names that resolve to the endpoint. Empty when private DNS is off. |
| `vpcEndpointId` | AWS VPC endpoint ID. |
| `createdAt`, `updatedAt` | Timestamps in milliseconds since the Unix epoch. |

After `delete` finishes waiting, `endpoint` holds only `endpointId`. Mutations report one of these `outcome` values:

| `outcome` | Meaning |
| --- | --- |
| `accepted` | The API accepted the change, and the CLI didn't wait for it, such as with `--no-wait`. |
| `created` | `create` finished waiting. The endpoint can still be `pending-acceptance`. |
| `updated` | `update` applied the change. |
| `unchanged` | `update` had nothing to change. |
| `deleted` | Vercel removed the endpoint. |

On an error, stdout stays empty, and stderr receives one JSON document:

| Field | Description |
| --- | --- |
| `status` | `error`, or `action_required` when the command stopped before changing anything and needs you to act, such as approving, logging in, or fixing its arguments. |
| `reason` | Stable reason code. See [Exit status and errors](#exit-status-and-errors). |
| `message` | Human-readable description of the error. |
| `data` | Context for the error, such as `operation`, `teamId`, `projectId` or `networkId`, `endpointId`, and the API's `httpStatus`. |
| `hint` | Extra guidance, when available. |
| `next` | Commands that can resolve the error, in the same format as a result's `next`. |
| `retryable` | Whether repeating the same request can succeed, when known. |
| `retryAfterMs` | Milliseconds to wait before retrying, when the API returns a retry time. |
| `userActionRequired` | `true` when a person must approve the change or log in. |

For example, to extract endpoint IDs with [jq](https://jqlang.org/):

```bash filename="terminal"
vercel networking privatelink list --project my-app --json | jq -r '.endpoints[].endpointId'
```

*Extract endpoint IDs from a JSON listing.*

Without `--json`, a `create`, `update`, or `delete` that writes to a pipe prints only the endpoint ID on stdout, and a `list` that writes to a pipe prints tab-separated values.

#### Exit status and errors

`vercel networking privatelink` exits with one of these codes. The error document's `reason` tells you why:

| Exit code | `reason` | Meaning |
| --- | --- | --- |
| `0` | None | The command succeeded, or the API accepted a `--no-wait` change. |
| `1` | `not_linked`, `project_not_found`, `scope_not_accessible`, `not_found`, `permission_denied`, `login_required`, `not_authorized`, `rate_limited`, `conflict`, `api_error`, `unknown_outcome`, `timeout`, `provisioning_failed`, `incomplete_operation` | The CLI couldn't resolve the project or team, the API refused or failed the request, provisioning failed, the wait timed out, or the outcome is unknown. |
| `2` | `invalid_arguments`, `missing_arguments`, `unknown_command`, `conflict`, `missing_scope`, `confirmation_required` | The command stopped before sending a request because of its arguments, its team, or a missing approval. |
| `130` | `canceled` | You canceled the command. Changes the API already accepted may continue. Other signals exit with `128 + n` for signal `n`. |

`conflict` exits with code `2` when `--scope` or `--project` names a different team or project than `VERCEL_ORG_ID` or `VERCEL_PROJECT_ID`, and with code `1` when the API rejects a conflicting change. `incomplete_operation` means the endpoint is available without the private DNS you requested.

The CLI never retries or rolls back a change. When the outcome is unknown, run `inspect` before you repeat the command.

## Global Options

The following [global options](/docs/cli/global-options) can be passed when using the `vercel networking` command:

- [`--cwd`](/docs/cli/global-options#current-working-directory)
- [`--debug`](/docs/cli/global-options#debug)
- [`--global-config`](/docs/cli/global-options#global-config)
- [`--help`](/docs/cli/global-options#help)
- [`--local-config`](/docs/cli/global-options#local-config)
- [`--no-color`](/docs/cli/global-options#no-color)
- [`--non-interactive`](/docs/cli/global-options#non-interactive)
- [`--scope`](/docs/cli/global-options#scope)
- [`--token`](/docs/cli/global-options#token)
- [`--version`](/docs/cli/global-options#version)

For more information on global options and their usage, refer to the [options section](/docs/cli/global-options).

## Related

- [AWS PrivateLink](/docs/networking/privatelink)
- [Secure Compute](/docs/networking/secure-compute)
- [Static IPs](/docs/networking/static-ips)
- [`vercel link`](/docs/cli/link)

## Search the docs from your terminal

Search the Vercel docs and read pages as Markdown with the Vercel CLI. No login required.

```bash
# Find docs pages by keyword
npx vercel@latest docs search "environment variables"
npx vercel@latest docs search "function timeout"

# Print a docs page as Markdown, by path or URL
npx vercel@latest docs inspect <page>
```

## Search guides from your terminal

Search the Knowledge Base and read guides as Markdown with the Vercel CLI. No login required.

```bash
# Find guides by keyword
npx vercel@latest kb search "rewrites and redirects"
npx vercel@latest kb search "AI SDK streaming"

# Show the latest guides
npx vercel@latest kb

# Print a guide as Markdown, by slug or URL
npx vercel@latest kb inspect <guide>
```

---

[View full sitemap](/docs/sitemap)


If you encounter incorrect information, can’t find what you need, need a capability Vercel doesn’t currently offer, or have any other feedback to report, please do it by following the instructions at https://vercel.com/feedback.md.
