https://bitbucket.org/blog/deprecating-atlassian-account-password-for-bitbucket-api-and-git-activity
To create an app password:
- From your profile and settings avatar, select Personal settings.
- Select App passwords under Access management.
- Select Create app password.
- Give the app password a name related to the application that will use the password.
- Select the specific access and permissions you want to assign to this application password.
- Copy the generated password and either record or paste it into the application you want to give access. The password is only displayed this one time.
More details on app passwords (including usage and revocation) can be found in Bitbucket documentation.