0

Here's how you upload an artifact with a different name using curl:

curl -H "X-JFrog-Art-Api:<KEY>" -X PUT "http://localhost:8081/artifactory/<TARGET_REPO>/custom_artifact_name.zip" -T original_artifact_name.zip

But how do you do this with the jfrog cli? Here's what I have so far:

jfrog rt u original_artifact_name.zip <TARGET_REPO> --url "http://localhost:8081/artifactory" --apikey="<KEY>"
Dror Bereznitsky
  • 20,048
  • 3
  • 48
  • 57
giraffe
  • 721
  • 3
  • 9
  • 25

1 Answers1

2

You can include the artifact name in the target repo parameter:

jfrog rt u original_artifact_name.zip <TARGET_REPO>/custom_artifact_name.zip --url "http://localhost:8081/artifactory" --apikey="<KEY>"

See the documentation here for more info.

giraffe
  • 721
  • 3
  • 9
  • 25