mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-19 09:35:38 +02:00

Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com> Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
28 lines
716 B
Markdown
28 lines
716 B
Markdown
# uv publish
|
|
|
|
> Upload distributions to an index.
|
|
> More information: <https://docs.astral.sh/uv/reference/cli/#uv-publish>.
|
|
|
|
- Publish packages from `dist/` directory (default behavior):
|
|
|
|
`uv publish`
|
|
|
|
- Publish to a specific repository URL:
|
|
|
|
`uv publish --publish-url {{https://upload.pypi.org/legacy/}}`
|
|
|
|
- Publish using a specific username and password:
|
|
|
|
`uv publish {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}}`
|
|
|
|
- Publish using an API token:
|
|
|
|
`uv publish {{[-t|--token]}} {{your_api_token}}`
|
|
|
|
- Publish specific distribution files:
|
|
|
|
`uv publish {{path/to/dist/*.whl}} {{path/to/dist/*.tar.gz}}`
|
|
|
|
- Publish to TestPyPI for testing:
|
|
|
|
`uv publish --publish-url https://test.pypi.org/legacy/`
|