Getting started

You can let V automatically set up the bare-bones structure of a project for you by using any of the following commands in a terminal:

  • v init → adds necessary files to the current folder to make it a V project
  • v new abc → creates a new project in the new folder abc, by default a "hello world" project.
  • v new --web abcd → creates a new project in the new folder abcd, using the veb template.

The v new --web template uses veb, V's web framework.

When run in a terminal, v new and v init interactively prompt for the project's description, version and license. When stdin is not a terminal (for example when the input is piped or redirected, as in CI), the prompts are skipped and the defaults are used instead of blocking on input; in that case the project name must be passed as an argument, e.g. v new abc.