How to create a repo from a template with all branches via CLI

I’m trying to create a repo from a template repository using the gh cli.
When I create my repo and attempt to switch to one of the branches from the source repo, it does not exist.
What is the CLI equivalent to the “Include all branches” checkbox?

Hi there :wave:

Welcome to the Community!
Is there a reason for choosing a template over a fork in this case?

same problem with me

We only fetch the default branch after gh repo create .
You can run git fetch origin to get the other branches.