Modify default branch of remote repo after creation

The --defaultBranch parameter of glab repo create allows for specification of the default branch upon project creation.

I would like to actually modify the default branch of my remote repo after creation. This is important, for example, if I accidentally push a fresh local repo with a branch name of master.

Is there a way to do this through the glab CLI?

Edited by Kai Armstrong