CmdID / aws / aws codeartifact
aws codeartifact get-repository-endpoint
Returns the endpoint of a repository for a specific package format. AWS CLI reference
1 example 5 options Its page in the AWS CLI reference
Examples
To get a repository's URL endpoint
The following get-repository-endpoint example returns the npm endpoint for the test-repo repository.
aws codeartifact get-repository-endpoint --domain test-domain --repository test-repo --format npmIdentify--domainThe name of the domain that contains the repository.--repositoryThe name of the repository.--formatReturns which endpoint of a repository to return.Its output
{
"repositoryEndpoint": "https://test-domain-111122223333.d.codeartifact.us-west-2.amazonaws.com/npm/test-repo/"
}For more information, see Connect to a repository in the AWS CodeArtifact User Guide.
Options
--domain-ownerThe 12-digit account number of the Amazon Web Services account that owns the domain that contains the repository.--domainThe name of the domain that contains the repository.--endpoint-typeA string that specifies the type of endpoint.--formatReturns which endpoint of a repository to return.--repositoryThe name of the repository.