Ruby CLI for Nexus Repository

A CLI wrapper around Sonatype Nexus REST calls.


Version latest was released May 25, 2016

Download from GitHub

Basic usage

Nexus CLI

A CLI wrapper around Sonatype Nexus REST calls.


  • Ruby


  1. Install the Gem - gem install nexus_cli
  2. Create a file in your user's home directory named .nexus_cli
  3. Give the file the following information:
url: 			"http://my-nexus-server/nexus/"
repository:		"my-repository-id"
username: 		"username"
password: 		"password"

You can also omit the username and password to create an anonymous session with the Nexus server. Keep in mind that an anonymous session may have different permissions than an authenticated one, depending on your Nexus server configuration.

Pull Artifact Example

nexus-cli pull_artifact com.mycompany.artifacts:myartifact:tgz:1.0.0

Push Artifact Example

nexus-cli push_artifact com.mycompany.artifacts:myartifact:tgz:1.0.0 ~/path/to/file/to/push/myartifact.tgz

Search Example

nexus-cli search_for_artifacts com.mycompany.artifacts:myartifact

or more generic if you wish:

nexus-cli search_for_artifacts com.mycompany.artifacts

License and Author

Author:: Kyle Allan ( 2013 Riot Games Inc.Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Kyle Allan

Company Riot Games