View a markdown version of this page

Use UpdateRepositoryDescription with a CLI - AWS SDK Code Examples

There are more AWS SDK examples available in the AWS Doc SDK Examples GitHub repo.

Use UpdateRepositoryDescription with a CLI

The following code examples show how to use UpdateRepositoryDescription.

CLI
AWS CLI

To change the description for a repository

The following update-repository-description example changes the description for an AWS CodeCommit repository.

aws codecommit update-repository-description \ --repository-name MyDemoRepo \ --repository-description "This description was changed"

This command produces no output.

For more information, see Change AWS CodeCommit repository settings in the AWS CodeCommit User Guide.

PowerShell
Tools for PowerShell V4

Example 1: This example changes the description for the specified repository.

Update-CCRepositoryDescription -RepositoryName MyDemoRepo -RepositoryDescription "This is an updated description."
Tools for PowerShell V5

Example 1: This example changes the description for the specified repository.

Update-CCRepositoryDescription -RepositoryName MyDemoRepo -RepositoryDescription "This is an updated description."