gcloud alpha artifacts print-settings

NAME
gcloud alpha artifacts print-settings - print snippets to add to native tools settings files
SYNOPSIS
gcloud alpha artifacts print-settingsCOMMAND[GCLOUD_WIDE_FLAG]
DESCRIPTION
(ALPHA) The snippets provide a credentials placeholder andconfigurations to allow native tools to interact with Artifact Registryrepositories.
EXAMPLES
To print a snippet to add a repository to the Gradle build.gradle file forrepository my-repo in the current project, run:
gcloudalphaartifactsprint-settingsgradle--repository=my-repo

To print a snippet to add to the Maven pom.xml file for repository my-repo inthe current project, run:

gcloudalphaartifactsprint-settingsmvn--repository=my-repo

To print a snippet to add to the npm .npmrc file for repository my-repo in thecurrent project, run:

gcloudalphaartifactsprint-settingsnpm--repository=my-repo

To print a snippet to add to the Python .pypirc and pip.comf files forrepository my-repo in the current project, run:

gcloudalphaartifactsprint-settingspython--repository=my-repo
GCLOUD WIDE FLAGS
These flags are available to all commands:--help.

Run$gcloud help for details.

COMMANDS
COMMAND is one of the following:
apt
(ALPHA) Print settings to add to the sources.list.d directory.
gradle
(ALPHA) Print a snippet to add a repository to the Gradlebuild.gradle file.
mvn
(ALPHA) Print a snippet to add a Maven repository to the pom.xmlfile.
npm
(ALPHA) Print credential settings to add to the .npmrc file.
python
(ALPHA) Print credential settings to add to the .pypirc andpip.conf files.
yum
(ALPHA) Print settings to add to the yum.repos.d directory.
NOTES
This command is currently in alpha and might change without notice. If thiscommand fails with API permission errors despite specifying the correct project,you might be trying to access an API with an invitation-only early accessallowlist. These variants are also available:
gcloudartifactsprint-settings
gcloudbetaartifactsprint-settings

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-05-07 UTC.