To deploy a Terraform provider to an Artifactory repository, use the following curl command:
Note
Make sure to replace the placeholders with your token, JFrog Platform domain, repository key, namespace, provider name, version, operating system, architecture, and path to the file on your machine.
curl -upm-admin:<TOKEN> -XPUT "https://<YOUR_JFROG_DOMAIN>/artifactory/<REPOSITORY_KEY>/<NAMESPACE>/<PROVIDER_NAME>/<VERSION>/terraform-provider-<PROVIDER_NAME>_<VERSION>_<OPERATING_SYSTEM>_<ARCHITECTURE>.zip" -T <PATH_TO_FILE>
For example:
curl -upm-admin:EKu8Bz5pCLLM8p1RhGqVeeDzrsHJpTCygcrrUCdFm00tkRqe4UCjU5s0Ke7T7km0 -X PUT "http://johnf.jfrog.io/artifactory/terraform-main-provider/hashicorp/null/3.1.0/terraform-provider-null_3.1.0_linux_amd64.zip" -T test-provider-linux-amd64.zip