Command-line Interface¶
Logging level can be configured by setting an environment variable named
LOG_LEVEL. Valid values are: DEBUG, INFO, WARNING (default),
ERROR, CRITICAL.
nexus3¶
nexus3 [OPTIONS] COMMAND [ARGS]...
Options
-
--version¶ Show the version and exit.
cleanup-policy¶
Manage clean-up policies.
nexus3 cleanup-policy [OPTIONS] COMMAND [ARGS]...
create¶
Create or update a cleanup policy called NAME.
nexus3 cleanup-policy create [OPTIONS] NAME
Options
-
--format<format>¶ The recipe that this cleanup policy can be applied to
- Options
all|apt|bower|docker|maven|npm|nuget|pypi|raw|rubygems|yum
-
--downloaded<downloaded>¶ Cleanup criteria; last downloaded in this many days.
-
--updated<updated>¶ Cleanup criteria; last updated in this many days.
-
--regex<regex>¶ Cleanup criteria; only cleanup components matching expression
-
--notes<notes>¶ Notes about your policy
Arguments
-
NAME¶ Required argument
list¶
nexus3 cleanup-policy list [OPTIONS]
delete¶
Recursively delete all files under REPOSITORY_PATH.
REPOSITORY_PATH must start with a repository name.
nexus3 delete [OPTIONS] REPOSITORY_PATH
Arguments
-
REPOSITORY_PATH¶ Required argument
download¶
Download remote SRC to local DEST. If either argument ends with a /, it’s assumed to be a directory.
SRC must start with a repository name and optionally be followed by a path to be downloaded.
nexus3 download [OPTIONS] SRC DST
Options
-
--flatten,--no-flatten¶ Flatten DEST directory structure
-
--cache,--no-cache¶ Do not download if a local copy is already up-to-date
Arguments
-
SRC¶ Required argument
-
DST¶ Required argument
list¶
List all files within REPOSITORY_PATH.
REPOSITORY_PATH must start with a repository name.
nexus3 list [OPTIONS] REPOSITORY_PATH
Arguments
-
REPOSITORY_PATH¶ Required argument
login¶
Login to Nexus server, saving settings to ~/.nexus-cli.
nexus3 login [OPTIONS]
Options
-
-U,--url<url>¶ Nexus OSS URL [default: http://localhost:8081]
-
-u,--username<username>¶ Nexus user [default: admin]
-
-p,--password<password>¶ Password for user
-
--x509_verify,--no-x509_verify¶ Verify server certificate [default: True]
repository¶
Manage repositories.
nexus3 repository [OPTIONS] COMMAND [ARGS]...
create¶
Create a repository.
nexus3 repository create [OPTIONS] COMMAND [ARGS]...
hosted¶
Create a hosted repository.
nexus3 repository create hosted [OPTIONS] COMMAND [ARGS]...
apt¶
Create a hosted apt repository.
nexus3 repository create hosted apt [OPTIONS] REPOSITORY_NAME
Options
-
--blob-store-name<blob_store_name>¶ Blobstore name to use with new repository
-
--strict-content,--no-strict-content¶ Toggle strict content type validation
-
--cleanup-policy<cleanup_policy>¶ Name of existing clean-up policy to use
-
--write-policy<write_policy>¶ Write policy to use
- Options
allow|allow_once|deny
-
--distribution<distribution>¶ Distribution to fetch; e.g.: bionic [required]
-
--gpg-keypair<gpg_keypair>¶ Path to GPG signing key [required]
-
--passphrase<passphrase>¶ Passphrase for GPG key pair
Arguments
-
REPOSITORY_NAME¶ Required argument
docker¶
Create a hosted docker repository.
nexus3 repository create hosted docker [OPTIONS] REPOSITORY_NAME
Options
-
--blob-store-name<blob_store_name>¶ Blobstore name to use with new repository
-
--strict-content,--no-strict-content¶ Toggle strict content type validation
-
--cleanup-policy<cleanup_policy>¶ Name of existing clean-up policy to use
-
--write-policy<write_policy>¶ Write policy to use
- Options
allow|allow_once|deny
-
--v1-enabled,--no-v1-enabled¶ Enable v1 registry
-
--force-basic-auth,--no-force-basic-auth¶ Force use of basic authentication
-
--http-port<http_port>¶ Port for HTTP service
-
--https-port<https_port>¶ Port for HTTPS service
Arguments
-
REPOSITORY_NAME¶ Required argument
maven¶
Create a hosted maven repository.
nexus3 repository create hosted maven [OPTIONS] REPOSITORY_NAME
Options
-
--blob-store-name<blob_store_name>¶ Blobstore name to use with new repository
-
--strict-content,--no-strict-content¶ Toggle strict content type validation
-
--cleanup-policy<cleanup_policy>¶ Name of existing clean-up policy to use
-
--write-policy<write_policy>¶ Write policy to use
- Options
allow|allow_once|deny
-
--version-policy<version_policy>¶ Version policy to use
- Options
release|snapshot|mixed
-
--layout-policy<layout_policy>¶ Layout policy to use
- Options
strict|permissive
Arguments
-
REPOSITORY_NAME¶ Required argument
recipe¶
Create a hosted repository.
nexus3 repository create hosted recipe [OPTIONS] REPOSITORY_NAME
Options
-
--blob-store-name<blob_store_name>¶ Blobstore name to use with new repository
-
--strict-content,--no-strict-content¶ Toggle strict content type validation
-
--cleanup-policy<cleanup_policy>¶ Name of existing clean-up policy to use
-
--write-policy<write_policy>¶ Write policy to use
- Options
allow|allow_once|deny
Arguments
-
REPOSITORY_NAME¶ Required argument
yum¶
Create a hosted yum repository.
nexus3 repository create hosted yum [OPTIONS] REPOSITORY_NAME
Options
-
--blob-store-name<blob_store_name>¶ Blobstore name to use with new repository
-
--strict-content,--no-strict-content¶ Toggle strict content type validation
-
--cleanup-policy<cleanup_policy>¶ Name of existing clean-up policy to use
-
--write-policy<write_policy>¶ Write policy to use
- Options
allow|allow_once|deny
-
--depth<depth>¶ Depth where repodata folder(s) exist
Arguments
-
REPOSITORY_NAME¶ Required argument
proxy¶
Create a proxy repository.
nexus3 repository create proxy [OPTIONS] COMMAND [ARGS]...
apt¶
Create a proxy apt repository.
nexus3 repository create proxy apt [OPTIONS] REPOSITORY_NAME REMOTE_URL
Options
-
--blob-store-name<blob_store_name>¶ Blobstore name to use with new repository
-
--strict-content,--no-strict-content¶ Toggle strict content type validation
-
--cleanup-policy<cleanup_policy>¶ Name of existing clean-up policy to use
-
--auto-block,--no-auto-block¶ Disable outbound connections on remote-url access errors
-
--negative-cache,--no-negative-cache¶ Cache responses for content missing in the remote-url
-
--negative-cache-ttl<negative_cache_ttl>¶ Cache time in minutes
-
--content-max-age<content_max_age>¶ Maximum age of cached artefacts
-
--metadata-max-age<metadata_max_age>¶ Maximum age of cached artefacts metadata
-
--remote-auth-type<remote_auth_type>¶ Only username is supported
- Options
username
-
--remote-username<remote_username>¶ Username for remote URL
-
--remote-password<remote_password>¶ Password for remote URL
-
--distribution<distribution>¶ Distribution to fetch; e.g.: bionic [required]
-
--flat,--no-flat¶ Is this repository flat?
Arguments
-
REPOSITORY_NAME¶ Required argument
-
REMOTE_URL¶ Required argument
docker¶
Create a docker proxy repository.
nexus3 repository create proxy docker [OPTIONS] REPOSITORY_NAME REMOTE_URL
Options
-
--blob-store-name<blob_store_name>¶ Blobstore name to use with new repository
-
--strict-content,--no-strict-content¶ Toggle strict content type validation
-
--cleanup-policy<cleanup_policy>¶ Name of existing clean-up policy to use
-
--auto-block,--no-auto-block¶ Disable outbound connections on remote-url access errors
-
--negative-cache,--no-negative-cache¶ Cache responses for content missing in the remote-url
-
--negative-cache-ttl<negative_cache_ttl>¶ Cache time in minutes
-
--content-max-age<content_max_age>¶ Maximum age of cached artefacts
-
--metadata-max-age<metadata_max_age>¶ Maximum age of cached artefacts metadata
-
--remote-auth-type<remote_auth_type>¶ Only username is supported
- Options
username
-
--remote-username<remote_username>¶ Username for remote URL
-
--remote-password<remote_password>¶ Password for remote URL
-
--v1-enabled,--no-v1-enabled¶ Enable v1 registry
-
--force-basic-auth,--no-force-basic-auth¶ Force use of basic authentication
-
--http-port<http_port>¶ Port for HTTP service
-
--https-port<https_port>¶ Port for HTTPS service
-
--index-type<index_type>¶ Docker index type
- Options
registry|hub|custom
-
--index-url<index_url>¶ Required for –index-type custom
-
--trust-store,--no-trust-store¶ Required for –index-type hub or custom
Arguments
-
REPOSITORY_NAME¶ Required argument
-
REMOTE_URL¶ Required argument
maven¶
Create a maven proxy repository.
nexus3 repository create proxy maven [OPTIONS] REPOSITORY_NAME REMOTE_URL
Options
-
--blob-store-name<blob_store_name>¶ Blobstore name to use with new repository
-
--strict-content,--no-strict-content¶ Toggle strict content type validation
-
--cleanup-policy<cleanup_policy>¶ Name of existing clean-up policy to use
-
--auto-block,--no-auto-block¶ Disable outbound connections on remote-url access errors
-
--negative-cache,--no-negative-cache¶ Cache responses for content missing in the remote-url
-
--negative-cache-ttl<negative_cache_ttl>¶ Cache time in minutes
-
--content-max-age<content_max_age>¶ Maximum age of cached artefacts
-
--metadata-max-age<metadata_max_age>¶ Maximum age of cached artefacts metadata
-
--remote-auth-type<remote_auth_type>¶ Only username is supported
- Options
username
-
--remote-username<remote_username>¶ Username for remote URL
-
--remote-password<remote_password>¶ Password for remote URL
-
--version-policy<version_policy>¶ Version policy to use
- Options
release|snapshot|mixed
-
--layout-policy<layout_policy>¶ Layout policy to use
- Options
strict|permissive
Arguments
-
REPOSITORY_NAME¶ Required argument
-
REMOTE_URL¶ Required argument
recipe¶
Create a proxy repository.
nexus3 repository create proxy recipe [OPTIONS] REPOSITORY_NAME REMOTE_URL
Options
-
--blob-store-name<blob_store_name>¶ Blobstore name to use with new repository
-
--strict-content,--no-strict-content¶ Toggle strict content type validation
-
--cleanup-policy<cleanup_policy>¶ Name of existing clean-up policy to use
-
--auto-block,--no-auto-block¶ Disable outbound connections on remote-url access errors
-
--negative-cache,--no-negative-cache¶ Cache responses for content missing in the remote-url
-
--negative-cache-ttl<negative_cache_ttl>¶ Cache time in minutes
-
--content-max-age<content_max_age>¶ Maximum age of cached artefacts
-
--metadata-max-age<metadata_max_age>¶ Maximum age of cached artefacts metadata
-
--remote-auth-type<remote_auth_type>¶ Only username is supported
- Options
username
-
--remote-username<remote_username>¶ Username for remote URL
-
--remote-password<remote_password>¶ Password for remote URL
Arguments
-
REPOSITORY_NAME¶ Required argument
-
REMOTE_URL¶ Required argument
yum¶
Create a yum proxy repository.
nexus3 repository create proxy yum [OPTIONS] REPOSITORY_NAME REMOTE_URL
Options
-
--blob-store-name<blob_store_name>¶ Blobstore name to use with new repository
-
--strict-content,--no-strict-content¶ Toggle strict content type validation
-
--cleanup-policy<cleanup_policy>¶ Name of existing clean-up policy to use
-
--auto-block,--no-auto-block¶ Disable outbound connections on remote-url access errors
-
--negative-cache,--no-negative-cache¶ Cache responses for content missing in the remote-url
-
--negative-cache-ttl<negative_cache_ttl>¶ Cache time in minutes
-
--content-max-age<content_max_age>¶ Maximum age of cached artefacts
-
--metadata-max-age<metadata_max_age>¶ Maximum age of cached artefacts metadata
-
--remote-auth-type<remote_auth_type>¶ Only username is supported
- Options
username
-
--remote-username<remote_username>¶ Username for remote URL
-
--remote-password<remote_password>¶ Password for remote URL
Arguments
-
REPOSITORY_NAME¶ Required argument
-
REMOTE_URL¶ Required argument
script¶
Manage scripts.
nexus3 script [OPTIONS] COMMAND [ARGS]...
create¶
Create a new script called NAME from FILE.
nexus3 script create [OPTIONS] NAME FILE
Options
-
--script-type<script_type>¶ Script type
Arguments
-
NAME¶ Required argument
-
FILE¶ Required argument
upload¶
Upload local SRC to remote DST. If either argument ends with a /, it’s assumed to be a directory.
DEST must start with a repository name and optionally be followed by the path where SRC is to be uploaded to.
nexus3 upload [OPTIONS] SRC DST
Options
-
--flatten,--no-flatten¶ Flatten DST directory structure
-
--recurse,--no-recurse¶ Process all SRC subdirectories
Arguments
-
SRC¶ Required argument
-
DST¶ Required argument