Forrest logo
back to the vercel tool

vercel:tldr:3af98

vercel: Build with Environment Variables.
$ vercel --build-env ${ENV}=${var}
try on your machine

The command vercel --build-env ${ENV}=${var} is used to set environment variables during the build phase when deploying a project using Vercel.

Here's how the command is broken down:

  • vercel: This is the CLI (Command Line Interface) command for the Vercel platform. It is used to deploy and manage projects.

  • --build-env: This is an option that allows you to set environment variables specifically for the build phase of your project.

  • ${ENV}: This is a placeholder for the name of the environment variable you want to set. You need to replace ${ENV} with the actual name of the environment variable.

  • =${var}: This is the value assigned to the environment variable. The ${var} placeholder needs to be replaced with the desired value.

By running this command, you can set environment variables (with their respective values) that will be available during the build process of your project deployed on Vercel. These variables can be used to customize the build behavior or configure the project based on specific conditions defined by you.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the vercel tool