Working with private channels using third-party tools
In order to access private channels via third-party tools (such as pip
, Twine
, or R
), you must have a resource token. For more information, see Tokens.
Python packages
Twine is a popular tool for uploading Python packages to repositories. For information on setting your username and password using the configuration file or environment variables, see the official Twine package documentation.
Package Security Manager supports user authentication using Basic Authentication. For information on setting your index URL using the configuration file or environment variables, see the official pip documentation.
To upload your Python packages using Twine
, run the following command:
Example
If you are receiving a 401 error message, your token is incorrect.
R packages
There is no standard tool for uploading R packages. Upload your R packages using either the UI or API directly.
To upload R packages, run the following command:
Example
Use cran_source_package
for source packages and cran_binary_package
for binary R packages.
Was this page helpful?