---
name: "glab-repo-fork"
section: "1"
platform: "linux"
package: "glab"
version: "1.126.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/glab-repo-fork"
---

# glab-repo-fork(1)

Fork a GitLab repository.

## NAME

glab-repo-fork - Fork a GitLab repository.

## SYNOPSIS

**glab repo fork \[\] \[flags\]**

## DESCRIPTION

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

## OPTIONS

**-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.

## OPTIONS INHERITED FROM PARENT COMMANDS

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

## EXAMPLE

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

## SEE ALSO

**[glab-repo(1)](/glab-repo/1.md)**
