Upload to PyPI with a specified [u]sername and [p]assword

twine

  • Utility for publishing Python packages on PyPI.
    More information: <https://twine.readthedocs.io/en/stable/#commands>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

twine upload -u {{username}} -p {{password}} dist/*

click the source code to copy install twine on any operating system with command-not-found.com