{"id":529388,"date":"2022-12-20T04:48:24","date_gmt":"2022-12-20T01:48:24","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-get-started-with-gitlabs-cli-to-manage-devops-from-your-terminal\/"},"modified":"2022-12-20T04:48:24","modified_gmt":"2022-12-20T01:48:24","slug":"how-to-get-started-with-gitlabs-cli-to-manage-devops-from-your-terminal","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-get-started-with-gitlabs-cli-to-manage-devops-from-your-terminal\/","title":{"rendered":"#How to Get Started With GitLab\u2019s CLI to Manage DevOps From Your Terminal"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a27100cdb70f\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a27100cdb70f\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-get-started-with-gitlabs-cli-to-manage-devops-from-your-terminal\/#%E2%80%9CHow_to_Get_Started_With_GitLabs_CLI_to_Manage_DevOps_From_Your_Terminal%E2%80%9D\" >&#8220;How to Get Started With GitLab\u2019s CLI to Manage DevOps From Your Terminal&#8221;<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-get-started-with-gitlabs-cli-to-manage-devops-from-your-terminal\/#What_Is_Glab\" >What Is Glab?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-get-started-with-gitlabs-cli-to-manage-devops-from-your-terminal\/#Getting_Started_With_Glab\" >Getting Started With Glab<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-get-started-with-gitlabs-cli-to-manage-devops-from-your-terminal\/#Logging_Into_Another_GitLab_Instance\" >Logging Into Another GitLab Instance<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-get-started-with-gitlabs-cli-to-manage-devops-from-your-terminal\/#Using_Glab\" >Using Glab<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-get-started-with-gitlabs-cli-to-manage-devops-from-your-terminal\/#Issues\" >Issues<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-get-started-with-gitlabs-cli-to-manage-devops-from-your-terminal\/#Merge_Requests\" >Merge Requests<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-get-started-with-gitlabs-cli-to-manage-devops-from-your-terminal\/#CI_Pipelines\" >CI Pipelines<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-get-started-with-gitlabs-cli-to-manage-devops-from-your-terminal\/#Arbitrary_API_Requests\" >Arbitrary API Requests<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-get-started-with-gitlabs-cli-to-manage-devops-from-your-terminal\/#Using_Aliases\" >Using Aliases<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-get-started-with-gitlabs-cli-to-manage-devops-from-your-terminal\/#Using_Glab_to_Manage_DevOps\" >Using Glab to Manage DevOps<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"%E2%80%9CHow_to_Get_Started_With_GitLabs_CLI_to_Manage_DevOps_From_Your_Terminal%E2%80%9D\"><\/span>&#8220;How to Get Started With GitLab\u2019s CLI to Manage DevOps From Your Terminal&#8221;<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<div>\n<img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage alignnone size-full wp-image-813526\" data-pagespeed-no-defer=\"\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/06\/GitLab.jpg?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"GitLab logo\" width=\"1602\" height=\"902\"\/><\/p>\n<p>GitLab is one of the leading source control and CI\/CD solutions for modern software delivery teams. It provides a comprehensive set of features for planning, building, and delivering your software projects.<\/p>\n<p>GitLab\u2019s normally interacted with using its web UI or API. Neither of these options are particularly <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>ealing to terminal-centric developers. Fortunately GitLab also has <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/glab-cli.io\">a CLI<\/a> that provides direct access to your issues, merge requests, pipelines, and other resources, right alongside your code and other shell commands. This article will show you the basics.<\/p>\n<h2 id=\"what-is-glab\"><span class=\"ez-toc-section\" id=\"What_Is_Glab\"><\/span>What Is Glab?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The <code>glab<\/code> GitLab CLI was begun <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/gitlab.com\/profclems\">by Clement Sam<\/a> as a community-led project. It has since been adopted by GitLab, <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/about.gitlab.com\/blog\/2022\/12\/07\/introducing-the-gitlab-cli\">receiving its first GitLab-led official release<\/a> in December 2022. Going forwards, it\u2019ll continue to be maintained by GitLab and the broader community as an open-source tool.<\/p>\n<p>Glab currently supports interactions with the following GitLab features:<\/p>\n<ul>\n<li>Issues<\/li>\n<li>Merge Requests<\/li>\n<li>Pipelines<\/li>\n<li>Releases<\/li>\n<li>Repositories<\/li>\n<li>Labels<\/li>\n<li>Snippets<\/li>\n<\/ul>\n<p>You can retrieve existing data from your GitLab account, create new items, and perform actions such as checking a pipeline\u2019s status and approving a merge request. It\u2019s possible to authenticate to multiple GitLab instances simultaneously, including GitLab.com and your self-hosted servers.<\/p>\n<h2 id=\"getting-started-with-glab\"><span class=\"ez-toc-section\" id=\"Getting_Started_With_Glab\"><\/span>Getting Started With Glab<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before starting to use Glab, create a <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/docs.gitlab.com\/ee\/user\/profile\/personal_access_tokens.html\">personal access token<\/a> for your GitLab account that includes the <code>api<\/code> and <code>write_repository<\/code> scopes. Glab will use this token to perform actions on your behalf.<\/p>\n<p>Click your profile icon in the top-right of the GitLab UI, then choose \u201cAccess Tokens\u201d from the menu on the left. Give your token a name and select the <code>api<\/code> and <code>write_repository<\/code> scopes from the list. Scroll down the page and click the \u201cCreate personal access token\u201d button. The token\u2019s value will be displayed \u2013 note this down now, as you won\u2019t be able to retrieve it in the future.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-854124\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/12\/Screenshot-2022-12-11-at-12-53-03-Personal-Access-Tokens-\u00b7-User-Settings-\u00b7-GitLab.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"image of creating a personal access token in GitLab\" width=\"1280\" height=\"648\"\/><\/p>\n<p>Next, you need to install Glab. You can download pre-built binaries for Windows, macOS, and Linux systems from the project\u2019s <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/gitlab.com\/gitlab-org\/cli\/-\/releases\">GitLab Releases page<\/a>. Glab\u2019s also distributed for <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/gitlab.com\/gitlab-org\/cli\">several popular package managers<\/a> across all supported operating systems.<\/p>\n<p>Once Glab\u2019s installed, you can authenticate to your GitLab instance by running the <code>auth login<\/code> command. This will start a <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/watch-movies-tv-seriess\/\" data-internallinksmanager029f6b8e52c=\"8\" title=\"Watch Movies &amp; TV Series\" target=\"_blank\" rel=\"noopener\">series<\/a> of interactive prompts that let you choose between GitLab.com or a self-hosted instance. After supplying the instance details, you\u2019ll be able to enter the personal access token you created earlier.<\/p>\n<p>Next you\u2019ll be asked to confirm the default protocol to use for Git operations. You can usually accept the value that\u2019s automatically selected. SSH is preferred but some environments may require Git over HTTPS. The following prompt asks you whether Glab should authenticate Git operations using the same personal access token you\u2019ve previously supplied. This is usually the desired behavior.<\/p>\n<p>Finally, if you\u2019re using a self-hosted GitLab instance, you\u2019ll be prompted to choose between the HTTP and HTTPS protocols for access to the GitLab API. Choose HTTPS unless you know your instance only supports HTTP.<\/p>\n<p>At the end of the sequence, you should receive a\u00a0 \u201cLogged in\u201d success message.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-854125\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/12\/2022-12-11_13-00.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"image of logging into Glab\" width=\"900\" height=\"350\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<h3 id=\"logging-into-another-gitlab-instance\"><span class=\"ez-toc-section\" id=\"Logging_Into_Another_GitLab_Instance\"><\/span>Logging Into Another GitLab Instance<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You can login to another GitLab instance by repeating the <code>auth login<\/code> command. Running <code>auth status<\/code> will emit a list of all the endpoints you\u2019ve configured.<\/p>\n<h2 id=\"using-glab\"><span class=\"ez-toc-section\" id=\"Using_Glab\"><\/span>Using Glab<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Glab\u2019s intended to be run from your project\u2019s working directory. Begin by <code>cd<\/code>-ing into a directory that contains a Git repository. Glab commands will now automatically select the correct GitLab instance and authentication token, based on the project\u2019s default Git remote.<\/p>\n<p>This model permits seamless use of projects from multiple GitLab instances. You can run <code>git<\/code> and <code>glab<\/code> commands as you work, simply by entering a project directory. It\u2019s possible to use Glab outside a project, however, by setting the <code>GITLAB_TOKEN<\/code> and <code>GITLAB_URI<\/code> (or <code>GITLAB_HOST<\/code>) <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/gitlab.com\/gitlab-org\/cli#environment-variables\">environment variables<\/a> in your shell, then specifying the <code>--repo<\/code> flag\u00a0 with your commands to identify the target project (in <code>OWNER\/REPO<\/code> format). This lets you conveniently use Glab within automated scripts, for example.<\/p>\n<h3 id=\"issues\"><span class=\"ez-toc-section\" id=\"Issues\"><\/span>Issues<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>List issues in your project with the <code>issues list<\/code> command:<\/p>\n<pre>$ glab issues list&#13;\nShowing 3 open issues in ilmiont\/ardeidae that match your search (Page 1)&#13;\n&#13;\n#376  ilmiont\/ardeidae#376  Console Input allow accessing full standard input string    about 1 month ago  &#13;\n#374  ilmiont\/ardeidae#374  Basis support construction via compound typehints           about 11 months ago&#13;\n#373  ilmiont\/ardeidae#373  v3.1.0 unit tests                                           about 11 months ago<\/pre>\n<p>Use the <code>--page<\/code> flag to switch to subsequent pages in the result set. 20 items are displayed per page by default; this can be changed with the <code>--per-page<\/code> flag.<\/p>\n<p>Several filtering flags are supported. The following command fetches all closed issues with the P1 label, that are in the v3.1.0 milestone and assigned to you:<\/p>\n<pre>$ glab issue list --mine --milestone v3.1.0 --label P1 --closed<\/pre>\n<p>Run <code>glab issue list --help<\/code> to learn about all the supported flags.<\/p>\n<p>Get detailed information about a specific issue with <code>issue view<\/code>:<\/p>\n<pre>$ glab issues view 376&#13;\nopen \u2022 opened by ilmiont about 1 month ago&#13;\nConsole Input allow accessing full standard input string #376&#13;\n&#13;\n   php:\/\/input                                                                &#13;\n&#13;\n&#13;\n&#13;\n0 upvotes \u2022 0 downvotes \u2022 0 comments&#13;\nMilestone: v3.1.0<\/pre>\n<p>To fetch an issue\u2019s comments, add the <code>--comments<\/code> flag to the command. The comments will be paginated, like the <code>issue list<\/code> command.<\/p>\n<p>You can open the web UI page for an issue in your default browser:<\/p>\n<pre>$ glab issue view 376 --web<\/pre>\n<p>Notes (comments) can be created against issues with the <code>note<\/code> command. The <code>-m<\/code> flag specifies the Markdown text for the note:<\/p>\n<pre>$ glab issue note 376 -m \"This is no longer relevant\"<\/pre>\n<p>Close and reopen issues with the <code>close<\/code> and <code>reopen<\/code> commands respectively:<\/p>\n<pre>$ glab issue close 376&#13;\n$ glab issue reopen 376<\/pre>\n<p>To create a new issue, run the <code>create<\/code> command and pass appropriate flags:<\/p>\n<pre>$ glab issue create \\&#13;\n    --title \"New Issue\" \\&#13;\n    --description \"Demo issue\" \\&#13;\n    --milestone \"v3.1.0\"<\/pre>\n<p>You\u2019ll be prompted to confirm the issue\u2019s creation. You can skip this by setting the <code>-y<\/code> or <code>--yes<\/code> flag. Many more flags are supported to define all the properties of the issue. Try running <code>glab issue create --help<\/code> to explore the options.<\/p>\n<h3 id=\"merge-requests\"><span class=\"ez-toc-section\" id=\"Merge_Requests\"><\/span>Merge Requests<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Basic merge request interactions are similar to those for issues. Use the <code>list<\/code> and <code>view<\/code> commands to retrieve details of existing merge requests. The <code>approve<\/code>, <code>close<\/code>, and <code>merge<\/code> commands apply those respective actions to the MR:<\/p>\n<pre>$ glab mr merge 100<\/pre>\n<p>Merge request commands accept either an ID or a source branch as their argument. You can merge the MR for <code>demo-branch<\/code> into your main branch using the following command:<\/p>\n<pre>$ glab mr merge demo-branch<\/pre>\n<p>You can view the changes contained in an MR with the <code>diff<\/code> command:<\/p>\n<pre>$ glab mr diff 100<\/pre>\n<p>Colorized diff output will be displayed in your terminal in Git format.<\/p>\n<p>It\u2019s also possible to locally checkout and switch to a merge request\u2019s source branch, without manually running Git commands:<\/p>\n<pre>$ glab mr checkout 100<\/pre>\n<h3 id=\"ci-pipelines\"><span class=\"ez-toc-section\" id=\"CI_Pipelines\"><\/span>CI Pipelines<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>View pipeline results for your project by running <code>ci list<\/code>:<\/p>\n<pre>$ glab ci list&#13;\nShowing 3 pipelines on ilmiont\/ardeidae (Page 1)&#13;\n&#13;\n(success) \u2022 #734  3.1.0-rc42                                                     (about 9 days ago) &#13;\n(success) \u2022 #733  master                                                         (about 9 days ago) &#13;\n(success) \u2022 #732  Dbal-store-allow-upsert                                        (about 9 days ago)<\/pre>\n<p>The <code>view<\/code> command provides access to the job results for the latest pipeline on either the default or a specific branch. A new terminal screen will display the stages in the pipeline:<\/p>\n<pre>$ glab ci view&#13;\n$ glab ci view -b demo-branch<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-854123\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/12\/2022-12-11_17-21.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"image of viewing a CI pipeline's status in Glab\" width=\"952\" height=\"253\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>To trigger a new pipeline run, execute the <code>glab run<\/code> command:<\/p>\n<pre>$ glab ci run<\/pre>\n<p>You can specify the branch to source the pipeline from:<\/p>\n<pre>$ glab ci run -b demo-branch<\/pre>\n<p>It\u2019s also possible to set CI variables for the run:<\/p>\n<pre>$ glab ci run --variables demo-var:demo-val,another-var:another-val<\/pre>\n<p>You can access a job\u2019s logs by running the <code>ci trace<\/code> command and using the interactive prompt to select the target job. Artifacts are available too: the <code>ci artifact<\/code> command downloads the artifacts from the latest pipeline, for either the default branch or a specified one identified by the <code>-b<\/code> flag.<\/p>\n<p>Finally, Glab includes a built-in linter for the <code>.gitlab-ci.yml<\/code> file in your working directory. This allows you to conveniently check your pipeline\u2019s validity, without copying and pasting the file into the GitLab web UI.<\/p>\n<pre>$ glab ci lint&#13;\nGetting contents in .gitlab-ci.yml&#13;\nValidating...&#13;\n\u2713 CI yml is Valid!<\/pre>\n<h3 id=\"arbitrary-api-requests\"><span class=\"ez-toc-section\" id=\"Arbitrary_API_Requests\"><\/span>Arbitrary API Requests<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Glab\u2019s commands are wrappers around existing <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/docs.gitlab.com\/ee\/api\">GitLab API<\/a> endpoints. While several APIs are natively supported, many more are yet to be implemented as commands. Calling the API directly can be tedious because you need to supply your personal access token by manually setting request headers.<\/p>\n<p>Glab includes a utility command for making arbitrary authenticated requests against the API. The <code>glab api<\/code> command accepts a relative URI to request in the context of your active GitLab instance. The following example gets the Git tags associated with the project with the ID of <code>1<\/code>:<\/p>\n<pre>$ glab api projects\/1\/repository\/tags<\/pre>\n<p>The raw API response data will be emitted to your terminal in JSON format.<\/p>\n<p>Set the HTTP method for the request using the <code>-X<\/code> or <code>--method<\/code> flag. You can supply request body data with the <code>-F<\/code> or <code>--field<\/code> flag:<\/p>\n<pre>$ glab api projects\/1\/repository\/tags -X POST --field tag_name=demo --field ref=main<\/pre>\n<p>You can include custom request headers by setting the <code>-H<\/code> or <code>--header<\/code> flag.<\/p>\n<h3 id=\"using-aliases\"><span class=\"ez-toc-section\" id=\"Using_Aliases\"><\/span>Using Aliases<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Glab supports custom command aliases so you can quickly access commonly used functionality.<\/p>\n<p>Create a new alias by running the <code>alias set<\/code> command:<\/p>\n<pre>$ glab alias set issues \"issue list\"&#13;\n- Adding alias for issues: issue list&#13;\n\u2713 Added alias.<\/pre>\n<p>Now you can list the issues in your project by running <code>glab issues<\/code>:<\/p>\n<pre>$ glab issues&#13;\nShowing 3 open issues in ilmiont\/ardeidae that match your search (Page 1)&#13;\n&#13;\n#376  ilmiont\/ardeidae#376  Console Input allow accessing full standard input string    about 1 month ago  &#13;\n#374  ilmiont\/ardeidae#374  Basis support construction via compound typehints           about 11 months ago&#13;\n#373  ilmiont\/ardeidae#373  v3.1.0 unit tests                                           about 11 months ago<\/pre>\n<p>List all the aliases you\u2019ve created with <code>alias list<\/code>:<\/p>\n<pre>$ glab alias list&#13;\nci      pipeline ci&#13;\nco      mr checkout&#13;\nissues  issue list<\/pre>\n<p>Delete an alias by running <code>alias delete<\/code> and passing its name:<\/p>\n<pre>$ glab alias delete issues<\/pre>\n<h2 id=\"using-glab-to-manage-devops\"><span class=\"ez-toc-section\" id=\"Using_Glab_to_Manage_DevOps\"><\/span>Using Glab to Manage DevOps<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Glab is the official GitLab CLI.\u00a0 It lets you manage the entire DevOps process from your terminal. You can create issues, assign tasks, review merge requests, trigger CI pipelines, and tag releases, without having to switch between tools or learn the GitLab API. This reduces context switching and facilitates automation of your most common workflows.<\/p>\n<p>Having access to GitLab data alongside your code and Git operations keeps you focused on the task at hand. The CLI is also quicker to use than the web UI, if you\u2019re comfortable with working in a terminal. It\u2019s a valuable third interface for your GitLab instance, in addition to the UI and API.<\/p>\n<p>While this article has covered the basics of using Glab for common tasks, there\u2019s much more you can explore too. Check out <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/gitlab.com\/gitlab-org\/cli\">the documentation<\/a> or try running <code>glab help<\/code> and <code>glab &lt;COMMAND&gt; --help<\/code> to explore all the available capabilities.<\/p>\n<p>Now that Glab is <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/about.gitlab.com\/blog\/2022\/12\/07\/introducing-the-gitlab-cli\">fully incorporated<\/a> as a native GitLab project, further development is promised to support additional workflows and implement community requests. You can provide your feedback to GitLab by opening an issue in <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/gitlab.com\/gitlab-org\/cli\">the project\u2019s repository<\/a>.<\/p>\n<\/div>\n<p><script>\n setTimeout(function(){\n  !function(f,b,e,v,n,t,s)\n  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n  n.queue=[];t=b.createElement(e);t.async=!0;\n  t.src=v;s=b.getElementsByTagName(e)[0];\n  s.parentNode.insertBefore(t,s) } (window, document,'script',\n  'https:\/\/connect.facebook.net\/en_US\/fbevents.js');\n   fbq('init', '335401813750447');\n   fbq('track', 'PageView');\n  },3000);\n<\/script><\/p>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.howtogeek.com\/devops\/how-to-get-started-with-gitlabs-cli-to-manage-devops-from-your-terminal\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;How to Get Started With GitLab\u2019s CLI to Manage DevOps From Your Terminal&#8221; GitLab is one of the leading source control and CI\/CD solutions for modern software delivery teams. It provides a comprehensive set of features for planning, building, and delivering your software projects. GitLab\u2019s normally interacted with using its web UI or API. Neither&#8230;<\/p>\n","protected":false},"author":1,"featured_media":529389,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/06\/GitLab.jpg?height=200p&trim=2,2,2,2","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-529388","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/529388","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=529388"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/529388\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/529389"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=529388"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=529388"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=529388"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}