2 min read

vercel domains

Learn how to buy, sell, transfer, and manage your domains using the vercel domains CLI command.
Table of Contents

The vercel domains command is used to manage domains under the current scope, providing functionality to list, inspect, add, remove, purchase, move, transfer-in, and verify domains.

You can manage domains with further options and greater control under a Vercel Project's Domains tab from the Vercel Dashboard.

terminal
vercel domains ls

Using the vercel domains command to list all domains under the current scope.

terminal
vercel domains inspect [domain]

Using the vercel domains command to retrieve information about a specific domain.

terminal
vercel domains add [domain] [project]

Using the vercel domains command to add a domain to the current scope or a Vercel Project.

terminal
vercel domains rm [domain]

Using the vercel domains command to remove a domain from the current scope.

terminal
vercel domains buy [domain]

Using the vercel domains command to buy a domain for the current scope.

terminal
vercel domains move [domain] [scope-name]

Using the vercel domains command to move a domain to another scope.

terminal
vercel domains transfer-in [domain]

Using the vercel domains command to transfer in a domain to the current scope.

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

The --yes option can be used to bypass the confirmation prompt when removing a domain.

terminal
vercel domains rm [domain] --yes

Using the vercel domains rm command with the --yes option.

The --limit option can be used to specify the maximum number of domains returned when using ls. The default value to 20 and the maximum is 100.

terminal
vercel domains ls --limit 100

Using the vercel domains ls command with the --limit option.

The --force option forces a domain on a project, removing it from an existing one.

terminal
vercel domains add my-domain.com my-project --force

Using the vercel domains add command with the --force option.

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

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

Last updated on May 29, 2024