Artifact upload tool for Sonatype Nexus 3
Alternative to curl -X POST -u user:pwd -F "[email protected]" ...
Supported asset types: pypi
, rubygems
, nuget
, npm
See API docs
pip install snaut
snaut --help
snaut -r http://host/service/rest/v1/components?repository=myrepo -a pypi mypackage.whl
Environment variables or .env
file can be useful in your CI/CD pipeline:
- SNAUT_REPO
- SNAUT_ASSET
- SNAUT_DIRECTORY
- SNAUT_USERNAME
- SNAUT_PASSWORD
- SNAUT_VERBOSE
- SNAUT_TIMEOUT
- SNAUT_NO_VERIFY
Example:
python setup.py sdist bdist_wheel
snaut dist/*
RAW asset type:
snaut -d /mypath dist/*
snaut -d / myfile.zip