File: //snap/google-cloud-cli/394/help/man/man1/gcloud_beta_artifacts_repositories_create.1
.TH "GCLOUD_BETA_ARTIFACTS_REPOSITORIES_CREATE" 1
.SH "NAME"
.HP
gcloud beta artifacts repositories create \- create an Artifact Registry repository
.SH "SYNOPSIS"
.HP
\f5gcloud beta artifacts repositories create\fR (\fIREPOSITORY\fR\ :\ \fB\-\-location\fR=\fILOCATION\fR) \fB\-\-repository\-format\fR=\fIREPOSITORY_FORMAT\fR [\fB\-\-allow\-snapshot\-overwrites\fR] [\fB\-\-async\fR] [\fB\-\-description\fR=\fIDESCRIPTION\fR] [\fB\-\-kms\-key\fR=\fIKMS_KEY\fR] [\fB\-\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]] [\fB\-\-version\-policy\fR=\fIVERSION_POLICY\fR] [\fIGCLOUD_WIDE_FLAG\ ...\fR]
.SH "DESCRIPTION"
\fB(BETA)\fR Create a new Artifact Registry repository.
This command can fail for the following reasons:
.RS 2m
.IP "\(bu" 2m
A repository with the same name already exists.
.IP "\(bu" 2m
The active account does not have permission to create repositories.
.IP "\(bu" 2m
A valid repository format was not provided.
.RE
.sp
.SH "EXAMPLES"
To create a repository with the name \f5my\-repo\fR under the current project,
run:
.RS 2m
$ gcloud beta artifacts repositories create my\-repo
.RE
To create repository \f5my\-repo\fR with a KMS key
\f5projects/my\-project/locations/us/keyRings/my\-kr/cryptoKeys/my\-key\fR, run:
.RS 2m
$ gcloud beta artifacts repositories create my\-repo \e
\-\-kms\-key=projects/my\-project/locations/us/keyRings/my\-kr/\e
cryptoKeys/my\-key
.RE
.SH "POSITIONAL ARGUMENTS"
.RS 2m
.TP 2m
Repository resource \- The Artifact Registry repository to create. The arguments
in this group can be used to specify the attributes of this resource. (NOTE)
Some attributes are not given arguments in this group but can be set in other
ways.
To set the \f5project\fR attribute:
.RS 2m
.IP "\(em" 2m
provide the argument \f5repository\fR on the command line with a fully specified
name;
.IP "\(em" 2m
provide the argument \f5\-\-project\fR on the command line;
.IP "\(em" 2m
set the property \f5core/project\fR.
.RE
.sp
This must be specified.
.RS 2m
.TP 2m
\fIREPOSITORY\fR
ID of the repository or fully qualified identifier for the repository.
To set the \f5repository\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5repository\fR on the command line.
.RE
.sp
This positional argument must be specified if any of the other arguments in this
group are specified.
.TP 2m
\fB\-\-location\fR=\fILOCATION\fR
Location of the repository. Overrides the default artifacts/location property
value for this command invocation. To configure the default location, use the
command: gcloud config set artifacts/location.
To set the \f5location\fR attribute:
.RS 2m
.IP "\(bu" 2m
provide the argument \f5repository\fR on the command line with a fully specified
name;
.IP "\(bu" 2m
provide the argument \f5\-\-location\fR on the command line;
.IP "\(bu" 2m
set the property \f5artifacts/location\fR.
.RE
.sp
.RE
.RE
.sp
.SH "REQUIRED FLAGS"
.RS 2m
.TP 2m
\fB\-\-repository\-format\fR=\fIREPOSITORY_FORMAT\fR
Format of the repository. REPOSITORY_FORMAT must be one of:
.RS 2m
apt
APT package format.
docker
Docker image format.
googet
GooGet package format.
kfp
KFP package format.
maven
Maven package format.
npm
NPM package format.
python
Python package format.
yum
YUM package format.
.RE
.RE
.sp
.SH "OPTIONAL FLAGS"
.RS 2m
.TP 2m
\fB\-\-allow\-snapshot\-overwrites\fR
(Maven only) Allow repository users to publish a snapshot that overwrites the
same snapshot version in the repository.
.TP 2m
\fB\-\-async\fR
Return immediately, without waiting for the operation in progress to complete.
.TP 2m
\fB\-\-description\fR=\fIDESCRIPTION\fR
Description for the repository.
.TP 2m
\fB\-\-kms\-key\fR=\fIKMS_KEY\fR
Name of the encryption key that's used for encrypting the contents of the
repository.
.TP 2m
\fB\-\-labels\fR=[\fIKEY\fR=\fIVALUE\fR,...]
List of label KEY=VALUE pairs to add.
Keys must start with a lowercase character and contain only hyphens (\f5\-\fR),
underscores (\f5_\fR), lowercase characters, and numbers. Values must contain
only hyphens (\f5\-\fR), underscores (\f5_\fR), lowercase characters, and
numbers.
.TP 2m
\fB\-\-version\-policy\fR=\fIVERSION_POLICY\fR
(Maven only) The package versions that the repository will store.
\fIVERSION_POLICY\fR must be one of:
.RS 2m
.TP 2m
\fBnone\fR
(Maven only) The repository doesn't validate the version type.
.TP 2m
\fBrelease\fR
(Maven only) The repository accepts release versions only.
.TP 2m
\fBsnapshot\fR
(Maven only) The repository accepts snapshot versions only.
.RE
.sp
.RE
.sp
.SH "GCLOUD WIDE FLAGS"
These flags are available to all commands: \-\-access\-token\-file, \-\-account,
\-\-billing\-project, \-\-configuration, \-\-flags\-file, \-\-flatten,
\-\-format, \-\-help, \-\-impersonate\-service\-account, \-\-log\-http,
\-\-project, \-\-quiet, \-\-trace\-token, \-\-user\-output\-enabled,
\-\-verbosity.
Run \fB$ gcloud help\fR for details.
.SH "API REFERENCE"
This command uses the \fBartifactregistry/v1beta2\fR API. The full documentation
for this API can be found at: https://cloud.google.com/artifacts/docs/
.SH "NOTES"
This command is currently in beta and might change without notice. These
variants are also available:
.RS 2m
$ gcloud artifacts repositories create
.RE
.RS 2m
$ gcloud alpha artifacts repositories create
.RE