0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Gemini CLI の環境構築

Last updated at Posted at 2025-10-24

Gemini CLI の環境構築手順

  1. Windows PowerShell を管理者として実行
  2. node -v を入力してEnter
  3. 出力されたものが v20 以上であれば、OK
    ※v20 以下であれば、Node.jsからダウンロードしてください
  4. 再度、Windows PowerShell を開き、npx https://github.com/google-gemini/gemini-cli を入力して Enter後、y
    git のインストールが必要です
  5. Gemini CLI 起動後、Previewを確認しつつ、使用するテーマの色を選択
  6. Login with Googleを選択し、Google アカウント認証を行う
  7. 環境構築が完了

Gemini CLI の開き方

  1. 作業範囲のフォルダーを開き、右クリック/ターミナルを開く
  2. npx https://github.com/google-gemini/gemini-cli を入力してEnter

UnityMCP のインストール方法

  1. Unity の Package Manager (Window > Package Manager)を開く
  2. 左上隅にある「+」ボタンをクリック
  3. git URLからパッケージを追加を選択
  4. https://github.com/CoderGamester/mcp-unity.git を入力
  5. 追加をクリック

Gemini CLI にエディター操作をさせるために

  1. C:\ユーザー の 直下にある .gemini フォルダと共に
    その直下のsetting.jsonを作成した Unity プロジェクトのフォルダ直下にコピーアンドペースト
    ※C:\ユーザーから 1 つか 2 つ、フォルダ階層が深い場合があります
  2. コピーした .gemini\setting.json を開く
  3. UnityMCP をインストールしたプロジェクトの Tools\MCP Unity\Server Window をクリック
  4. Status が Server Offline の場合、Start Server をクリック
  5. Copy to Clipboard をクリック
  6. setting.json の一番下の中括弧の上にペーストして保存
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?