YJWANG

nexus3 cli 몇가지 본문

60.Cloud/70.Docker

nexus3 cli 몇가지

왕영주 2020. 11. 25. 12:03

# pip3 install nexus3-cli

현 repo 리스트

[root@wyj02_deploy_0 ~]# nexus3 repository list
Name              Format   Type     URL                                             
nuget-group       nuget    group    http://localhost:8081/repository/nuget-group    
maven-snapshots   maven2   hosted   http://localhost:8081/repository/maven-snapshots
maven-central     maven2   proxy    http://localhost:8081/repository/maven-central  
testregi          docker   hosted   http://localhost:8081/repository/testregi       
nuget.org-proxy   nuget    proxy    http://localhost:8081/repository/nuget.org-proxy
maven-releases    maven2   hosted   http://localhost:8081/repository/maven-releases 
testregi2         docker   hosted   http://localhost:8081/repository/testregi2      
nuget-hosted      nuget    hosted   http://localhost:8081/repository/nuget-hosted   
maven-public      maven2   group    http://localhost:8081/repository/maven-public   

이미지 지우기

[root@wyj02_deploy_0 ~]# nexus3 delete testregi2/v2/test1/manifests/latest
Deleting[################################] 1/1 - 00:00:00
Deleted 1 file
[root@wyj02_deploy_0 ~]# nexus3 delete testregi2/v2/test2/manifests/latest
Deleting[################################] 1/1 - 00:00:00
Deleted 1 file
[root@wyj02_deploy_0 ~]# nexus3 delete testregi2/v2/test3/manifests/latest
Deleting[################################] 1/1 - 00:00:00
Deleted 1 file

이미지 확인

[root@wyj02_deploy_0 ~]# nexus3 list testregi2
v2/test1/manifests/latest
v2/test2/manifests/latest
v2/test3/manifests/latest

realm 확인

[root@wyj02_deploy_0 ~]# nexus3 security realm available
Id                                                                      Name                      
==================================================================================================
org.sonatype.repository.conan.internal.security.token.ConanTokenRealm   Conan Bearer Token Realm  
DefaultRole                                                             Default Role Realm        
DockerToken                                                             Docker Bearer Token Realm 
LdapRealm                                                               LDAP Realm                
NexusAuthenticatingRealm                                                Local Authenticating Realm
NexusAuthorizingRealm                                                   Local Authorizing Realm   
NpmToken                                                                npm Bearer Token Realm    
NuGetApiKey                                                             NuGet API-Key Realm       
rutauth-realm                                                           Rut Auth Realm    

active realm 확인

[root@wyj02_deploy_0 ~]# nexus3 security realm active
["NexusAuthenticatingRealm", "NexusAuthorizingRealm", "DockerToken"]
반응형