1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-09 18:05:25 +02:00
tldr/pages/common/uv-run.md
Meinard Francisco edbed8ce00
uv-{help,lock,pip,remove,run,sync,venv,version}: add pages (#16875)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-06-18 11:23:49 +03:00

28 lines
652 B
Markdown

# uv run
> Run a command or script in the project environment.
> More information: <https://docs.astral.sh/uv/reference/cli/#uv-run>.
- Run a Python script:
`uv run {{script.py}}`
- Run a Python module:
`uv run {{[-m|--module]}} {{module_name}}`
- Run a command with additional packages installed temporarily:
`uv run --with {{package}} {{command}}`
- Run a script with packages from a requirements file:
`uv run --with-requirements {{requirements.txt}} {{script.py}}`
- Run in an isolated environment (no project dependencies):
`uv run --isolated {{script.py}}`
- Run without syncing the environment first:
`uv run --no-sync {{command}}`