Forrest logo
back to the twine tool

twine:tldr:14b57

twine: Continue uploading files if one already exists (only valid when uploading to PyPI).
$ twine upload --skip-existing dist/*
try on your machine

This command is used to upload files to Twine, which is a package repository and distribution service for Python packages. Let's break down the command:

  • twine: This is the executable that allows you to interact with the Twine service. You need to have Twine installed for this command to work.

  • upload: This is the specific action you want Twine to perform. It tells Twine to upload the packages to the repository.

  • --skip-existing: This option instructs Twine to skip uploading any files that already exist in the repository. If any files with the same name already exist, Twine won't upload them again.

  • dist/*: This is the path to the files you want to upload. dist/* is a wildcard pattern that matches all files in the "dist" directory. The "dist" directory typically contains the built packages that you want to upload.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the twine tool