glab(1) glab(1)

glab-repo-fork - Fork a GitLab repository.

glab repo fork [flags]

Defaults to the current repository if no repository is specified. Use --clone and --remote to skip the interactive prompts.

-c, --clone[=false] Clone the fork. Options: true, false.

-n, --name="" The name assigned to the new project after forking.

-p, --path="" The path assigned to the new project after forking.

--remote[=false] Add a remote for the fork. Options: true, false.

-h, --help[=false] Show help for this command.

glab repo fork
glab repo fork namespace/repo
glab repo fork namespace/repo --clone

glab-repo(1)

Jun 2026 Auto generated by spf13/cobra