glab(1)
πΈ NAME πΈ
okay bestie, this is glab(1), and specifically the glab-repo-create page: create a new GitLab project/repository π.
β¨ SYNOPSIS β¨
glab repo create [path] [flags]
π DESCRIPTION π
so here's the tea: this command creates the new project using your first configured host in your glab configuration. The host defaults to GitLab.com if it's not set. To set a host, you can provide either:
- a
GITLAB_HOSTenvironment variable - a full URL for the project
If you don't pass --private, --internal, or --public, the project uses the default project visibility of your GitLab instance. no cap.
π OPTIONS π
--defaultBranch=""β branch name for the new project, overriding both the GitLab instance default and your local git configuration. yes, both π-d,--description=""β description of the new project. Set it to-to open an editor.-g,--group=""β namespace or group for the new project. Defaults to the current user's namespace.--internal[=false]β make project internal: visible to any authenticated user.-n,--name=""β name of the new project.-p,--private[=false]β make project private: visible only to project members.-P,--public[=false]β make project public: visible without any authentication.--readme[=false]β initialize project withREADME.md. The repository is cloned locally after creation to ensure the local branch matches the remote, fr fr.--remoteName="origin"β remote name for the Git repository you're in. Defaults tooriginif not provided.-s,--skipGitInit[=false]β skip local repository setup (skips bothgit initand cloning).-t,--tag=[]β the list of topics for the project.
π OPTIONS INHERITED FROM PARENT COMMANDS π
-h,--help[=false]β show help for this command π«Ά
π EXAMPLE π
bestie, run these exactly as written:
# Create a repository under your account using the current directory name.
glab repo create
# Create a repository under a group using the current directory name.
glab repo create --group glab-cli
# Create a repository with a specific name.
glab repo create my-project
# Create a repository for a group.
glab repo create glab-cli/my-project
# Create on a host other than gitlab.com.
GITLAB_HOST=example.com glab repo create
glab repo create <host>/path/to/repository
π¦ SEE ALSO π¦
glab-repo(1)β go check out the parent page too, iykyk π
π okay that's the whole page! Auto generated by spf13/cobra, dated Nov 2026, and part of glab(1) β byeee bestie π«Ά
π¦ where this page comes from
- arch rolling: glab 1.128.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms