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.
For basic auth I recommend you use App Passwords along with your username. When generating the App Password make sure to include read access to the account and workspace membership for login validation.
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 workspace if you have 1 when logging in or prompt you to choose from a list of workspaces. Cmdlets will default to the workspace selected unless specified. If you wish to change the workspace run Select-BitbucketWorkspace. 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-BitbucketSelectedWorkspaceGet-BitbucketWorkspaceNew-BitbucketLoginRemove-BitbucketLoginSave-BitbucketLoginSelect-BitbucketWorkspace
Enable-BitbucketPipelineConfigGet-BitbucketPipelineGet-BitbucketPipelineConfigGet-BitbucketPipelineStepStart-BitbucketPipelineWait-BitbucketPipeline
Get-BitbucketProject
Get-BitbucketPullRequestGet-BitbucketPullRequestCommentNew-BitbucketPullRequestNew-BitbucketPullRequestComment
Add-BitbucketRepositoryBranchGet-BitbucketRepositoryGet-BitbucketRepositoryBranchGet-BitbucketRepositoryBranchModelNew-BitbucketRepositoryRemove-BitbucketRepositorySet-BitbucketRepositorySet-BitbucketRepositoryBranchModel
Get-BitbucketRepositoryDeployment
Get-BitbucketRepositoryEnvironmentNew-BitbucketRepositoryEnvironmentRemove-BitbucketRepositoryEnvironment
Add-BitbucketRepositoryGroupPermissionGet-BitbucketRepositoryGroupPermissionNew-BitbucketRepositoryGroupPermissionRemove-BitbucketRepositoryGroupPermissionSet-BitbucketRepositoryGroupPermission
Add-BitbucketRepositoryBranchRestrictionGet-BitbucketRepositoryBranchRestrictionNew-BitbucketRepositoryBranchRestrictionMergeCheckNew-BitbucketRepositoryBranchRestrictionPermissionCheckRemove-BitbucketRepositoryBranchRestrictionSet-BitbucketRepositoryBranchRestriction
Add-BitbucketRepositoryReviewerGet-BitbucketRepositoryReviewerRemove-BitbucketRepositoryReviewerSet-BitbucketRepositoryReviewer
Get-BitbucketRepositoryVariableNew-BitbucketRepositoryVariableRemove-BitbucketRepsitoryVariable
Add-BitbucketUserToGroupGet-BitbucketGroupGet-BitbucketUserGet-BitbucketUsersByGroup
Get-BitbucketProjectDeploymentReport
- The screenshot doesn't show the repo names or expanded cards. When expanded the cards show the pipeline #, last commit and date and are clickable to take you directly to the pipeline run in Bitbucket.
See CHANGELOG for more information.
See CONTRIBUTING for more information.
See LICENSE for more information.