gcloud artifacts print-settings
Stay organized with collections
Save and categorize content based on your preferences.
- NAME
-
- gcloud artifacts print-settings - print snippets to add to native tools settings files
- SYNOPSIS
-
-
gcloud artifacts print-settingsCOMMAND[GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
- 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:
gcloudartifactsprint-settingsgradle --repository=my-repoTo print a snippet to add to the Maven pom.xml file for repository my-repo in the current project, run:
gcloudartifactsprint-settingsmvn --repository=my-repoTo print a snippet to add to the npm .npmrc file for repository my-repo in the current project, run:
gcloudartifactsprint-settingsnpm --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:
gcloudartifactsprint-settingspython --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 - NOTES
-
These variants are also available:
gcloudalphaartifactsprint-settingsgcloudbetaartifactsprint-settings