uv-init

Initialize a new Python project with uv

TLDR

Initialize new project
$ uv init
Initialize with name
$ uv init [project_name]
Initialize library project
$ uv init --lib
Initialize in directory
$ uv init [path]

SYNOPSIS

uv init [options] [path]

DESCRIPTION

uv init initializes a new Python project. Creates pyproject.toml with project metadata. Sets up project structure for applications or libraries.

PARAMETERS

--name name

Project name.
--lib
Create library structure.
--app
Create application structure.
--no-workspace
Don't add to workspace.
--python version
Python version requirement.

INSTALL

sudo dnf install uv
sudo pacman -S uv
sudo apk add uv
brew install uv
nix profile install nixpkgs#uv

SEE ALSO

uv(1), uv-add(1), uv-sync(1)