Skip to content

vercel pull

Learn how to update your local project with remote environment variables from the command line.

The vercel pull command is used to store Environment Variables and Project Settings in a local cache (under .vercel/.env.$target.local.) for offline use of vercel build.

To download Environment Variables to a specific file (like .env), use vercel env pull instead.

vercel pull

Using the vercel pull fetches the latest "development" Environment Variables and Project Settings from the cloud.

vercel pull --environment=preview

Using the vercel pull fetches the latest "preview" Environment Variables and Project Settings from the cloud.

vercel pull --environment=production

Using the vercel pull fetches the latest "production" Environment Variables and Project Settings from the cloud.

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

  • --cwd
  • --debug
  • --global-config
  • --help
  • --token

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

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

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

vercel pull --yes

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

;