How to connect to an existing project on Cloudflare Pages using wrangler CLI?

Hi,

How can I connect websites I created with Hugo to their existing projects on Cloudflare Pages using wrangler CLI?

When I run the following command: npx wrangler pages project list it shows all 3 websites (projects).

But how can I connect each website to its project on Cloudflare Pages?

I want to start over because today wrangler started to upload (deploy) my website's public folder to the wrong project on Cloudflare Pages.

I found the solution: npx wrangler pages deploy <DIRECTORY> --project-name=<PROJECT_NAME>
Was this page helpful?