mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
34 lines
809 B
Plaintext
34 lines
809 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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/`
|