Manual deploy to production via netlify-cli hangs indefinitely

We’re trying to deploy an already built website but the netlify deploy --prod command hangs indefinitely. I tried to manually specify the built folder using -d public parameter (as suggested here) but no effect on the outcome.

This is a manual deploy where we’re building the site within our CI service and then trying to publish the built artifacts via netlify-cli.

Curiously enough, deploy previews are working perfectly via netlify deploy --alias <alias_name>.

UPDATE: Worked after unlocking the auto publishing from Netlify UI