glab-repo
Create, clone, and manage GitLab repositories
TLDR
Create a new repository (if the repository name is not set, the default name will be the name of the current directory)
Clone a repository
Fork and clone a repository
View a repository in the default web browser
Search some repositories in the GitLab instance
SYNOPSIS
glab repo
PARAMETERS
--help
Show help for the subcommand.
DESCRIPTION
The `glab repo` command provides a suite of tools for interacting with GitLab repositories directly from your terminal. It simplifies common repository operations, such as creating, cloning, and listing repositories, as well as configuring remote repositories for GitLab projects. It is part of the `glab` CLI tool, which acts as a GitLab command line interface. It leverages the GitLab API, enabling users to manage their projects, issues, merge requests, and other GitLab resources without needing to open a web browser.
`glab repo` is especially useful for automating tasks, scripting workflows, and integrating GitLab with other command-line tools. It streamlines the development process by bringing GitLab functionality directly to the developer's environment. It supports listing projects based on visibility, search terms, and project attributes. The `glab repo` command enhances productivity by providing a convenient and efficient way to manage GitLab repositories from the command line.
SUBCOMMANDS
The `glab repo` command supports several subcommands, including:
create: Create a new GitLab repository.
clone: Clone a GitLab repository locally.
list: List GitLab repositories.
view: View a GitLab repository in the browser.
AUTHENTICATION
Before using `glab repo`, ensure you have authenticated with your GitLab instance using `glab auth login`. This command will prompt you for your GitLab URL and personal access token.