How to exactly use "wrangler publish" because the tutorial seems outdated

https://egghead.io/lessons/cloudflare-set-up-a-new-cloudflare-workers-project-with-wrangler

Hi there so I was following this tutorial and in this they use the command wrangler publish but when I do so on my terminal I get the error
 Missing entry-point: The entry-point should be specified via the command line (e.g. `wrangler publish path/to/script`) or the `main` config field.  


Do I just need to do something like wrangler publish index.js ?
egghead
In this lesson, we'll install Wrangler, the Workers command-line tool. We'll then create a new Cloudflare Workers project using Wrangler, configure it, and then publish it.
Was this page helpful?