aws codecommit79 CLI commands available for AWS CodeCommit.
| Command | API Operation | Sample |
|---|---|---|
associate-approval-rule-template-with-repositoryCreates an association between an approval rule template and a specified repository. Then, the next time a pull request is created in the repository where the destination reference (if specified) matches the destination reference (branch) for the pull request, an approval rule that matches the templ | AssociateApprovalRuleTemplateWithRepository | |
batch-associate-approval-rule-template-with-repositoriesCreates an association between an approval rule template and one or more specified repositories. | BatchAssociateApprovalRuleTemplateWithRepositories | |
batch-describe-merge-conflictsReturns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy. | BatchDescribeMergeConflicts | |
batch-disassociate-approval-rule-template-from-repositoriesRemoves the association between an approval rule template and one or more specified repositories. | BatchDisassociateApprovalRuleTemplateFromRepositories | |
batch-get-commitsReturns information about the contents of one or more commits in a repository. | BatchGetCommits | |
batch-get-repositoriesReturns information about one or more repositories. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that yo | BatchGetRepositories | |
create-approval-rule-templateCreates a template for approval rules that can then be associated with one or more repositories in your Amazon Web Services account. When you associate a template with a repository, CodeCommit creates an approval rule that matches the conditions of the template for all pull requests that meet the co | CreateApprovalRuleTemplate | |
create-branchCreates a branch in a repository and points the branch to a commit. Calling the create branch operation does not set a repository's default branch. To do this, call the update default branch operation. | CreateBranch | |
create-commitCreates a commit for a repository on the tip of a specified branch. | CreateCommit | |
create-pull-requestCreates a pull request in the specified repository. | CreatePullRequest | |
create-pull-request-approval-ruleCreates an approval rule for a pull request. | CreatePullRequestApprovalRule | |
create-repositoryCreates a new, empty repository. | CreateRepository | |
create-unreferenced-merge-commitCreates an unreferenced commit that represents the result of merging two branches using a specified merge strategy. This can help you determine the outcome of a potential merge. This API cannot be used with the fast-forward merge strategy because that strategy does not create a merge commit. This u | CreateUnreferencedMergeCommit | |
delete-approval-rule-templateDeletes a specified approval rule template. Deleting a template does not remove approval rules on pull requests already created with the template. | DeleteApprovalRuleTemplate | |
delete-branchDeletes a branch from a repository, unless that branch is the default branch for the repository. | DeleteBranch | |
delete-comment-contentDeletes the content of a comment made on a change, file, or commit in a repository. | DeleteCommentContent | |
delete-fileDeletes a specified file from a specified branch. A commit is created on the branch that contains the revision. The file still exists in the commits earlier to the commit that contains the deletion. | DeleteFile | |
delete-pull-request-approval-ruleDeletes an approval rule from a specified pull request. Approval rules can be deleted from a pull request only if the pull request is open, and if the approval rule was created specifically for a pull request and not generated from an approval rule template associated with the repository where the p | DeletePullRequestApprovalRule | |
delete-repositoryDeletes a repository. If a specified repository was already deleted, a null repository ID is returned. Deleting a repository also deletes all associated objects and metadata. After a repository is deleted, all future push calls to the deleted repository fail. | DeleteRepository | |
describe-merge-conflictsReturns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy. If the merge option for the attempted merge is specified as FAST_FORWARD_MERGE, an exception is thrown. | DescribeMergeConflicts | |
describe-pull-request-eventsReturns information about one or more pull request events. | DescribePullRequestEvents | |
disassociate-approval-rule-template-from-repositoryRemoves the association between a template and a repository so that approval rules based on the template are not automatically created when pull requests are created in the specified repository. This does not delete any approval rules previously created for pull requests through the template associa | DisassociateApprovalRuleTemplateFromRepository | |
evaluate-pull-request-approval-rulesEvaluates whether a pull request has met all the conditions specified in its associated approval rules. | EvaluatePullRequestApprovalRules | |
get-approval-rule-templateReturns information about a specified approval rule template. | GetApprovalRuleTemplate | |
get-blobReturns the base-64 encoded content of an individual blob in a repository. | GetBlob | |
get-branchReturns information about a repository branch, including its name and the last commit ID. | GetBranch | |
get-commentReturns the content of a comment made on a change, file, or commit in a repository. Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions. | GetComment | |
get-comment-reactionsReturns information about reactions to a specified comment ID. Reactions from users who have been deleted will not be included in the count. | GetCommentReactions | |
get-comments-for-compared-commitReturns information about comments made on the comparison between two commits. Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions. | GetCommentsForComparedCommit | |
get-comments-for-pull-requestReturns comments made on a pull request. Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions. | GetCommentsForPullRequest | |
get-commitReturns information about a commit, including commit message and committer information. | GetCommit | |
get-differencesReturns information about the differences in a valid commit specifier (such as a branch, tag, HEAD, commit ID, or other fully qualified reference). Results can be limited to a specified path. | GetDifferences | |
get-fileReturns the base-64 encoded contents of a specified file and its metadata. | GetFile | |
get-folderReturns the contents of a specified folder in a repository. | GetFolder | |
get-merge-commitReturns information about a specified merge commit. | GetMergeCommit | |
get-merge-conflictsReturns information about merge conflicts between the before and after commit IDs for a pull request in a repository. | GetMergeConflicts | |
get-merge-optionsReturns information about the merge options available for merging two specified branches. For details about why a merge option is not available, use GetMergeConflicts or DescribeMergeConflicts. | GetMergeOptions | |
get-pull-requestGets information about a pull request in a specified repository. | GetPullRequest | |
get-pull-request-approval-statesGets information about the approval states for a specified pull request. Approval states only apply to pull requests that have one or more approval rules applied to them. | GetPullRequestApprovalStates | |
get-pull-request-override-stateReturns information about whether approval rules have been set aside (overridden) for a pull request, and if so, the Amazon Resource Name (ARN) of the user or identity that overrode the rules and their requirements for the pull request. | GetPullRequestOverrideState | |
get-repositoryReturns information about a repository. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sure that you HTML-encod | GetRepository | |
get-repository-triggersGets information about triggers configured for a repository. | GetRepositoryTriggers | |
list-approval-rule-templatesLists all approval rule templates in the specified Amazon Web Services Region in your Amazon Web Services account. If an Amazon Web Services Region is not specified, the Amazon Web Services Region where you are signed in is used. | ListApprovalRuleTemplates | |
list-associated-approval-rule-templates-for-repositoryLists all approval rule templates that are associated with a specified repository. | ListAssociatedApprovalRuleTemplatesForRepository | |
list-branchesGets information about one or more branches in a repository. | ListBranches | |
list-file-commit-historyRetrieves a list of commits and changes to a specified file. | ListFileCommitHistory | |
list-pull-requestsReturns a list of pull requests for a specified repository. The return list can be refined by pull request status or pull request author ARN. | ListPullRequests | |
list-repositoriesGets information about one or more repositories. | ListRepositories | |
list-repositories-for-approval-rule-templateLists all repositories associated with the specified approval rule template. | ListRepositoriesForApprovalRuleTemplate | |
list-tags-for-resourceGets information about Amazon Web Servicestags for a specified Amazon Resource Name (ARN) in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide. | ListTagsForResource | |
merge-branches-by-fast-forwardMerges two branches using the fast-forward merge strategy. | MergeBranchesByFastForward | |
merge-branches-by-squashMerges two branches using the squash merge strategy. | MergeBranchesBySquash | |
merge-branches-by-three-wayMerges two specified branches using the three-way merge strategy. | MergeBranchesByThreeWay | |
merge-pull-request-by-fast-forwardAttempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the fast-forward merge strategy. If the merge is successful, it closes the pull request. | MergePullRequestByFastForward | |
merge-pull-request-by-squashAttempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the squash merge strategy. If the merge is successful, it closes the pull request. | MergePullRequestBySquash | |
merge-pull-request-by-three-wayAttempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the three-way merge strategy. If the merge is successful, it closes the pull request. | MergePullRequestByThreeWay | |
override-pull-request-approval-rulesSets aside (overrides) all approval rule requirements for a specified pull request. | OverridePullRequestApprovalRules | |
post-comment-for-compared-commitPosts a comment on the comparison between two commits. | PostCommentForComparedCommit | |
post-comment-for-pull-requestPosts a comment on a pull request. | PostCommentForPullRequest | |
post-comment-replyPosts a comment in reply to an existing comment on a comparison between commits or a pull request. | PostCommentReply | |
put-comment-reactionAdds or updates a reaction to a specified comment for the user whose identity is used to make the request. You can only add or update a reaction for yourself. You cannot add, modify, or delete a reaction for another user. | PutCommentReaction | |
put-fileAdds or updates a file in a branch in an CodeCommit repository, and generates a commit for the addition in the specified branch. | PutFile | |
put-repository-triggersReplaces all triggers for a repository. Used to create or delete triggers. | PutRepositoryTriggers | |
tag-resourceAdds or updates tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide. | TagResource | |
test-repository-triggersTests the functionality of repository triggers by sending information to the trigger target. If real data is available in the repository, the test sends data from the last commit. If no data is available, sample data is generated. | TestRepositoryTriggers | |
untag-resourceRemoves tags for a resource in CodeCommit. For a list of valid resources in CodeCommit, see CodeCommit Resources and Operations in the CodeCommit User Guide. | UntagResource | |
update-approval-rule-template-contentUpdates the content of an approval rule template. You can change the number of required approvals, the membership of the approval rule, and whether an approval pool is defined. | UpdateApprovalRuleTemplateContent | |
update-approval-rule-template-descriptionUpdates the description for a specified approval rule template. | UpdateApprovalRuleTemplateDescription | |
update-approval-rule-template-nameUpdates the name of a specified approval rule template. | UpdateApprovalRuleTemplateName | |
update-commentReplaces the contents of a comment. | UpdateComment | |
update-default-branchSets or changes the default branch name for the specified repository. If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change. | UpdateDefaultBranch | |
update-pull-request-approval-rule-contentUpdates the structure of an approval rule created specifically for a pull request. For example, you can change the number of required approvers and the approval pool for approvers. | UpdatePullRequestApprovalRuleContent | |
update-pull-request-approval-stateUpdates the state of a user's approval on a pull request. The user is derived from the signed-in account when the request is made. | UpdatePullRequestApprovalState | |
update-pull-request-descriptionReplaces the contents of the description of a pull request. | UpdatePullRequestDescription | |
update-pull-request-statusUpdates the status of a pull request. | UpdatePullRequestStatus | |
update-pull-request-titleReplaces the title of a pull request. | UpdatePullRequestTitle | |
update-repository-descriptionSets or changes the comment or description for a repository. The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a webpage can expose users to potentially malicious code. Make sur | UpdateRepositoryDescription | |
update-repository-encryption-keyUpdates the Key Management Service encryption key used to encrypt and decrypt a CodeCommit repository. | UpdateRepositoryEncryptionKey | |
update-repository-nameRenames a repository. The repository name must be unique across the calling Amazon Web Services account. Repository names are limited to 100 alphanumeric, dash, and underscore characters, and cannot include certain characters. The suffix .git is prohibited. For more information about the limits on r | UpdateRepositoryName |
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterCodeCommit