Upload packages to Gemfury

Once you have signed up for a Gemfury account, you will want to fill it with packages.

You can use any of the following methods:

From the Dashboard

The most straightforward way to add packages to your account is to visit your dashboard, hit the "+Upload" button, and follow the steps there.

You may upload in any supported format, and Gemfury will automatically recognize and add it to your account.

Using Gemfury CLI

To install the Gemfury CLI, please run the following command:

$ gem install gemfury

You will need a working Ruby and Rubygems setup in your system. Ruby version at least 1.8 is required.

Authenticate with your Gemfury login credentials:

$ fury login
Please enter your Gemfury credentials.
Email: youremail@domain.com
Password: <hidden password>
You are logged in as "[USERNAME]"

And subsequently upload packages with the fury push command:

$ fury push package-file-1.0.1.tgz

If you are importing a lot of packages, we recommend the mass-upload command fury migrate to upload all packages in a directory:

$ fury migrate ./package-store

To learn more what you can do with the CLI, refer to the Gemfury CLI docs.

Using cURL

To use this method, you will need your Push-URL, which takes the following format:

https://TOKEN@push.fury.io/USERNAME/

You can find your personal access token in the Settings > Tokens page of your Gemfury account.

To upload a single package, use the following command:

$ curl -F package=@<Package File> <Push-URL>

For example, uploading foo-0.0.2.gem will run like this:

$ curl -F package=@foo-0.0.2.gem https://TOKEN@push.fury.io/USERNAME/
~~> Processing package upload
    foo-0.0.2.gem ... ok

If you collaborate on a team account, you can upload packages to that account by using your personal access token along with the team’s username in the Push-URL:

https://TOKEN@push.fury.io/TEAM-USERNAME/

Using Git

This method is only available for RubyGems, Node.js npm, PHP Composer, Bower, and Python PyPI packages.

To use this method, you will need to add a remote repository reference pointing to your package in Gemfury:

$ git remote add fury https://git.fury.io/USERNAME/PACKAGE-NAME.git

And upload the source content with:

$ git push fury master

You may be asked to authenticate with your Gemfury login credentials.

To learn more about authenticating and uploading packages with Git, refer to the git-push docs.