vercel init

The vercel init command is used to initialize Vercel supported framework examples locally from the examples found in the Vercel examples repository.

terminal
vercel init

Using the vercel init command to initialize a Vercel supported framework example locally. You will be prompted with a list of supported frameworks to choose from.

terminal
vercel init [framework-name]

Using the vercel init command to initialize a specific framework example from the Vercel examples repository locally.

terminal
vercel init [framework-name] [new-local-directory-name]

Using the vercel init command to initialize a specific Vercel framework example locally and rename the directory.

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

The --force option, shorthand -f, is used to forcibly replace an existing local directory.

terminal
vercel init --force

Using the vercel init command with the --force option.

terminal
vercel init gatsby my-project-directory --force

Using the vercel init command with the --force option.

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

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