Categorygithub.com/Intware-Consulting/nexus-migrator
modulepackage
0.0.3
Repository: https://github.com/intware-consulting/nexus-migrator.git
Documentation: pkg.go.dev

# README

nexus-migrator

The application can be used to download and upload raw Nexus repositories.

Configuration

By default, the application searches for the configuration file in the same directory. The file should be called nexus.conf:

{
    "nexus": "https://nexus.intware.eu",
    "user": "api",
    "pass": "api",
    "timeout": "120s",
    "level": "info"
}

If nexus.conf isn't found, the application will read environment variables:

NEXUS="https://nexus.intware.eu"
USER="api"
PASS="api"
TIMEOUT="120s"

Possible configuration properties:

PropertyDescription
nexusUrl to Nexus repository
userAPI username
PasswordAPI password
timeoutHTTP timeout
levelLog level: trace, debug, info, warn, error, fatal, panic, disabled

How to use it

Download repository

To download the remote Nexus raw repository to a local directory:

./nexus-migrator download -s software -t /tmp

Upload repository

Upload a local directory to the Nexus raw repository:

./nexus-migrator upload -s /tmp -t software

Show help

./nexus-migrator --help

# Packages

No description provided by the author
No description provided by the author