I have a bash script that installs and activates a theme like this:
wp theme install https://bitbucket.org/organization/theme/get/master.zip --activate
The problem is that it only works with public repositories, rather than private ones. If I make the repository private I get this error:
Unpacking the package... Warning: The package could not be installed. PCLZIP_ERR_BAD_FORMAT (-10) : Unable to find End of Central Dir Record signature
Is there a way I can install private repositories that I have ssh keys and passwords for?