Skip to content

NexusCLI is a Rust-based command-line tool for managing Nexus repositories. It simplifies file uploads and deletions, making repository management a breeze

License

Notifications You must be signed in to change notification settings

jabibamman/NexusCLI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wakatime

NexusCLI

Table of Contents

Objective

NexusCLI is a command-line tool written in Rust for managing operations on a Nexus repository. It provides functionalities like uploading (U) and deleting (D) files.

Prerequisites

  • Rust and Cargo installed
  • Access to a Nexus repository

Installation

Clone the repository:

git clone https://github.com/jabibamman/NexusCLI.git
cd NexusCLI

Usage

Configuration

Create a .env file at the root of the project and add the necessary environment variables:

DOMAIN=your_domain
PROXY=your_proxy

Build

To build the project, run:

cargo build --release

Install as CLI

To use NexusCLI as a global CLI command, either add the binary path to your PATH or move the binary to a folder already in your PATH:

cp target/release/NexusCLI /usr/local/bin/nexus

Commands

To upload a file:
nexus --operation U --repository depot-local --directory rp/omer/ihm/homere-DV05.zip --source /home/jabib/Downloads/homere-DV05.zip
nexus -o U -r depot-local -d rp/omer/ihm/homere-DV05.zip -s /home/jabib/Downloads/homere-DV05.zip
To delete a file:
nexus --operation D --repository depot-local --directory rp/omer/ihm/homere-DV05.zip
nexus -o D -r depot-local -d rp/omer/ihm/homere-DV05.zip

Contribution

  1. Clone the project
  2. Create a new branch (git checkout -b feat/myNewFeature)
  3. Make your changes
  4. Commit your changes (git commit -am 'Add myNewFeature')
  5. Push to the branch (git push origin feat/myNewFeature)
  6. Open a Pull Request
  7. Wait for approval
  8. Happy coding!

License

MIT License

About

NexusCLI is a Rust-based command-line tool for managing Nexus repositories. It simplifies file uploads and deletions, making repository management a breeze

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages