Deploy Bower Packages

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

The Bower client does not have a specific command to deploy packages. To deploy a Bower package to Artifactory, use the Artifactory web UI or REST API.

Bower Versioning

Make sure to include a version property in your bower.json file and update it as needed. Add the property manually or by using the bower version command.

To deploy a package using the Artifactory REST API:

Run this command:

curl -L -u<USERNAME>:<AUTH> -XPUT https://[JFrogPlatformURL]/artifactory/<REPO_NAME>/<TARGET_FILE_PATH> -T <PATH_TO_FILE>

Where:

  • <USERNAME>: Your Artifactory username

  • <AUTH>: Your Artifactory identity token

  • [JFrogPlatformURL]: The URL of your JPD

  • <REPO_NAME>: The name of the target repository

  • <TARGET_FILE_PATH>: The destination path in your Artifactory repository

  • <PATH_TO_FILE>: The source path of the file on your local machine

For example:

curl -L -ujeffry:51HnvD0A1g2q3n4b5F6g7H8j9K0l1m2N3o4P5q6R7s8T9u0V1w2X3y4 -XPUT https://company.jfrog.io/artifactory/bower-local/jquery/1.9.1/jquery.min.js -T /Users/jeffry/downloads/jquery.min.js

Note

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.