commands.sh

poetry publish

all

Publish a package to a remote repository.

More info →

Options (3)

-r, --repositoryboolean

Publish to a specific repository

Example: poetry publish {{[-r|--repository]}} {{repository_name}}
-u, --usernameboolean

Publish with specific credentials

Example: poetry publish {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}}
-p, --passwordboolean

Publish with specific credentials

Example: poetry publish {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}}

Examples (6)

Publish the current package to PyPI

Build the package before publishing

Publish to a specific repository

poetry publish [-r|--repository] repository_name

Publish with specific credentials

poetry publish [-u|--username] username [-p|--password] password

Perform a dry run to see what would be done without actually publishing

poetry publish --dry-run

Skip files that already exist in the repository

poetry publish --skip-existing
made by @shridhargupta | data from tldr-pages