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.Bitbucket
If 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.Bitbucket
The 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-Bitbucket
For OAuth 2.0 Login you will need two sets of credentials.
- Your Atlassian credentials:
email
andpassword
- Key and Secret for OAuth Consumer.
$Cred = Get-Credential -UserName '<Email>'
$OAuth = Get-Credential -UserName '<OAuth Consumer Key>'
Login-Bitbucket -AtlassianCredential $Cred -OAuthConsumer $OAuth
Use 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-BitbucketLogin
Get-BitbucketSelectedWorkspace
Get-BitbucketWorkspace
New-BitbucketLogin
Remove-BitbucketLogin
Save-BitbucketLogin
Select-BitbucketWorkspace
Enable-BitbucketPipelineConfig
Get-BitbucketPipeline
Get-BitbucketPipelineConfig
Get-BitbucketPipelineStep
Start-BitbucketPipeline
Wait-BitbucketPipeline
Get-BitbucketProject
Get-BitbucketPullRequest
Get-BitbucketPullRequestComment
New-BitbucketPullRequest
New-BitbucketPullRequestComment
Add-BitbucketRepositoryBranch
Get-BitbucketRepository
Get-BitbucketRepositoryBranch
Get-BitbucketRepositoryBranchModel
New-BitbucketRepository
Remove-BitbucketRepository
Set-BitbucketRepository
Set-BitbucketRepositoryBranchModel
Get-BitbucketRepositoryDeployment
Get-BitbucketRepositoryEnvironment
New-BitbucketRepositoryEnvironment
Remove-BitbucketRepositoryEnvironment
Add-BitbucketRepositoryGroupPermission
Get-BitbucketRepositoryGroupPermission
New-BitbucketRepositoryGroupPermission
Remove-BitbucketRepositoryGroupPermission
Set-BitbucketRepositoryGroupPermission
Add-BitbucketRepositoryBranchRestriction
Get-BitbucketRepositoryBranchRestriction
New-BitbucketRepositoryBranchRestrictionMergeCheck
New-BitbucketRepositoryBranchRestrictionPermissionCheck
Remove-BitbucketRepositoryBranchRestriction
Set-BitbucketRepositoryBranchRestriction
Add-BitbucketRepositoryReviewer
Get-BitbucketRepositoryReviewer
Remove-BitbucketRepositoryReviewer
Set-BitbucketRepositoryReviewer
Get-BitbucketRepositoryVariable
New-BitbucketRepositoryVariable
Remove-BitbucketRepsitoryVariable
Add-BitbucketUserToGroup
Get-BitbucketGroup
Get-BitbucketUser
Get-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.