composer create-project from private repo

前端 未结 5 1386
醉话见心
醉话见心 2020-12-24 13:56

I have a private project hosted on Bit Bucket. I have an SSH key setup. Is there a way I can use the php composer create-project vendor/name path command in the

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-24 14:48

    The way I used to:

    composer create-project vendor/name path --repository="{\"url\": \"https://bitbucket.org/user/project.git\", \"type\": \"vcs\"}" --stability=dev --remove-vcs
    

    Reference: https://getcomposer.org/doc/03-cli.md#create-project

提交回复
热议问题