glab-repo-fork(1)

glab-repo-fork1

Fork a gitlab repository.

Usage

glab repo fork [] [flags]

Overview

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.

Examples

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

Releases

2 releases since Debian 13 (Trixie); the text changed 1 time.

  1. 13
  2. Arch

From glab 1.126.0-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.