go-gitlab-client is a client written in golang to consume gitlab API.
It also provides an handy CLI to easily interact with gitlab API.
To install go-gitlab-client, use go get
:
go get github.com/plouc/go-gitlab-client/gitlab
Import the go-gitlab-client
package into your code:
package whatever
import (
"github.com/plouc/go-gitlab-client/gitlab"
)
To update go-gitlab-client
, use go get -u
:
go get -u github.com/plouc/go-gitlab-client/gitlab
Visit the docs at http://godoc.org/github.com/plouc/go-gitlab-client/gitlab
- List repository branches
- Get single repository branch
- Protect repository branch
- Unprotect repository branch
- Create repository branch
- Delete repository branch
- Delete merged branches
- List project variables
- Show project variable details
- Create project variable
- Update project variable
- Remove project variable
- List group variables
- Show group variable details
- Create group variable
- Update group variable
- Remove group variable
- List repository commits
- Create a commit with multiple files and actions
- Get a single commit
- Get references a commit is pushed to
- Cherry pick a commit
- Get the diff of a commit
- Get the comments of a commit
- Post comment to commit
- List the statuses of a commit
- Post the build status to a commit
- List Merge Requests associated with a commit
- list project deploy keys
- add/get/rm project deploy key
- List environments
- Create a new environment
- Edit an existing environment
- Delete an environment
- Stop an environment
- List groups
- List a groups's subgroups
- List a group's projects
- Details of a group
- New group
- Transfer project to group
- Update group
- Remove group
- Search for group
- Group members
- List project jobs
- List pipeline jobs
- Get a single job
- Get job artifacts
- Download the artifacts archive
- Download a single artifact file
- Get a trace file
- Cancel a job
- Retry a job
- Erase a job
- Keep artifacts
- Play a job
- List all projects
- List user projects
- Get single project
- Remove project
- Star a project
- Unstar a project
- list project repository tags
- list repository commits
- list project hooks
- add/get/edit/rm project hook
- List users
- Single user
- Current user
- List SSH keys
- List SSH keys for user
- Single SSH key
- Add SSH key
- Add SSH key for user
- Delete SSH key for current user
- Delete SSH key for given user
- List owned runners
- List all runners
- Get runner's details
- Update runner's details
- Remove a runner
- List runner's jobs
- List project's runners
- Enable a runner in project
- Disable a runner from project
- Register a new Runner
- Delete a registered Runner
- Verify authentication for a registered Runner
- List project hooks
- Get project hook
- Add project hook
- Edit project hook
- Delete project hook
- List project pipelines
- Get a single pipeline
- Create a new pipeline
- Retry jobs in a pipeline
- Cancel a pipeline's jobs
- List all badges of a project
- Get a badge of a project
- Add a badge to a project
- Edit a badge of a project
- Remove a badge from a project
- Preview a badge from a project
- List namespaces
- Search for namespace
- Get namespace by ID
- List merge requests
- List project merge requests
- List group merge requests
- Get single MR
- Get single MR participants
- Get single MR commits
- Get single MR changes
- List MR pipelines
- Create MR
- Update MR
- Delete a merge request
- Accept MR
- Cancel Merge When Pipeline Succeeds
- Comments on merge requests
- List issues that will close on merge
- Subscribe to a merge request
- Unsubscribe from a merge request
- Create a todo
- Get MR diff versions
- Get a single MR diff version
- Set a time estimate for a merge request
- Reset the time estimate for a merge request
- Add spent time for a merge request
- Reset spent time for a merge request
- Get time tracking stats
- Approvals
- Issues
- List project issue notes
- Get single issue note
- Create new issue note
- Modify existing issue note
- Delete an issue note
- Snippets
- List all snippet notes
- Get single snippet note
- Create new snippet note
- Modify existing snippet note
- Delete a snippet note
- Merge Requests
- List all merge request notes
- Get single merge request note
- Create new merge request note
- Modify existing merge request note
- Delete a merge request note
- Epics
- List all epic notes
- Get single epic note
- Create new epic note
- Modify existing epic note
- Delete an epic note
go-gitlab-client provides a CLI to easily interact with GitLab API, glc.
glc is a single binary with no external dependencies, released for several platforms.
Go to the releases page,
download the package for your OS, and copy the binary to somewhere on your PATH.
Please make sure to rename the binary to glc
and make it executable.
You can also install completion for bash or zsh, please run glc help completion
for more info.
- normalized operations:
ls
,get
,add
,update
- resource aliases for easy retrieval
text
,yaml
&json
output- saving output to file
- interactive pagination mode
- interactive resource creation
- glc add Add resource
- glc add alias Create resource alias
- glc add group Create a new group
- glc add group-epic-note Add group epic note
- glc add group-var Create a new group variable
- glc add project Create a new project
- glc add project-badge Create project badge
- glc add project-branch Create project branch
- glc add project-environment Create project environment
- glc add project-hook Create a new hook for given project
- glc add project-issue-note Add project issue note
- glc add project-merge-request-note Add project issue note
- glc add project-protected-branch Protect project branch
- glc add project-snippet-note Add project snippet note
- glc add project-star Stars a given project
- glc add project-var Create a new project variable
- glc ci-info Print information about CI environment
- glc completion Output shell completion code for the specified shell (bash or zsh)
- glc doc Generate CLI documentation in markdown format
- glc get Get resource details
- glc get current-user Get current user
- glc get group Get all details of a group
- glc get group-var Get the details of a group's specific variable
- glc get namespace Get a single namespace
- glc get project Get a specific project
- glc get project-badge Get project badge info
- glc get project-branch Get project branch info
- glc get project-hook Get project hook info
- glc get project-job Get project job info
- glc get project-job cancel Cancel project job
- glc get project-job retry Retry project job
- glc get project-job-trace Get project job trace
- glc get project-merge-request Get project merge request info
- glc get project-merge-request-note Get project merge request note
- glc get project-pipeline Get project pipeline details
- glc get project-var Get the details of a project's specific variable
- glc get runner Get details of a runner
- glc get user Get a single user
- glc init Init glc config
- glc list List resource
- glc list aliases List resource aliases
- glc list group-epic-notes List group epic notes
- glc list group-merge-requests List group merge requests
- glc list group-variables Get list of a group's variables
- glc list groups List groups
- glc list merge-requests List merge requests
- glc list namespaces List namespaces
- glc list project-badges List project badges
- glc list project-branches List project branches
- glc list project-commits List project repository commits
- glc list project-environments List project environments
- glc list project-hooks List project's hooks
- glc list project-issue-notes List project issue notes
- glc list project-jobs List project jobs
- glc list project-members List project members
- glc list project-merge-request-commits List project merge request commits
- glc list project-merge-request-notes List project merge request notes
- glc list project-merge-requests List project merge requests
- glc list project-pipeline-jobs List project pipeline jobs
- glc list project-pipelines List project pipelines
- glc list project-protected-branches List project protected branches
- glc list project-snippet-notes List project snippet notes
- glc list project-variables Get list of a project's variables
- glc list projects List projects
- glc list runners List runners
- glc list ssh-keys List current user ssh keys
- glc list user-ssh-keys List specific user ssh keys
- glc list users List users
- glc rm Remove resource
- glc rm alias Remove resource alias
- glc rm group Remove group
- glc rm group-epic-note Remove group epic note
- glc rm group-var Remove a group's variable
- glc rm project Remove project
- glc rm project-badge Remove project badge
- glc rm project-branch Remove project branch
- glc rm project-environment Remove project environment
- glc rm project-hook Remove project hook
- glc rm project-issue-note Remove project issue note
- glc rm project-merge-request-note Remove project merge request note
- glc rm project-merged-branches Remove project merged branches
- glc rm project-protected-branch Unprotect project branch
- glc rm project-snippet-note Remove project snippet note
- glc rm project-star Unstars a given project
- glc rm project-var Remove a project's variable
- glc version Print the version number of glc
Add resource
Add resource
-h, --help help for add
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc add alias Create resource alias
- glc add group Create a new group
- glc add group-epic-note Add group epic note
- glc add group-var Create a new group variable
- glc add project Create a new project
- glc add project-badge Create project badge
- glc add project-branch Create project branch
- glc add project-environment Create project environment
- glc add project-hook Create a new hook for given project
- glc add project-issue-note Add project issue note
- glc add project-merge-request-note Add project issue note
- glc add project-protected-branch Protect project branch
- glc add project-snippet-note Add project snippet note
- glc add project-star Stars a given project
- glc add project-var Create a new project variable
Create resource alias
Create resource alias
glc add alias ALIAS RESOURCE_TYPE [...resource ids] [flags]
-h, --help help for alias
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc add Add resource
Create a new group
Create a new group
glc add group [flags]
-h, --help help for group
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc add Add resource
Add group epic note
Add group epic note
glc add group-epic-note GROUP_ID EPIC_ID [flags]
-h, --help help for group-epic-note
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc add Add resource
Create a new group variable
Create a new group variable
glc add group-var GROUP_ID [flags]
-h, --help help for group-var
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc add Add resource
Create a new project
Create a new project
glc add project [flags]
-h, --help help for project
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc add Add resource
Create project badge
Create project badge
glc add project-badge PROJECT_ID [flags]
-h, --help help for project-badge
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc add Add resource
Create project branch
Create project branch
glc add project-branch PROJECT_ID [flags]
-b, --branch string Name of the branch
-h, --help help for project-branch
-r, --ref string The branch name or commit SHA to create branch from
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc add Add resource
Create project environment
Create project environment
glc add project-environment PROJECT_ID [flags]
-h, --help help for project-environment
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc add Add resource
Create a new hook for given project
Create a new hook for given project
glc add project-hook PROJECT_ID [flags]
-h, --help help for project-hook
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc add Add resource
Add project issue note
Add project issue note
glc add project-issue-note PROJECT_ID ISSUE_IID [flags]
-h, --help help for project-issue-note
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc add Add resource
Add project issue note
Add project issue note
glc add project-merge-request-note PROJECT_ID MERGE_REQUEST_IID [flags]
-h, --help help for project-merge-request-note
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc add Add resource
Protect project branch
Protect project branch
glc add project-protected-branch PROJECT_ID BRANCH_NAME [flags]
-h, --help help for project-protected-branch
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc add Add resource
Add project snippet note
Add project snippet note
glc add project-snippet-note PROJECT_ID SNIPPET_ID [flags]
-h, --help help for project-snippet-note
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc add Add resource
Stars a given project
Stars a given project
glc add project-star PROJECT_ID [flags]
-h, --help help for project-star
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc add Add resource
Create a new project variable
Create a new project variable
glc add project-var PROJECT_ID [flags]
-h, --help help for project-var
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc add Add resource
Print information about CI environment
Print information about CI environment
glc ci-info [flags]
-h, --help help for ci-info
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
Output shell completion code for the specified shell (bash or zsh)
Output shell completion code for the specified shell (bash or zsh). The shell code must be evaluated to provide interactive completion of glc commands. This can be done by sourcing it from the .bash_profile or .zshrc. For bash you can run:
echo "source <(kubectl completion bash)" >> ~/.bashrc
glc completion [shell] [flags]
-h, --help help for completion
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
Generate CLI documentation in markdown format
Generate CLI documentation in markdown format
glc doc [flags]
-h, --help help for doc
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
Get resource details
Get resource details
-h, --help help for get
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get current-user Get current user
- glc get group Get all details of a group
- glc get group-var Get the details of a group's specific variable
- glc get namespace Get a single namespace
- glc get project Get a specific project
- glc get project-badge Get project badge info
- glc get project-branch Get project branch info
- glc get project-hook Get project hook info
- glc get project-job Get project job info
- glc get project-job-trace Get project job trace
- glc get project-merge-request Get project merge request info
- glc get project-merge-request-note Get project merge request note
- glc get project-pipeline Get project pipeline details
- glc get project-var Get the details of a project's specific variable
- glc get runner Get details of a runner
- glc get user Get a single user
Get current user
Get current user
glc get current-user [flags]
-h, --help help for current-user
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get Get resource details
Get all details of a group
Get all details of a group
glc get group GROUP_ID [flags]
-h, --help help for group
-x, --with-custom-attributes Include custom attributes (admins only)
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get Get resource details
Get the details of a group's specific variable
Get the details of a group's specific variable
glc get group-var GROUP_ID VAR_KEY [flags]
-h, --help help for group-var
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get Get resource details
Get a single namespace
Get a single namespace
glc get namespace NAMESPACE_ID [flags]
-h, --help help for namespace
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get Get resource details
Get a specific project
Get a specific project
glc get project PROJECT_ID [flags]
-h, --help help for project
-s, --statistics Include project statistics
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get Get resource details
Get project badge info
Get project badge info
glc get project-badge PROJECT_ID BADGE_ID [flags]
-h, --help help for project-badge
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get Get resource details
Get project branch info
Get project branch info
glc get project-branch PROJECT_ID BRANCH_NAME [flags]
-h, --help help for project-branch
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get Get resource details
Get project hook info
Get project hook info
glc get project-hook PROJECT_ID HOOK_ID [flags]
-h, --help help for project-hook
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get Get resource details
Get project job info
Get project job info
glc get project-job PROJECT_ID JOB_ID [flags]
-h, --help help for project-job
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get Get resource details
- glc get project-job cancel Cancel project job
- glc get project-job retry Retry project job
Cancel project job
Cancel project job
glc get project-job cancel PROJECT_ID JOB_ID [flags]
-h, --help help for cancel
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get project-job Get project job info
Retry project job
Retry project job
glc get project-job retry PROJECT_ID JOB_ID [flags]
-h, --help help for retry
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get project-job Get project job info
Get project job trace
Get project job trace
glc get project-job-trace PROJECT_ID JOB_ID [flags]
-h, --help help for project-job-trace
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get Get resource details
Get project merge request info
Get project merge request info
glc get project-merge-request PROJECT_ID MERGE_REQUEST_IID [flags]
-h, --help help for project-merge-request
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get Get resource details
Get project merge request note
Get project merge request note
glc get project-merge-request-note PROJECT_ID MERGE_REQUEST_IID NOTE_ID [flags]
-h, --help help for project-merge-request-note
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get Get resource details
Get project pipeline details
Get project pipeline details
glc get project-pipeline PROJECT_ID PIPELINE_ID [flags]
-h, --help help for project-pipeline
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get Get resource details
Get the details of a project's specific variable
Get the details of a project's specific variable
glc get project-var PROJECT_ID VAR_KEY [flags]
-h, --help help for project-var
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get Get resource details
Get details of a runner
Get details of a runner
glc get runner RUNNER_ID [flags]
-h, --help help for runner
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get Get resource details
Get a single user
Get a single user
glc get user USER_ID [flags]
-h, --help help for user
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc get Get resource details
Init glc config
Init glc config
glc init [flags]
-h, --help help for init
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
List resource
List resource
-h, --help help for list
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc list aliases List resource aliases
- glc list group-epic-notes List group epic notes
- glc list group-merge-requests List group merge requests
- glc list group-variables Get list of a group's variables
- glc list groups List groups
- glc list merge-requests List merge requests
- glc list namespaces List namespaces
- glc list project-badges List project badges
- glc list project-branches List project branches
- glc list project-commits List project repository commits
- glc list project-environments List project environments
- glc list project-hooks List project's hooks
- glc list project-issue-notes List project issue notes
- glc list project-jobs List project jobs
- glc list project-members List project members
- glc list project-merge-request-commits List project merge request commits
- glc list project-merge-request-notes List project merge request notes
- glc list project-merge-requests List project merge requests
- glc list project-pipeline-jobs List project pipeline jobs
- glc list project-pipelines List project pipelines
- glc list project-protected-branches List project protected branches
- glc list project-snippet-notes List project snippet notes
- glc list project-variables Get list of a project's variables
- glc list projects List projects
- glc list runners List runners
- glc list ssh-keys List current user ssh keys
- glc list user-ssh-keys List specific user ssh keys
- glc list users List users
List resource aliases
List resource aliases
glc list aliases [flags]
-h, --help help for aliases
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List group epic notes
List group epic notes
glc list group-epic-notes GROUP_ID EPIC_ID [flags]
-h, --help help for group-epic-notes
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List group merge requests
List group merge requests
glc list group-merge-requests GROUP_ID [flags]
-h, --help help for group-merge-requests
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
Get list of a group's variables
Get list of a group's variables
glc list group-variables GROUP_ID [flags]
-h, --help help for group-variables
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List groups
List groups
glc list groups [flags]
--all Show all the groups you have access to (defaults to false for authenticated users, true for admin)
-h, --help help for groups
--owned Limit to groups owned by the current user
-s, --search string Return the list of authorized groups matching the search criteria
--statistics Include group statistics (admins only)
-x, --with-custom-attributes Include custom attributes in response (admins only)
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List merge requests
List merge requests
glc list merge-requests [flags]
-h, --help help for merge-requests
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List namespaces
List namespaces
glc list namespaces [flags]
-h, --help help for namespaces
-s, --search string Returns a list of namespaces the user is authorized to see based on the search criteria
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List project badges
List project badges
glc list project-badges PROJECT_ID [flags]
-h, --help help for project-badges
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List project branches
List project branches
glc list project-branches PROJECT_ID [flags]
-h, --help help for project-branches
-s, --search string Search term
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List project repository commits
List project repository commits
glc list project-commits PROJECT_ID [flags]
-h, --help help for project-commits
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List project environments
List project environments
glc list project-environments PROJECT_ID [flags]
-h, --help help for project-environments
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List project's hooks
List project's hooks
glc list project-hooks PROJECT_ID [flags]
-h, --help help for project-hooks
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List project issue notes
List project issue notes
glc list project-issue-notes PROJECT_ID ISSUE_IID [flags]
-h, --help help for project-issue-notes
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List project jobs
List project jobs
glc list project-jobs PROJECT_ID [flags]
-h, --help help for project-jobs
--pretty Use custom output formatting
-s, --scope string Scope
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List project members
List project members
glc list project-members PROJECT_ID [flags]
-h, --help help for project-members
-q, --query string Search term
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List project merge request commits
List project merge request commits
glc list project-merge-request-commits PROJECT_ID MERGE_REQUEST_IID [flags]
-h, --help help for project-merge-request-commits
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List project merge request notes
List project merge request notes
glc list project-merge-request-notes PROJECT_ID MERGE_REQUEST_IID [flags]
-h, --help help for project-merge-request-notes
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List project merge requests
List project merge requests
glc list project-merge-requests PROJECT_ID [flags]
-h, --help help for project-merge-requests
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List project pipeline jobs
List project pipeline jobs
glc list project-pipeline-jobs PROJECT_ID PIPELINE_ID [flags]
-h, --help help for project-pipeline-jobs
--pretty Use custom output formatting
-s, --scope string Scope
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List project pipelines
List project pipelines
glc list project-pipelines PROJECT_ID [flags]
-h, --help help for project-pipelines
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List project protected branches
List project protected branches
glc list project-protected-branches PROJECT_ID [flags]
-h, --help help for project-protected-branches
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List project snippet notes
List project snippet notes
glc list project-snippet-notes PROJECT_ID SNIPPET_ID [flags]
-h, --help help for project-snippet-notes
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
Get list of a project's variables
Get list of a project's variables
glc list project-variables PROJECT_ID [flags]
-h, --help help for project-variables
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List projects
List projects
glc list projects [flags]
--archived Limit by archived status
-h, --help help for projects
--membership Limit by projects that the current user is a member of
--owned Limit by projects owned by the current user
-s, --search string Search term
--starred Limit by projects starred by the current user
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List runners
List runners
glc list runners [flags]
--all Get a list of all runners in the GitLab instance (specific and shared). Access is restricted to users with admin privileges
-h, --help help for runners
-s, --scope string The scope of runners to show, one of: specific, shared, active, paused, online; showing all runners if none provided
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List current user ssh keys
List current user ssh keys
glc list ssh-keys [flags]
-h, --help help for ssh-keys
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List specific user ssh keys
List specific user ssh keys
glc list user-ssh-keys USER_ID [flags]
-h, --help help for user-ssh-keys
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
List users
List users
glc list users [flags]
--active Limit to active users
--blocked Limit to blocked users
-h, --help help for users
-s, --search string Search users by email or username
-u, --username string Search users by username
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
-p, --page int Page (default 1)
-l, --per-page int Items per page (default 10)
--silent silent mode
-v, --verbose verbose output
- glc list List resource
Remove resource
Remove resource
-h, --help help for rm
-y, --yes Do not ask for confirmation
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
- glc rm alias Remove resource alias
- glc rm group Remove group
- glc rm group-epic-note Remove group epic note
- glc rm group-var Remove a group's variable
- glc rm project Remove project
- glc rm project-badge Remove project badge
- glc rm project-branch Remove project branch
- glc rm project-environment Remove project environment
- glc rm project-hook Remove project hook
- glc rm project-issue-note Remove project issue note
- glc rm project-merge-request-note Remove project merge request note
- glc rm project-merged-branches Remove project merged branches
- glc rm project-protected-branch Unprotect project branch
- glc rm project-snippet-note Remove project snippet note
- glc rm project-star Unstars a given project
- glc rm project-var Remove a project's variable
Remove resource alias
Remove resource alias
glc rm alias [alias] [resource type] [flags]
-h, --help help for alias
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
-y, --yes Do not ask for confirmation
- glc rm Remove resource
Remove group
Remove group
glc rm group GROUP_ID [flags]
-h, --help help for group
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
-y, --yes Do not ask for confirmation
- glc rm Remove resource
Remove group epic note
Remove group epic note
glc rm group-epic-note GROUP_ID EPIC_ID NOTE_ID [flags]
-h, --help help for group-epic-note
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
-y, --yes Do not ask for confirmation
- glc rm Remove resource
Remove a group's variable
Remove a group's variable
glc rm group-var GROUP_ID VAR_KEY [flags]
-h, --help help for group-var
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
-y, --yes Do not ask for confirmation
- glc rm Remove resource
Remove project
Remove project
glc rm project PROJECT_ID [flags]
-h, --help help for project
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
-y, --yes Do not ask for confirmation
- glc rm Remove resource
Remove project badge
Remove project badge
glc rm project-badge PROJECT_ID BADGE_ID [flags]
-h, --help help for project-badge
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
-y, --yes Do not ask for confirmation
- glc rm Remove resource
Remove project branch
Remove project branch
glc rm project-branch PROJECT_ID BRANCH_NAME [flags]
-h, --help help for project-branch
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
-y, --yes Do not ask for confirmation
- glc rm Remove resource
Remove project environment
Remove project environment
glc rm project-environment PROJECT_ID ENVIRONMENT_ID [flags]
-h, --help help for project-environment
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
-y, --yes Do not ask for confirmation
- glc rm Remove resource
Remove project hook
Remove project hook
glc rm project-hook PROJECT_ID HOOK_ID [flags]
-h, --help help for project-hook
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
-y, --yes Do not ask for confirmation
- glc rm Remove resource
Remove project issue note
Remove project issue note
glc rm project-issue-note PROJECT_ID ISSUE_IID NOTE_ID [flags]
-h, --help help for project-issue-note
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
-y, --yes Do not ask for confirmation
- glc rm Remove resource
Remove project merge request note
Remove project merge request note
glc rm project-merge-request-note PROJECT_ID MERGE_REQUEST_IID NOTE_ID [flags]
-h, --help help for project-merge-request-note
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
-y, --yes Do not ask for confirmation
- glc rm Remove resource
Remove project merged branches
Remove project merged branches
glc rm project-merged-branches PROJECT_ID [flags]
-h, --help help for project-merged-branches
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
-y, --yes Do not ask for confirmation
- glc rm Remove resource
Unprotect project branch
Unprotect project branch
glc rm project-protected-branch PROJECT_ID BRANCH_NAME [flags]
-h, --help help for project-protected-branch
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
-y, --yes Do not ask for confirmation
- glc rm Remove resource
Remove project snippet note
Remove project snippet note
glc rm project-snippet-note PROJECT_ID SNIPPET_ID NOTE_ID [flags]
-h, --help help for project-snippet-note
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
-y, --yes Do not ask for confirmation
- glc rm Remove resource
Unstars a given project
Unstars a given project
glc rm project-star PROJECT_ID [flags]
-h, --help help for project-star
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
-y, --yes Do not ask for confirmation
- glc rm Remove resource
Remove a project's variable
Remove a project's variable
glc rm project-var PROJECT_ID VAR_KEY [flags]
-h, --help help for project-var
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output
-y, --yes Do not ask for confirmation
- glc rm Remove resource
Print the version number of glc
Print the version number of glc
glc version [flags]
-h, --help help for version
-a, --alias string Use resource alias
-c, --config string Path to configuration file (default ".glc.yml")
--host string GitLab host
-i, --interactive enable interactive mode when applicable (eg. creation, pagination)
--no-color disable color output
-o, --output-destination string Output result to file if specified
-f, --output-format string Output format, must be one of 'text', 'json', 'yaml'
--silent silent mode
-v, --verbose verbose output