- NAME
-
- gcloud beta artifacts print-settings - print snippets to add to native tools settings files
- SYNOPSIS
-
-
gcloud beta artifacts print-settingsCOMMAND[GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(BETA)The snippets provide a credentials placeholder and configurations to allow native tools to interact with Artifact Registry repositories. - EXAMPLES
- To print a snippet to add a repository to the Gradle build.gradle file for
repository my-repo in the current project, run:
gcloud beta artifacts print-settings gradle --repository = my-repoTo print a snippet to add to the Maven pom.xml file for repository my-repo in the current project, run:
gcloud beta artifacts print-settings mvn --repository = my-repoTo print a snippet to add to the npm .npmrc file for repository my-repo in the current project, run:
gcloud beta artifacts print-settings npm --repository = my-repoTo print a snippet to add to the Python .pypirc and pip.comf files for repository my-repo in the current project, run:
gcloud beta artifacts print-settings python --repository = my-repo - GCLOUD WIDE FLAGS
- These flags are available to all commands:
--help.Run
$ gcloud helpfor details. - COMMANDS
-
is one of the following:COMMAND-
apt -
(BETA)Print settings to add to the sources.list.d directory. -
gradle -
(BETA)Print a snippet to add a repository to the Gradle build.gradle file. -
mvn -
(BETA)Print a snippet to add a Maven repository to the pom.xml file. -
npm -
(BETA)Print credential settings to add to the .npmrc file. -
python -
(BETA)Print credential settings to add to the .pypirc and pip.conf files. -
yum -
(BETA)Print settings to add to the yum.repos.d directory.
-
- NOTES
- This command is currently in beta and might change without notice. These
variants are also available:
gcloud artifacts print-settingsgcloud alpha artifacts print-settings
gcloud beta artifacts print-settings
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-27 UTC.

