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

[workshop-sync] side-quest-06-01-install-troubleshooting.md: invalid gh extension install --hostname flag

オープン 初心者向け
#3,968 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

workshop/side-quest-06-01-install-troubleshooting.md を開き、gh extension install コマンド周辺の GHES セクションを確認してください。現在の gh CLI 構文とリンク先の GHES サポートリファレンスを確認し、手順がサポートされているホスト選択方法を使用し、無効な --hostname フラグを含まなくなっていることを検証してください。

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

説明

documentation

Workshop file reviewed

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

Problem

The GHES (GitHub Enterprise Server) section instructs learners to run:

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

This command is invalid. gh extension install does not accept a --hostname flag — verified against the current gh CLI (v2.98.0), whose only flags for gh extension install are --force and --pin. Running the command as written will fail with an unrecognized-flag error.

Current correct syntax

GHES targeting for gh extension install (and other gh subcommands that don't take an explicit hostname flag) is done by setting the GH_HOST environment variable (or by first running gh auth login --hostname <host>, which sets the default host for subsequent unscoped commands), not by passing --hostname directly to gh extension install. Reference: setup/cli — GitHub Enterprise Server support.

Suggested fix

Replace:

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

with something like:

export GH_HOST=ghes.example.com
gh extension install github/gh-aw

or simply rely on the host already set by the preceding gh auth login --hostname ghes.example.com call, and drop the unsupported --hostname flag from the gh extension install line.

Generated by 🔍 Workshop Sync Check · copilot · auto · 158.7 AIC · ⌖ 6.75 AIC · ⊞ 8.2K · ◷

  • expires on Sep 30, 2026, 8:58 AM UTC
主要言語
JavaScript
スター
51
フォーク
23
平均マージ
8時間 37分
マージ済み PR(30日)
23

環境構築

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 を短くまとめたダイジェスト。