See PowerShell Gallery for more information.
| Windows | Linux | macOS |
|---|---|---|
Run the following command in an elevated PowerShell session to install the module from the PowerShell Gallery.
Install-Module Atlassian.BitbucketIf you already have the module installed, run the following command in an elevated PowerShell session to update the module from the PowerShell Gallery to the latest version.
Update-Module Atlassian.BitbucketThe module provides session level authentication with optional machine / user encrypted persistance between sessions.
The module supports both Basic authentication and OAuth 2.0 for the Bitbucket API's.
Login-BitbucketFor OAuth 2.0 Login you will need two sets of credentials.
- Your Atlassian credentials:
emailandpassword - Key and Secret for OAuth Consumer.
$Cred = Get-Credential -UserName '<Email>'
$OAuth = Get-Credential -UserName '<OAuth Consumer Key>'
Login-Bitbucket -AtlassianCredential $Cred -OAuthConsumer $OAuthUse Login-Bitbucket -Save when logging in or Save-BitbucketLogin at any time to save the information to an encrypted file that will be automatically loaded when you start a new session.
The module will automatically select your team if you have 1 when logging in or prompt you to choose from a list of teams. Cmdlets will default to the team selected unless specified. If you wish to change the team run Select-BitbucketTeam. If you want to save the change run Save-BitbucketLogin again.
To get more information on each cmdlet run Get-Help <CMDLET Name>
Get-BitbucketLoginGet-BitbucketSelectedTeamGet-BitbucketTeamNew-BitbucketLoginRemove-BitbucketLoginSave-BitbucketLoginSelect-BitbucketTeam
Start-BitbucketPipelineWait-BitbucketPipeline
Get-BitbucketProject
Get-BitbucketPullRequestGet-BitbucketPullRequestCommentNew-BitbucketPullRequestNew-BitbucketPullRequestComment
Add-BitbucketRepositoryReviewerGet-BitbucketRepositoryGet-BitbucketRepositoryEnvironmentGet-BitbucketRepositoryDeploymentGet-BitbucketRepositoryReviewerNew-BitbucketRepositoryNew-BitbucketRepositoryEnvironmentRemove-BitbucketRepositoryRemove-BitbucketRepositoryEnvironmentRemove-BitbucketRepositoryReviewerSet-BitbucketRepositorySet-BitbucketRepositoryReviewer
The following CMDLETs are provided but use internal Bitbucket APIs. These CMDLETs would not be possible without accessing the internal APIs, but are much more likely to break if Atlassian changes their internal API. To use these CMDLETs you must also use OAuth 2.0 when logging in.
Get-BitbucketRepositoryEnvironmentVariableNew-BitbucketRepositoryEnvironmentVariableRemove-BitbucketRepositoryEnvironmentVariable
See CHANGELOG for more information.
See CONTRIBUTING for more information.
See LICENSE for more information.