Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[workshop-sync] side-quest-06-01-install-troubleshooting.md: GHES install command uses invalid `--hostname` flag

クローズ 初心者向け
#4,568 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
85/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
bash, github
領域
documentation

調査の方向性

問題は workshop/side-quest-06-01-install-troubleshooting.md の GitHub Enterprise Server セクションにある、--hostname を渡している gh extension install の行にあります。gh_extension_install マニュアルで、issue に記載されている URL の形式を確認してください。そのうえで、GHES のホストをリポジトリ URL の一部として指定するように、この 1 行だけを変更します。完了の条件は、その行で --hostname を使わなくなっていること、GHES ブロックの残りの部分が変更されていないこと、そして任意の例である gh aw --version が現在のリリースに合わせて更新されていることです。

索引モデルが issue の本文から書いたものです。

説明

documentation

Workshop file reviewed

workshop/side-quest-06-01-install-troubleshooting.md

Problem

The "GitHub Enterprise Server (GHE/GHES) endpoint" section instructs learners to run:

gh extension install github/gh-aw --hostname ghes.example.com

gh extension install does not support a --hostname flag. Per the official gh CLI manual (gh_extension_install), the only flags are --force and --pin. GHES installs are done by passing the repository as a full URL instead of OWNER/REPO:

"For GitHub repositories, the repository argument can be specified in OWNER/REPO format or as a full repository URL. The URL format is useful when the repository is not hosted on github.com."

Example from the manual: `gh extension install (my.ghes.com/redacted)

As written, the documented command will fail with an "unknown flag" error for anyone following the GHES troubleshooting path.

Current correct syntax

gh config set git_protocol https --host ghes.example.com
gh auth login --hostname ghes.example.com --scopes "repo,read:org,workflow"
gh extension install (ghes.example.com/redacted)
gh auth status --hostname ghes.example.com

Suggested fix

Replace the line:

gh extension install github/gh-aw --hostname ghes.example.com

with:

gh extension install (ghes.example.com/redacted)

Minor secondary note

The checkpoint line "gh aw --version prints a version number (for example, gh-aw 1.x.x)" shows an example format (1.x.x) that doesn't match the project's current pre-1.0 versioning (latest release is v0.89.21) or the output format shown elsewhere in the workshop (e.g. gh-aw version 0.81.6). Consider updating the example to something like gh-aw version 0.89.21 for consistency, though this is lower priority than the --hostname flag fix above.

Reference

Official gh CLI manual: https://cli.github.com/manual/gh_extension_install

Generated by 🔍 Workshop Sync Check · copilot · auto · 173.7 AIC · ⌖ 0.605 AIC · ⊞ 9.2K · ◷

  • expires on Oct 15, 2026, 4:57 AM UTC
主要言語
JavaScript
スター
53
フォーク
35
平均マージ
13時間 50分
マージ済み PR(30日)
14

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

githubnext/gh-aw-workshop のほかの issue

githubnext/gh-aw-workshop の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。