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.
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:
Copy
Ask AI
# Replace <FQDN> with your Package Security Manager fully qualified domain name# Replace <CHANNEL> with the name of the channel you want to upload your package to# Replace <PACKAGE> with the name of the package you are uploading# Replace <TOKEN> with a resource token that provides access to the channeltwine upload --repository-url http://<FQDN>/api/repo/<CHANNEL> <PACKAGE> -u <TOKEN> -p x-auth-token
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:
Copy
Ask AI
# Replace <FQDN> with your Package Security Manager fully qualified domain name# Replace <CHANNEL> with the name of the channel you want to upload your package to# Replace <PACKAGE> with the name of the package you are uploading# Replace <TOKEN> with a resource token that provides access to the channelcurl -v -F filetype=cran_source_package -F content=@<PACKAGE> http://<FQDN>/api/repo/<CHANNEL> -H"X-Auth: <TOKEN>"