CmdID / aws / aws codeartifact
aws codeartifact list-repositories
Returns a list of RepositorySummary objects. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To list repositories
The following list-repositories example returns a summary of all repositories in domain owned by the AWS account that makes the call.
aws codeartifact list-repositoriesIdentifyIts output
{
"repositories": [
{
"name": "npm-store",
"administratorAccount": "123456789012",
"domainName": "my-domain",
"domainOwner": "123456789012",
"arn": "arn:aws:codeartifact:us-west-2:123456789012:repository/my-domain/npm-store",
"description": "Provides npm artifacts from npm, Inc."
},
{
"name": "target-repo",
"administratorAccount": "123456789012",
"domainName": "my-domain",
"domainOwner": "123456789012",
"arn": "arn:aws:codeartifact:us-west-2:123456789012:repository/my-domain/target-repo",
"description": "test target repo"
},
{
"name": "test-repo2",
"administratorAccount": "123456789012",
"domainName": "test-domain",
"domainOwner": "123456789012",
"arn": "arn:aws:codeartifact:us-west-2:123456789012:repository/test-domain/test-repo2",
"description": "This is a test repository."
}
]
}For more information, see List repositories in the AWS CodeArtifact User Guide.
Options
--max-resultsThe maximum number of results to return per page.--next-tokenThe token for the next set of results.--repository-prefixA prefix used to filter returned repositories.