mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-06-07 01:06:00 +02:00
uv-init: add page (#16748)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
This commit is contained in:
parent
bce0d19de4
commit
bb20d57845
1 changed files with 32 additions and 0 deletions
32
pages/common/uv-init.md
Normal file
32
pages/common/uv-init.md
Normal file
|
@ -0,0 +1,32 @@
|
|||
# uv init
|
||||
|
||||
> Create a new Python project.
|
||||
> More information: <https://docs.astral.sh/uv/reference/cli/#uv-init>.
|
||||
|
||||
- Initialize a project in the current directory:
|
||||
|
||||
`uv init`
|
||||
|
||||
- Initialize a project with a certain name:
|
||||
|
||||
`uv init {{project_name}}`
|
||||
|
||||
- Create a project in a given directory:
|
||||
|
||||
`uv init --directory {{path/to/directory}} {{project_name}}`
|
||||
|
||||
- Create a project for a Python library:
|
||||
|
||||
`uv init {{[--lib|--library]}} {{project_name}}`
|
||||
|
||||
- Specify the build system:
|
||||
|
||||
`uv init --build-backend {{build_backend}} {{project_name}}`
|
||||
|
||||
- Only create a `pyproject.toml`:
|
||||
|
||||
`uv init --bare {{project_name}}`
|
||||
|
||||
- Set the project description:
|
||||
|
||||
`uv init --description "{{description}}" {{project_name}}`
|
Loading…
Add table
Reference in a new issue