CmdID / aws / aws codeartifact
aws codeartifact create-repository
Creates a repository. AWS CLI reference
1 example 6 options Its page in the AWS CLI reference
Examples
To create a repository
The following create-repository example creates a repository named test-repo inside a domain named test-domain.
aws codeartifact create-repository --domain test-domain --domain-owner 123456789012 --repository test-repo --description "This is a test repository."Identify--domainThe name of the domain that contains the created repository.--domain-ownerThe 12-digit account number of the Amazon Web Services account that owns the domain.--repositoryThe name of the repository to create.--descriptionA description of the created repository.Its output
{
"repository": {
"name": "test-repo",
"administratorAccount": "123456789012",
"domainName": "test-domain",
"domainOwner": "123456789012",
"arn": "arn:aws:codeartifact:us-west-2:123456789012:repository/test-domain/test-repo",
"description": "This is a test repository.",
"upstreams": [],
"externalConnections": []
}
}For more information, see Create a domain in the AWS CodeArtifact User Guide.
Options
--descriptionA description of the created repository.--domain-ownerThe 12-digit account number of the Amazon Web Services account that owns the domain.--domainThe name of the domain that contains the created repository.--repositoryThe name of the repository to create.--tagsOne or more tag key-value pairs for the repository.--upstreamsA list of upstream repositories to associate with the repository.