LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

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 the package before publishing.
-r, --repository NAME
Target repository (default: pypi). Must match a name configured via poetry config.
-u, --username USER
Repository username.
-p, --password PASS
Repository password.
--cert CERT
Certificate authority to access the repository.
--client-cert CERT
Client certificate to access the repository.
--dry-run
Simulate publishing without uploading.
--skip-existing
Ignore errors from files already existing in the repository.

CAVEATS

Requires authentication via username/password, API token, or system keyring. The package must be built first, or use --build to build and publish in one step.

SEE ALSO

Copied to clipboard
Kai