简体   繁体   中英

Upload to Artifactory with different artifact name, using JFrog CLI

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>"

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM