vercel target
The vercel target command (alias: vercel targets) manages your Vercel project's targets (custom environments). Targets are custom deployment environments beyond the standard production, preview, and development environments.
vercel target listUsing vercel target list to list all targets for your project.
List all targets defined for the current project.
vercel target list
vercel target ls
vercel targets lsList all custom environments configured for your project.
The --target flag is available on several commands to specify which environment to target:
# Deploy to a custom environment named "staging"
vercel deploy --target=stagingDeploy your project to a custom environment by specifying
--target=<environment-name>.
vercel target listvercel deploy --target=stagingvercel pull --environment=stagingvercel env add MY_KEY staging
vercel env ls stagingThe following global options can be passed when using the vercel deploy command:
For more information on global options and their usage, refer to the options section.
Was this helpful?