nexus-cli
nexus-cli copied to clipboard
HTTP Code: 400
vitaliebrinza:nexus vitalieb$ ./nexus-cli -v Nexus CLI version 1.0.0-beta
vitaliebrinza:nexus vitalieb$ ./nexus-cli configure Enter Nexus Host: https://artefacts3.domain:8084 Enter Nexus Repository Name: company Enter Nexus Username: admin Enter Nexus Password: password
gives me: vitaliebrinza:nexus vitalieb$ ./nexus-cli image ls HTTP Code: 400
I think it might be about the config you put there, try to verify whether your Nexus Host and Repository is correctly configed. you should find a file .credentials, you can directly modify content there instead of doing "nexus-cli configure" every time.
in my case, if i have port number set in Nexus Host, I got 400, but if I skip it, it works fine. also the Repository name is the one you set in your Nexus. login as admin and go to the repo you want to use, try to find URL that should be the one. ahead of "repository" is the "Nexus Host" value and after it is the "Nexus Repository Name" value
Enter the nexus' port, not the docker repository's port.
My nexus' port is 9081
, and the docker repository port is 9091
,
when I enter http://ip:9091
, it gives HTTP Code: 400
.
I changed the port to 9081
, it works.
thanks it worked
how about when the url has no Repository ?