# vercel link

The `vercel link` command links your local directory to a [Vercel Project](/docs/projects/overview).

## Usage

```bash filename="terminal"
vercel link
```

## Extended Usage

```bash filename="terminal"
vercel link [path-to-directory]
```

## Unique Options

These are options that only apply to the `vercel link` command.

### Repo&#x20;

The `--repo` option can be used to link all projects in your repository to their respective Vercel projects in one command. This command requires that your Vercel projects are using the [Git integration](/docs/git).

```bash filename="terminal"
vercel link --repo
```



### Yes

The `--yes` option can be used to skip questions you are asked when setting up a new Vercel Project.
The questions will be answered with the default scope and current directory for the Vercel Project name and location.

```bash filename="terminal"
vercel link --yes
```

### Project

The `--project` option can be used to specify a project name. In non-interactive usage, `--project`
allows you to set a project name that does not match the name of the current working directory.

```bash filename="terminal"
vercel link --yes --project foo
```


--------------------------------------------------------------------------------
title: "vercel list"
description: "Learn how to list out all recent deployments for the current Vercel Project using the vercel list CLI command."
last_updated: "2026-02-03T02:58:38.264Z"
source: "https://vercel.com/docs/cli/list"
--------------------------------------------------------------------------------