uv Verified current stable Not installed? Package Management

Uv / Export Dependencies Requirements Txt

Export Dependencies Requirements Txt

Uv command syntax to export dependencies requirements txt. Copyable examples, output expectations, and common mistakes.

$
Terminal
uv export --format requirements-txt -o <requirements.txt>

Command Builder

Tune the command before you copy it

Back to syntax
$
Generated Command
uv export --format requirements-txt -o <requirements.txt>

Command Breakdown

What each part is doing

uv
Base Command
The executable that performs this operation. Here it runs Uv before the shell applies any redirect operators.
-o
Input Files
The file path or paths supplied to this command.
<requirements.txt>
requirements.txt
The value supplied for requirements.txt.
--format
Command Option
Tool-specific option used by this command invocation.
-o
Command Option
Tool-specific option used by this command invocation.

Alternative Approaches

Comparable commands in other tools

Alternative package management tools for the same job.