When you publish the provider contact you supply a version number. Can I deploy if there are no consumers will allows return yes to deploy your provider. Once deployed you record the deployment to an environment with the pact CLI.
If you try and run can I deploy, prior to publishing the provider contract you will be told that the pacticipant cannot be found