LinuxCommandLibrary

poetry-publish

Publish packages to PyPI or repositories

TLDR

Publish to PyPI

$ poetry publish
copy
Build and publish
$ poetry publish --build
copy
Publish to custom repository
$ poetry publish -r [repository]
copy
Dry run
$ poetry publish --dry-run
copy

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community