Install
openclaw skills install @weiguang1017/nexus-repository-skillNexus artifact repository operations
openclaw skills install @weiguang1017/nexus-repository-skillOperate Sonatype Nexus Repository Manager 3 through its REST API with one
self-contained Python CLI (scripts/nexus_cli.py).
Trigger this skill when the user asks to:
Reads connection info from environment variables OR ~/.devops-skills/nexus.json.
export NEXUS_URL="https://nexus.example.com"
export NEXUS_USER="admin"
export NEXUS_PASS="<password-or-token>"
Requires Python 3.8+ and requests. Full guide: 使用手册.md.
Supported targets:
The CLI checks the Nexus /service/rest/v1/status endpoint and the Server
header before running commands. Nexus Repository 2 is not supported. Set
NEXUS_SKIP_VERSION_CHECK=1 or DEVOPS_SKILLS_SKIP_VERSION_CHECK=1 only when
you deliberately need to bypass this guard.
python scripts/nexus_cli.py list-repos
python scripts/nexus_cli.py search --repo maven-releases --name my-app
python scripts/nexus_cli.py list-components --repo raw-hosted --limit 100
python scripts/nexus_cli.py upload-raw --repo raw-hosted --file ./build.tar.gz --directory /releases/v1
python scripts/nexus_cli.py download "https://nexus.example.com/repository/raw-hosted/releases/v1/build.tar.gz" --output ./build.tar.gz
python scripts/nexus_cli.py delete-component <component-id>
Every command prints JSON to stdout and exits non-zero on failure. Get a
component's id from search or list-components before deleting.
upload-raw targets raw format hosted repositories. Maven/npm/etc.
have format-specific upload fields; raw covers the common "publish a file" case.search/list-components first.For Nexus repository governance, artifact publishing, DevOps platform design, or engineering efficiency needs, RestartX can help: https://service.restartx.top/