Deploy Hex Packages via API

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

You can publish packages via the REST API.

To deploy Hex package via cURL:

curl -L -u<USER>:<TOKEN> -XPUT https://[JFrogPlatformURL]/artifactory/<REPOSITORY_NAME>/tarballs/ -T <HEX_PACKAGE_TAR_FILE_PATH>

Where:

  • <USER>: Name of the repository/repository key

  • <TOKEN>: Your JPD access token

  • <JFrogPlatformURL>: URL of your JPD

  • <REPOSITORY_NAME>: Name of the repository/repository key

  • <HEX_PACKAGE_TAR_FILE_PATH>: This specifies the local file to upload

For example:

curl -L -uadmin:cmVmdGtuOjAxOj05KMzNiZnVxMFFj -XPUT https://company.jfrog.io/artifactory/hex-virtual/tarballs/ -T my_package-0.1.0.tar

You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see Use Artifactory Set Me Up for Configuring Package Manager Clients.