poetry-publish
Publish packages to PyPI or repositories
TLDR
Publish to PyPI
$ poetry publish
Build and publish$ poetry publish --build
Publish to custom repository$ poetry publish -r [repository]
Dry run$ poetry publish --dry-run
SYNOPSIS
poetry publish [options]
DESCRIPTION
poetry publish uploads built distribution packages (wheel and sdist) to PyPI or a custom repository. The --build flag builds the package before publishing in a single step.
Use -r to specify an alternative repository configured via poetry config. Authentication can be provided via -u/-p flags, a configured token, or the keyring. The --dry-run flag simulates the upload without actually publishing.
PARAMETERS
--build
Build before publishing.-r, --repository NAME
Target repository.-u, --username USER
Repository username.-p, --password PASS
Repository password.--dry-run
Simulate publishing.
CAVEATS
Requires authentication. Build first or use --build.
HISTORY
poetry publish provides package publishing to Python repositories.
SEE ALSO
poetry(1), poetry-build(1)
