Files
uv/docs/projects.md
Zanie Blue 177bbaa8c0 Add stubs for the project documentation (#5135)
@ibraheemdev is going to do some work on these, I just sketched out some
parts to try to understand how things will fit together.
2024-07-16 17:02:54 -05:00

56 lines
748 B
Markdown

# Projects
## Project metadata
`pyproject.toml`
```
uv init
```
## Project environments
`.venv`
```
uv sync
```
## Lock files
```
uv lock
```
## Adding dependencies
```
uv add
```
### Updating existing dependencies
<!-- What happens when the same dependency is added multiple times? -->
## Removing dependencies
```
uv remove
```
## Running commands
```
uv run
```
### Running commands with additional dependencies
### Running scripts
Scripts that declare inline metadata are automatically executed in environments isolated from the project. See the [scripts guide](./guides/scripts.md#declaring-script-dependencies) for more details.
## Projects with many packages
See the [workspaces](./preview/workspaces.md) documentation.