<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-set-up-github-cli-on-wsl2-gathnf6su" -->

---
title: How to Set Up GitHub CLI on WSL2 | daily.dev
description: A comprehensive guide for installing and configuring GitHub CLI on WSL2, focusing on solving common authentication issues. Covers installation via apt package...
canonical: https://daily.dev/posts/how-to-set-up-github-cli-on-wsl2-gathnf6su
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to Set Up GitHub CLI on WSL2 | daily.dev
og:description: A comprehensive guide for installing and configuring GitHub CLI on WSL2, focusing on solving common authentication issues. Covers installation via apt package...
og:url: https://daily.dev/posts/how-to-set-up-github-cli-on-wsl2-gathnf6su
og:image: https://api.daily.dev/og/posts/gatHNF6su.png
og:image:alt: How to Set Up GitHub CLI on WSL2
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Set Up GitHub CLI on WSL2

**[freeCodeCamp](https://daily.dev/sources/freecodecamp)** · [@ayuadiati](https://daily.dev/ayuadiati) · 6 min read · 6 upvotes · 0 comments

## Summary

A comprehensive guide for installing and configuring GitHub CLI on WSL2, focusing on solving common authentication issues. Covers installation via apt package manager, troubleshooting the 'slow_down' authentication error with a specific workaround, and includes instructions for upgrading, uninstalling, and revoking access. The guide addresses WSL interoperability issues and provides step-by-step solutions for Ubuntu, Debian, and Raspberry Pi OS users.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.freecodecamp.org/news/github-cli-wsl2-guide/>

---

Tags: [#linux](https://daily.dev/tags/linux), [#microsoft](https://daily.dev/tags/microsoft), [#github](https://daily.dev/tags/github), [#authentication](https://daily.dev/tags/authentication), [#ubuntu](https://daily.dev/tags/ubuntu)

[View this post on daily.dev](https://daily.dev/posts/how-to-set-up-github-cli-on-wsl2-gathnf6su)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to Set Up GitHub CLI on WSL2","url":"https://daily.dev/posts/how-to-set-up-github-cli-on-wsl2-gathnf6su","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-set-up-github-cli-on-wsl2-gathnf6su"},"datePublished":"2025-08-14T23:19:17.870Z","dateModified":"2025-08-15T20:00:08.450Z","description":"A comprehensive guide for installing and configuring GitHub CLI on WSL2, focusing on solving common authentication issues. Covers installation via apt package...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e8757e3f50b6954d4f5eb50ff7c9638c?_a=AQAEulh","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/e8757e3f50b6954d4f5eb50ff7c9638c?_a=AQAEulh","isAccessibleForFree":true,"articleSection":"freeCodeCamp","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Ayu Adiati","url":"https://daily.dev/ayuadiati","image":"https://lh3.googleusercontent.com/a-/AOh14GhQo0skRycm83QbzodAXvp7Cy6rqQ9aWpJkq9xycA=s100","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":340}},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-set-up-github-cli-on-wsl2-gathnf6su","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":6},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"linux,microsoft,github,authentication,ubuntu","timeRequired":"PT6M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"freeCodeCamp","item":"https://daily.dev/sources/freecodecamp"},{"@type":"ListItem","position":3,"name":"How to Set Up GitHub CLI on WSL2"}]}
```

