LinuxCommandLibrary

uv-run

Execute commands in project virtual environment

TLDR

Run command in project

$ uv run [command]
copy
Run Python script
$ uv run python [script.py]
copy
Run with extra dependencies
$ uv run --with [package] [command]
copy
Run without syncing
$ uv run --frozen [command]
copy

SYNOPSIS

uv run [options] command [args...]

DESCRIPTION

uv run executes commands in the project's virtual environment. Automatically creates venv and syncs dependencies if needed. The primary way to run scripts and tools in uv projects.

PARAMETERS

--with package

Include extra dependency.
--frozen
Don't update lockfile.
--no-sync
Don't sync environment.
--isolated
Run in isolated environment.

SEE ALSO

uv(1), uv-sync(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community