# BitBucket

Connecting your BitBucket account to Hatchbox for deploying apps is pretty straightforward.

We'll use a BitBucket App Password to clone your app and add webhook deployments.

To create an App Password, visit [the App Password section in your BitBucket account](https://bitbucket.org/account/admin/app-passwords) and create a key with the following permissions: Account:Write, Pull Request:Read and Webhooks.

![](https://2225864282-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LLW5xhfB-m2-w7ur7mr%2F-Lkxw9UEqV3Fe9jK_-im%2F-LkxwKMnDnQfxuHKxRQp%2FScreen%20Shot%202019-07-29%20at%208.33.51%20AM.png?alt=media\&token=332f949b-5b05-46f3-acce-fddabbcd2298)

Account:Write allows us to add SSH Keys from each cluster to your Bitbucket account. This lets your clusters clone repositories you have access to.

Webhooks and PullRequests:Read allow us to enable Webhook deployments.

After you click Create, you'll be presented with the BitBucket App Password. Copy and paste this into the Connected Accounts section of [your Hatchbox settings](https://www.hatchbox.io/users/edit).&#x20;

Hit save and you're ready to deploy with BitBucket!
