Move existing worker to Github

For Workes & Pages, what is the name of the domain?

What is the error number?

What is the error message?

What is the issue or error you’re encountering

What steps have you taken to resolve the issue?

Read documentation on how wrangler works and how to setup CF workers with Github

What are the steps to reproduce the issue?

I can’t find a way to “export” / “migrate” an existing worker that I manually created in Cloudflare to a github repo. The worker is already being used in production so I want to avoid starting a new worker code from scratch since I might cause interruptions due to some misconfiguration in the toml file, custom domain etc