vercel list

The vercel list command, which can be shortened to vercel ls, provides a list of recent deployments for the currently-linked Vercel Project.

terminal
vercel list

Using the vercel list command to retrieve information about multiple deployments for the currently-linked Vercel Project.

terminal
vercel list [project-name]

Using the vercel list command to retrieve information about deployments for a specific Vercel Project.

terminal
vercel list [project-name] [--status READY,BUILDING]

Using the vercel list command to retrieve information about deployments filtered by status.

terminal
vercel list [project-name] [--meta foo=bar]

Using the vercel list command to retrieve information about deployments filtered by metadata.

terminal
vercel list [project-name] [--policy errored=6m]

Using the vercel list command to retrieve information about deployments including retention policy.

These are options that only apply to the vercel list command.

The --meta option, shorthand -m, can be used to filter results based on Vercel deployment metadata.

terminal
vercel list --meta key1=value1 key2=value2

Using the vercel list command with the --meta option.

To see the meta values for a deployment, use GET /deployments/{idOrUrl} .

The --policy option, shorthand -p, can be used to display expiration based on Vercel project deployment retention policy.

terminal
vercel list --policy canceled=6m -p errored=6m -p preview=6m -p production=6m

Using the vercel list command with the --policy option.

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.

terminal
vercel list --yes

Using the vercel list command with the --yes option.

The --status option, shorthand -s, can be used to filter deployments by their status.

terminal
vercel list --status READY

Using the vercel list command with the --status option to filter by a single status.

You can filter by multiple status values using comma-separated values:

terminal
vercel list --status READY,BUILDING

Using the vercel list command to filter by multiple status values.

The supported status values are:

  • BUILDING - Deployments currently being built
  • ERROR - Deployments that failed during build or runtime
  • INITIALIZING - Deployments in the initialization phase
  • QUEUED - Deployments waiting to be built
  • READY - Successfully deployed and available
  • CANCELED - Deployments that were canceled before completion

Use the --environment option to list the deployments for a specific environment. This could be production, preview, or a custom environment.

terminal
vercel list my-app --environment=staging

The following global options can be passed when using the vercel list command:

For more information on global options and their usage, refer to the options section.


Was this helpful?