- NAME
-
- gcloud artifacts print-settings - print snippets to add to native tools settings files
- SYNOPSIS
-
-
gcloud artifacts print-settings
COMMAND
[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:
gcloud artifacts print-settings gradle --repository=my-repo
To print a snippet to add to the Maven pom.xml file for repository my-repo in the current project, run:
gcloud artifacts print-settings mvn --repository=my-repo
To print a snippet to add to the npm .npmrc file for repository my-repo in the current project, run:
gcloud artifacts print-settings npm --repository=my-repo
To print a snippet to add to the Python .pypirc and pip.comf files for repository my-repo in the current project, run:
gcloud artifacts print-settings python --repository=my-repo
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--help
.Run
$ gcloud help
for details. - COMMANDS
-
is one of the following:COMMAND
- NOTES
-
These variants are also available:
gcloud 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 2024-02-06 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{
"last_modified": "Last updated 2024-02-06 UTC.",
"state": ""
}