Skip to content

Conversation

girdharagrawalbro
Copy link
Contributor

@girdharagrawalbro girdharagrawalbro commented Oct 16, 2025

Adds documentation for poetry-publish command.

Examples included:

  • Publish to PyPI
  • Publish with username and password
  • Publish to custom repository
  • Publish with API token
  • Publish with dry-run
  • Publish built distributions

#18042

@github-actions github-actions bot added new command Issues requesting creation of a new page or PRs adding a new page for a command. review needed Prioritized PRs marked for reviews from maintainers. labels Oct 16, 2025
@dmmqz dmmqz mentioned this pull request Oct 16, 2025
28 tasks

- Publish to a specific repository configured in `pyproject.toml`:

`poetry publish --repository {{repository_name}}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`poetry publish --repository {{repository_name}}`
`poetry publish {{[-r|--repository]}} {{repository_name}}`


- Publish with a specific username and password:

`poetry publish --username {{username}} --password {{password}}`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`poetry publish --username {{username}} --password {{password}}`
`poetry publish {{[-u|--username]}} {{username}} {{[-p|--password]}} {{password}}`


- Display help:

`poetry publish --help`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
`poetry publish --help`
`poetry publish {{[-h|--help]}}`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new command Issues requesting creation of a new page or PRs adding a new page for a command. review needed Prioritized PRs marked for reviews from maintainers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants