Simple cli tool for uploading folder structures to a Nexus (raw) repository.
If something goes wrong all uploaded files / folders will be removed from the Nexus repository.
Like all dotnet tools this tool can be used on a project / solution level (simply add the nuget dependency) or be installed as a global tool.
Simply use the following commmand:
dotnet tool install --global TaskIt.NexusUploader
dotnet tool update --global TaskIt.NexusUploader
dotnet tool uninstall --global TaskIt.NexusUploader
Simply call:
NexusUploader <parameters>
The folder structure in the target Repository (=targetUrl
) will be like this:
<groupId>\<artefactId>\<artifactVersion>
The folder
will not be created as subfolder of the path. Contents of the folder
will be placed directly under the specified path.
Parameter | Required | Description |
---|---|---|
-u --user |
yes | string - username for the nexus upload api |
-p --password |
yes | string - password for the nexus upload api. The password will be Base64 encoded. |
-t --targetUrl |
yes | string - Nexus repository url |
-f --folder |
false | string - Folder root for the uploaded content. Tf omitted, the current directory will be used as content root. |
-g --groupId |
yes | string - The group of the artifact |
-a --artifactId |
yes | string - The artifact name / id |
-v --artifactVersion |
yes | string - Artifact version / revision |