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.
- Rust and Cargo installed
- Access to a Nexus repository
Clone the repository:
git clone https://github.com/jabibamman/NexusCLI.git
cd NexusCLI
Create a .env file at the root of the project and add the necessary environment variables:
DOMAIN=your_domain
PROXY=your_proxy
To build the project, run:
cargo build --release
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
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
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
- Clone the project
- Create a new branch (git checkout -b feat/myNewFeature)
- Make your changes
- Commit your changes (git commit -am 'Add myNewFeature')
- Push to the branch (git push origin feat/myNewFeature)
- Open a Pull Request
- Wait for approval
- Happy coding!