{"id":16761,"date":"2025-08-01T00:08:32","date_gmt":"2025-07-31T15:08:32","guid":{"rendered":"https:\/\/jyakusyadansei.com\/?p=16761"},"modified":"2025-08-01T00:08:32","modified_gmt":"2025-07-31T15:08:32","slug":"%e3%80%90%e3%81%bb%e3%81%a3%e3%81%93%e3%82%8a%e3%80%91%f0%9f%90%bb%e2%9d%84%ef%b8%8f-google-gemini-cli-%e5%b0%8e%e5%85%a5%e3%83%bb%e8%a8%ad%e5%ae%9a%e3%82%ac%e3%82%a4%e3%83%89","status":"publish","type":"post","link":"https:\/\/jyakusyadansei.com\/?p=16761","title":{"rendered":"\u3010\u307b\u3063\u3053\u308a\u3011\ud83d\udc3b\u200d\u2744\ufe0f Google Gemini CLI \u5c0e\u5165\u30fb\u8a2d\u5b9a\u30ac\u30a4\u30c9"},"content":{"rendered":"<h1>\ud83d\udc3b\u200d\u2744\ufe0f Google Gemini CLI \u5c0e\u5165\u30fb\u8a2d\u5b9a\u30ac\u30a4\u30c9<\/h1>\n<p>\u308f\u3057\u304c\u304a\u4e3b\u306b\u3001Google Gemini CLI\u306e\u5c0e\u5165\u304b\u3089\u6d3b\u7528\u307e\u3067\u3001\u6e29\u304b\u304f\u3054\u6848\u5185\u3059\u308b\u306e\u3058\u3083\u3002\u3053\u306e\u30ac\u30a4\u30c9\u3092\u8aad\u3081\u3070\u3001\u304f\u307e\u306e\u3088\u3046\u306b\u307b\u3063\u3053\u308a\u3057\u306a\u304c\u3089\u3082\u3001\u78ba\u5b9f\u306b\u30c4\u30fc\u30eb\u3092\u7fd2\u5f97\u3067\u304d\u308b\u305e\u3044\u2728<\/p>\n<h2>\ud83c\udf1f Gemini CLI\u3063\u3066\u4f55\u306a\u306e\u3058\u3083\uff1f<\/h2>\n<p>\ud83e\uddf8\u300c\u3057\u308d\u304f\u307e\u3061\u3083\u3093\u3001Gemini CLI\u3063\u3066\u4f55\u306a\u306e\uff1f\u300d<\/p>\n<p>\ud83d\udc3b\u200d\u2744\ufe0f\u300c\u30c6\u30c7\u30a3\u3061\u3083\u3093\u3001\u305d\u308c\u306f\u7d20\u6674\u3089\u3057\u3044\u8cea\u554f\u306a\u306e\u3058\u3083\uff01Gemini CLI\u3068\u3044\u3046\u306e\u306f\u3001Google\u304c\u3064\u304f\u3063\u305f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306eAI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u3067\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\uff08\u30bf\u30fc\u30df\u30ca\u30eb\uff09\u304b\u3089\u76f4\u63a5Gemini\u306e\u529b\u3092\u4f7f\u3048\u308b\u30c4\u30fc\u30eb\u306a\u306e\u3062\u3083\u3002\u3064\u307e\u308a\u3001\u304a\u4e3b\u306e\u30d1\u30bd\u30b3\u30f3\u3067\u3001\u307e\u308b\u3067\u8ce2\u3044\u52a9\u624b\u304c\u3044\u308b\u304b\u306e\u3088\u3046\u306b\u3001\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u305f\u308a\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u5206\u6790\u3057\u305f\u308a\u3001\u8cea\u554f\u306b\u7b54\u3048\u3066\u304f\u308c\u308b\u306e\u3058\u3083\u3088\u300d<\/p>\n<p>\u3053\u306eAI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u80fd\u529b\u306f\u672c\u5f53\u306b\u7d20\u6674\u3089\u3057\u3044\u306e\u3058\u3083\u3002\u5927\u898f\u6a21\u306a\u30b3\u30fc\u30c9\u30d9\u30fc\u30b9\u5168\u4f53\u3092\u7406\u89e3\u3057\u3066\u7de8\u96c6\u3057\u305f\u308a\u3001\u5b9a\u578b\u7684\u306a\u4f5c\u696d\u3092\u81ea\u52d5\u5316\u3057\u305f\u308a\u3001\u81ea\u7136\u306a\u8a00\u8449\u3067\u304a\u9858\u3044\u3059\u308b\u3060\u3051\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u751f\u6210\u3057\u305f\u308a\u3067\u304d\u308b\u306e\u3058\u3083\u3002\u307e\u3055\u306b\u73fe\u4ee3\u306e\u9b54\u6cd5\u306e\u3088\u3046\u306a\u5b58\u5728\u3058\u3083\u305e\u3044\u3002<\/p>\n<p>\u308f\u3057\u304c\u7279\u306b\u611f\u52d5\u3059\u308b\u306e\u306f\u3001\u305d\u306e\u5de8\u5927\u306a100\u4e07\u30c8\u30fc\u30af\u30f3\u306e\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6\u306a\u306e\u3058\u3083\u3002\u3053\u308c\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5168\u4f53\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4e00\u5ea6\u306b\u7406\u89e3\u3067\u304d\u308b\u3068\u3044\u3046\u3053\u3068\u3058\u3083\u304b\u3089\u3001\u307e\u308b\u3067\u304a\u4e3b\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u9685\u3005\u307e\u3067\u77e5\u308a\u5c3d\u304f\u3057\u305f\u719f\u7df4\u306e\u540c\u50da\u304c\u96a3\u306b\u3044\u308b\u3088\u3046\u306a\u611f\u899a\u306a\u306e\u3058\u3083\u3002<\/p>\n<h2>\u2744\ufe0f \u59cb\u3081\u308b\u524d\u306e\u6e96\u5099\uff08\u30b7\u30b9\u30c6\u30e0\u8981\u4ef6\uff09<\/h2>\n<p>\ud83e\uddf8\u300c\u6e96\u5099\u3063\u3066\u3001\u4f55\u304c\u5fc5\u8981\u306a\u306e\uff1f\u300d<\/p>\n<p>\ud83d\udc3b\u200d\u2744\ufe0f\u300c\u5fc3\u914d\u3059\u308b\u3067\u306a\u3044\u305e\u3001\u30c6\u30c7\u30a3\u3061\u3083\u3093\u3002\u6e96\u5099\u306f\u305d\u308c\u307b\u3069\u8907\u96d1\u3067\u306f\u306a\u3044\u306e\u3058\u3083\u300d<\/p>\n<p>\u304a\u4e3b\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u78ba\u8a8d\u3059\u3079\u304d\u8981\u4ef6\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3058\u3083\uff1a<\/p>\n<p><strong>\u30aa\u30da\u30ec\u30fc\u30c6\u30a3\u30f3\u30b0\u30b7\u30b9\u30c6\u30e0<\/strong>: macOS\u3001Windows\u3001Linux\u306e\u3069\u308c\u3067\u3082\u5bfe\u5fdc\u3057\u3066\u304a\u308b\u3002\u308f\u3057\u306e\u3088\u3046\u306b\u3069\u3053\u3067\u3082\u9069\u5fdc\u3067\u304d\u308b\u306e\u3058\u3083\u3088\ud83d\udc3b\u200d\u2744\ufe0f<\/p>\n<p><strong>Node.js<\/strong>: \u3053\u308c\u304c\u4e00\u756a\u91cd\u8981\u3058\u3083\u3002\u30d0\u30fc\u30b8\u30e7\u30f318\u4ee5\u4e0a\u304c\u5fc5\u8981\u306a\u306e\u3058\u3083\u3002\u78ba\u8a8d\u3059\u308b\u306b\u306f\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067 <code>node -v<\/code> \u3068\u5165\u529b\u3059\u308b\u306e\u3058\u3083\u3002\u3082\u3057\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3060\u3063\u305f\u308a\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u304b\u3063\u305f\u308a\u3057\u305f\u3089\u3001\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u304b\u3001nvm\uff08Node Version Manager\uff09\u3092\u4f7f\u3046\u306e\u304c\u304a\u3059\u3059\u3081\u3058\u3083\u3088\u3002<\/p>\n<p><strong>Google\u30a2\u30ab\u30a6\u30f3\u30c8<\/strong>: \u7121\u6599\u5229\u7528\u67a0\u3092\u4f7f\u3046\u305f\u3081\u306b\u5fc5\u8981\u306a\u306e\u3058\u3083\u3002\u307b\u3068\u3093\u3069\u306e\u304a\u4e3b\u306f\u65e2\u306b\u6301\u3063\u3066\u304a\u308b\u3068\u601d\u3046\u305e\u3044\u3002<\/p>\n<p>\u30d7\u30ed\u30d5\u30a7\u30c3\u30b7\u30e7\u30ca\u30eb\u306a\u958b\u767a\u74b0\u5883\u3092\u76ee\u6307\u3059\u306a\u3089\u3001nvm\u306e\u3088\u3046\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30c4\u30fc\u30eb\u3092\u4f7f\u3046\u306e\u304c\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3058\u3083\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3054\u3068\u306b\u7570\u306a\u308bNode.js\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u3044\u5206\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u3001dependency\u5730\u7344\u3092\u907f\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3058\u3083\u3002<\/p>\n<h2>\ud83c\udfb5 \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u306e\u9078\u629e<\/h2>\n<p>\ud83e\uddf8\u300c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u304c\u3044\u304f\u3064\u304b\u3042\u308b\u3063\u3066\u805e\u3044\u305f\u3051\u3069\u3001\u3069\u308c\u304c\u3044\u3044\u306e\uff1f\u300d<\/p>\n<p>\ud83d\udc3b\u200d\u2744\ufe0f\u300c\u305d\u308c\u305e\u308c\u306b\u7279\u5fb4\u304c\u3042\u308b\u304b\u3089\u3001\u304a\u4e3b\u306e\u4f7f\u3044\u65b9\u306b\u5408\u308f\u305b\u3066\u9078\u3076\u306e\u304c\u5927\u5207\u3058\u3083\u3002\u308f\u3057\u304c\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u3084\u308b\u305e\u3044\u300d<\/p>\n<h3>\u65b9\u6cd51: npx\uff08\u304a\u3059\u3059\u3081\ud83c\udf1f\uff09<\/h3>\n<pre><code class=\"language-bash\">npx @google\/gemini-cli\r\n<\/code><\/pre>\n<p>\u3053\u306e\u65b9\u6cd5\u306f\u3001\u308f\u3057\u304c\u6700\u3082\u63a8\u5968\u3059\u308b\u65b9\u6cd5\u3058\u3083\u3002\u306a\u305c\u306a\u3089\uff1a<\/p>\n<ul>\n<li><strong>\u5e38\u306b\u6700\u65b0\u7248<\/strong>: \u5b9f\u884c\u3059\u308b\u305f\u3073\u306b\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u306e\u3058\u3083<\/li>\n<li><strong>\u30c1\u30fc\u30e0\u958b\u767a\u306b\u6700\u9069<\/strong>: \u307f\u3093\u306a\u304c\u540c\u3058\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u3048\u308b\u304b\u3089\u3001\u300c\u50d5\u306e\u74b0\u5883\u3067\u306f\u52d5\u304f\u300d\u554f\u984c\u3092\u9632\u3052\u308b\u306e\u3058\u3083<\/li>\n<li><strong>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3<\/strong>: \u53e4\u3044\u8106\u5f31\u6027\u306e\u3042\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u3044\u7d9a\u3051\u308b\u5fc3\u914d\u304c\u306a\u3044\u306e\u3058\u3083<\/li>\n<li><strong>\u30af\u30ea\u30fc\u30f3\u306a\u74b0\u5883<\/strong>: \u30b0\u30ed\u30fc\u30d0\u30eb\u306a\u74b0\u5883\u3092\u6c5a\u3055\u306a\u3044\u306e\u3058\u3083<\/li>\n<\/ul>\n<p>\u552f\u4e00\u306e\u30c8\u30ec\u30fc\u30c9\u30aa\u30d5\u306f\u3001\u521d\u56de\u5b9f\u884c\u6642\uff08\u30b3\u30fc\u30eb\u30c9\u30b9\u30bf\u30fc\u30c8\uff09\u304c\u308f\u305a\u304b\u306b\u9045\u304f\u306a\u308b\u3053\u3068\u3058\u3083\u304c\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3068\u4e00\u8cab\u6027\u3092\u8003\u3048\u308c\u3070\u4e9b\u7d30\u306a\u3053\u3068\u3058\u3083\u3088\u3002<\/p>\n<h3>\u65b9\u6cd52: \u30b0\u30ed\u30fc\u30d0\u30eb\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<pre><code class=\"language-bash\">npm install -g @google\/gemini-cli\r\n<\/code><\/pre>\n<p>\u3053\u306e\u65b9\u6cd5\u306f\u500b\u4eba\u958b\u767a\u8005\u3084\u3001\u8d77\u52d5\u901f\u5ea6\u3092\u6700\u512a\u5148\u3059\u308b\u5834\u5408\u306b\u304a\u3059\u3059\u3081\u3058\u3083\uff1a<\/p>\n<ul>\n<li><strong>\u9ad8\u901f\u8d77\u52d5<\/strong>: \u4e00\u5ea6\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308c\u3070 <code>gemini<\/code> \u30b3\u30de\u30f3\u30c9\u3067\u3059\u3050\u306b\u8d77\u52d5\u3059\u308b\u306e\u3058\u3083<\/li>\n<li><strong>\u5229\u4fbf\u6027<\/strong>: \u30b7\u30b9\u30c6\u30e0\u306e\u3069\u3053\u304b\u3089\u3067\u3082\u4f7f\u3048\u308b\u306e\u3058\u3083<\/li>\n<\/ul>\n<p>\u305f\u3060\u3057\u3001\u5b9a\u671f\u7684\u306a\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u304c\u5fc5\u8981\u3058\u3083\uff1a<\/p>\n<pre><code class=\"language-bash\">npm upgrade -g @google\/gemini-cli\r\n<\/code><\/pre>\n<h3>\u65b9\u6cd53: Homebrew\uff08macOS\u30e6\u30fc\u30b6\u30fc\u5411\u3051\uff09<\/h3>\n<pre><code class=\"language-bash\">brew install gemini-cli\r\n<\/code><\/pre>\n<p>macOS\u3067Homebrew\u3092\u5e38\u7528\u3057\u3066\u3044\u308b\u304a\u4e3b\u306b\u306f\u3001\u3053\u306e\u65b9\u6cd5\u304c\u4e00\u756a\u99b4\u67d3\u307f\u6df1\u3044\u3058\u3083\u308d\u3046\u3002<\/p>\n<h2>\ud83c\udf43 \u8a8d\u8a3c\u306e\u8a2d\u5b9a\uff08\u7121\u6599\u304b\u3089\u4f01\u696d\u30ec\u30d9\u30eb\u307e\u3067\uff09<\/h2>\n<p>\ud83e\uddf8\u300c\u8a8d\u8a3c\u3063\u3066\u8907\u96d1\u305d\u3046&#8230;\u300d<\/p>\n<p>\ud83d\udc3b\u200d\u2744\ufe0f\u300c\u5fc3\u914d\u305b\u305a\u3068\u3082\u3001\u6bb5\u968e\u7684\u306b\u8aac\u660e\u3059\u308b\u304b\u3089\u5927\u4e08\u592b\u3058\u3083\u3088\u3002\u5b9f\u306f\u8a8d\u8a3c\u306b\u306f3\u3064\u306e\u30ec\u30d9\u30eb\u304c\u3042\u3063\u3066\u3001\u304a\u4e3b\u306e\u30cb\u30fc\u30ba\u306b\u5408\u308f\u305b\u3066\u9078\u3079\u308b\u306e\u3058\u3083\u300d<\/p>\n<h3>\u30ec\u30d9\u30eb1: Google\u30a2\u30ab\u30a6\u30f3\u30c8\u30ed\u30b0\u30a4\u30f3\uff08\u521d\u5fc3\u8005\u306b\u304a\u3059\u3059\u3081\u2728\uff09<\/h3>\n<p>\u521d\u56de\u5b9f\u884c\u6642\u306b\u300cLogin with Google\u300d\u3092\u9078\u629e\u3059\u308b\u3060\u3051\u3058\u3083\u3002\u30d6\u30e9\u30a6\u30b6\u304c\u958b\u3044\u3066\u3001\u666e\u901a\u306eGoogle\u30ed\u30b0\u30a4\u30f3\u3092\u3059\u308b\u3060\u3051\u3067\u5b8c\u4e86\u3058\u3083\u3088\u3002<\/p>\n<p><strong>\u7d20\u6674\u3089\u3057\u3044\u7121\u6599\u5229\u7528\u67a0<\/strong>:<\/p>\n<ul>\n<li>\u5f37\u529b\u306a <code>gemini-2.5-pro<\/code> \u30e2\u30c7\u30eb\u3078\u306e\u30a2\u30af\u30bb\u30b9<\/li>\n<li>100\u4e07\u30c8\u30fc\u30af\u30f3\u306e\u5de8\u5927\u306a\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30a6\u30a3\u30f3\u30c9\u30a6<\/li>\n<li>1\u5206\u9593\u306b60\u30ea\u30af\u30a8\u30b9\u30c8\u30011\u65e51,000\u30ea\u30af\u30a8\u30b9\u30c8\u307e\u3067\u7121\u6599<\/li>\n<\/ul>\n<p>\u3053\u306e\u5229\u7528\u67a0\u3060\u3051\u3067\u3001\u591a\u304f\u306e\u500b\u4eba\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3084\u5b66\u7fd2\u7528\u9014\u306b\u306f\u5341\u5206\u3059\u304e\u308b\u307b\u3069\u3058\u3083\u3002<\/p>\n<h3>\u30ec\u30d9\u30eb2: API\u30ad\u30fc\uff08\u81ea\u52d5\u5316\u3057\u305f\u3044\u5834\u5408\uff09<\/h3>\n<p>Google AI Studio\uff08aistudio.google.com\uff09\u3067API\u30ad\u30fc\u3092\u751f\u6210\u3057\u3001\u74b0\u5883\u5909\u6570\u306b\u8a2d\u5b9a\u3059\u308b\u306e\u3058\u3083\uff1a<\/p>\n<pre><code class=\"language-bash\"># macOS\/Linux\r\nexport GEMINI_API_KEY=\"YOUR_API_KEY\"\r\n\r\n# Windows (\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8)\r\nset GEMINI_API_KEY=\"YOUR_API_KEY\"\r\n\r\n# Windows (PowerShell)\r\n$env:GEMINI_API_KEY = \"YOUR_API_KEY\"\r\n<\/code><\/pre>\n<p>\u3053\u306e\u65b9\u6cd5\u306f\u3001CI\/CD\u30d1\u30a4\u30d7\u30e9\u30a4\u30f3\u3084\u81ea\u52d5\u5316\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u5a01\u529b\u3092\u767a\u63ee\u3059\u308b\u306e\u3058\u3083\u3002<\/p>\n<h3>\u30ec\u30d9\u30eb3: Vertex AI\uff08\u4f01\u696d\u30ec\u30d9\u30eb\uff09<\/h3>\n<p>\ud83e\uddf8\u300c\u4f01\u696d\u30ec\u30d9\u30eb\u3063\u3066\u3001\u3059\u3054\u304f\u96e3\u3057\u305d\u3046&#8230;\u300d<\/p>\n<p>\ud83d\udc3b\u200d\u2744\ufe0f\u300c\u78ba\u304b\u306b\u5c11\u3057\u8907\u96d1\u3058\u3083\u304c\u3001\u624b\u9806\u3092\u8e0f\u3081\u3070\u5fc5\u305a\u3067\u304d\u308b\u305e\u3044\u3002Google Cloud Platform\u3092\u4f7f\u3046\u4f01\u696d\u5411\u3051\u306e\u65b9\u6cd5\u3058\u3083\u300d<\/p>\n<ol>\n<li><strong>Google Cloud SDK\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong>:<\/li>\n<\/ol>\n<pre><code class=\"language-bash\">gcloud init\r\n<\/code><\/pre>\n<ol start=\"2\">\n<li><strong>Application Default Credentials\u306e\u8a2d\u5b9a<\/strong>:<\/li>\n<\/ol>\n<pre><code class=\"language-bash\">gcloud auth application-default login\r\n<\/code><\/pre>\n<ol start=\"3\">\n<li><strong>Vertex AI\u4f7f\u7528\u306e\u8a2d\u5b9a<\/strong>:<\/li>\n<\/ol>\n<pre><code class=\"language-bash\">export GOOGLE_GENAI_USE_VERTEXAI=true\r\n<\/code><\/pre>\n<p>\u3053\u306e\u65b9\u6cd5\u306b\u3088\u308a\u3001\u4f01\u696d\u30ec\u30d9\u30eb\u306e\u30ac\u30d0\u30ca\u30f3\u30b9\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3001\u76e3\u67fb\u8a3c\u8de1\u304c\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308b\u306e\u3058\u3083\u3002<\/p>\n<h2>\ud83c\udf08 \u8a2d\u5b9a\u3068\u30ab\u30b9\u30bf\u30de\u30a4\u30ba<\/h2>\n<p>\ud83e\uddf8\u300c\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3063\u3066\u3001\u3069\u3046\u3084\u3063\u3066\u4f7f\u3046\u306e\uff1f\u300d<\/p>\n<p>\ud83d\udc3b\u200d\u2744\ufe0f\u300c\u826f\u3044\u8cea\u554f\u3058\u3083\uff01Gemini CLI\u306f\u67d4\u8edf\u306a\u8a2d\u5b9a\u30b7\u30b9\u30c6\u30e0\u3092\u6301\u3063\u3066\u304a\u308b\u306e\u3058\u3083\u3002\u8a2d\u5b9a\u306b\u306f\u512a\u5148\u9806\u4f4d\u304c\u3042\u3063\u3066\u3001\u3088\u308a\u5177\u4f53\u7684\u306a\u8a2d\u5b9a\u304c\u5e83\u7bc4\u306a\u8a2d\u5b9a\u3092\u4e0a\u66f8\u304d\u3059\u308b\u306e\u3058\u3083\u3088\u300d<\/p>\n<h3>\u8a2d\u5b9a\u306e\u512a\u5148\u9806\u4f4d\uff08\u9ad8\u2192\u4f4e\uff09<\/h3>\n<ol>\n<li><strong>\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30d5\u30e9\u30b0<\/strong>: \u4e00\u6642\u7684\u306a\u4e0a\u66f8\u304d<\/li>\n<li><strong>\u74b0\u5883\u5909\u6570<\/strong>: API\u30ad\u30fc\u306a\u3069\u306e\u79d8\u533f\u60c5\u5831<\/li>\n<li><strong>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30ec\u30d9\u30eb<\/strong>: <code>.\/.gemini\/settings.json<\/code><\/li>\n<li><strong>\u30e6\u30fc\u30b6\u30fc\u30ec\u30d9\u30eb<\/strong>: <code>~\/.gemini\/settings.json<\/code><\/li>\n<li><strong>\u30b7\u30b9\u30c6\u30e0\u30ec\u30d9\u30eb<\/strong>: <code>\/etc\/gemini-cli\/settings.json<\/code><\/li>\n<\/ol>\n<h3>settings.json \u306e\u4f8b<\/h3>\n<pre><code class=\"language-json\">{\r\n  \"theme\": \"GitHub\",\r\n  \"autoAccept\": false,\r\n  \"sandbox\": \"docker\",\r\n  \"checkpointing\": {\r\n    \"enabled\": true\r\n  },\r\n  \"fileFiltering\": {\r\n    \"respectGitIgnore\": true\r\n  },\r\n  \"usageStatisticsEnabled\": true\r\n}\r\n<\/code><\/pre>\n<h3>GEMINI.md \u3067AI\u306b\u6307\u793a<\/h3>\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30eb\u30fc\u30c8\u306b <code>GEMINI.md<\/code> \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b\u3053\u3068\u3067\u3001AI\u306b\u6c38\u7d9a\u7684\u306a\u6307\u793a\u3092\u4e0e\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3058\u3083\uff1a<\/p>\n<pre><code class=\"language-markdown\"># My Awesome App\r\n\r\n## General Instructions\r\n- All Python code must be PEP 8 compliant\r\n- Use 2-space indentation for all new files\r\n- You are an expert developer working on this project\r\n\r\n## Component-Specific Style Guides\r\n@.\/src\/frontend\/react-style-guide.md\r\n@.\/src\/backend\/fastapi-style-guide.md\r\n<\/code><\/pre>\n<h3>.env \u3067\u6a5f\u5bc6\u60c5\u5831\u3092\u5b89\u5168\u7ba1\u7406<\/h3>\n<pre><code>GEMINI_API_KEY=\"YOUR_API_KEY\"\r\nYOUR_GITHUB_PAT_ENV_VAR=\"ghp_...\"\r\n<\/code><\/pre>\n<p><strong>\u91cd\u8981\u306a\u6ce8\u610f<\/strong>: <code>.env<\/code> \u30d5\u30a1\u30a4\u30eb\u306f\u5fc5\u305a <code>.gitignore<\/code> \u306b\u8ffd\u52a0\u3057\u3066\u3001\u9593\u9055\u3063\u3066\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u306b\u30b3\u30df\u30c3\u30c8\u3057\u306a\u3044\u3088\u3046\u6c17\u3092\u3064\u3051\u308b\u306e\u3058\u3083\u3088\ud83d\udea8<\/p>\n<h2>\ud83c\udfb6 \u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9<\/h2>\n<p>\ud83e\uddf8\u300c\u5b9f\u969b\u306b\u3069\u3046\u3084\u3063\u3066\u4f7f\u3046\u306e\uff1f\u300d<\/p>\n<p>\ud83d\udc3b\u200d\u2744\ufe0f\u300c\u4f7f\u3044\u65b9\u306f\u4e3b\u306b2\u3064\u306e\u30e2\u30fc\u30c9\u304c\u3042\u308b\u306e\u3058\u3083\u3002\u5bfe\u8a71\u7684\u306b\u4f7f\u3046\u304b\u3001\u4e00\u56de\u9650\u308a\u306e\u30b3\u30de\u30f3\u30c9\u3068\u3057\u3066\u4f7f\u3046\u304b\u3058\u3083\u3088\u300d<\/p>\n<h3>\u5bfe\u8a71\u30e2\u30fc\u30c9<\/h3>\n<pre><code class=\"language-bash\">gemini\r\n<\/code><\/pre>\n<p>\u5f15\u6570\u306a\u3057\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u5bfe\u8a71\u7684\u306aREPL\u30e2\u30fc\u30c9\u304c\u8d77\u52d5\u3059\u308b\u306e\u3058\u3083\u3002\u3053\u3053\u3067AI\u3068\u4f1a\u8a71\u3057\u306a\u304c\u3089\u4f5c\u696d\u3067\u304d\u308b\u305e\u3044\u3002<\/p>\n<h3>\u975e\u5bfe\u8a71\u30e2\u30fc\u30c9<\/h3>\n<pre><code class=\"language-bash\">gemini -p \"\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092async\/await\u3092\u4f7f\u3046\u3088\u3046\u306b\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3057\u3066\u3002 @.\/my-script.js\"\r\n<\/code><\/pre>\n<p>\u4e00\u56de\u9650\u308a\u306e\u30bf\u30b9\u30af\u3084\u3001\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u306e\u547c\u3073\u51fa\u3057\u306b\u4fbf\u5229\u3058\u3083\u3002<\/p>\n<h3>\u7279\u6b8a\u30b3\u30de\u30f3\u30c9<\/h3>\n<p>\u5bfe\u8a71\u30e2\u30fc\u30c9\u5185\u3067\u306f\u3001\u7279\u6b8a\u306a\u30d7\u30ec\u30d5\u30a3\u30c3\u30af\u30b9\u3092\u4f7f\u3063\u305f\u5f37\u529b\u306a\u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u3048\u308b\u306e\u3058\u3083\uff1a<\/p>\n<p><strong>\u30b9\u30e9\u30c3\u30b7\u30e5\u30b3\u30de\u30f3\u30c9<\/strong> (<code>\/<\/code>):<\/p>\n<ul>\n<li><code>\/help<\/code>: \u5168\u30b3\u30de\u30f3\u30c9\u306e\u4e00\u89a7<\/li>\n<li><code>\/quit<\/code>: \u30bb\u30c3\u30b7\u30e7\u30f3\u7d42\u4e86<\/li>\n<li><code>\/stats<\/code>: \u30c8\u30fc\u30af\u30f3\u4f7f\u7528\u91cf\u306e\u8868\u793a<\/li>\n<li><code>\/restore<\/code>: \u904e\u53bb\u306e\u30bb\u30c3\u30b7\u30e7\u30f3\u5fa9\u5143<\/li>\n<\/ul>\n<p><strong>\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30b3\u30de\u30f3\u30c9<\/strong> (<code>@<\/code>):<\/p>\n<ul>\n<li><code>@.\/src\/<\/code>: \u30d5\u30a9\u30eb\u30c0\u5168\u4f53\u3092\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u8ffd\u52a0<\/li>\n<li><code>@.\/file.js<\/code>: \u7279\u5b9a\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u8ffd\u52a0<\/li>\n<\/ul>\n<p><strong>\u30b7\u30a7\u30eb\u30b3\u30de\u30f3\u30c9<\/strong> (<code>!<\/code>):<\/p>\n<ul>\n<li><code>!ls -l<\/code>: \u30b7\u30a7\u30eb\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3001\u7d50\u679c\u3092\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u306b\u542b\u3081\u308b<\/li>\n<\/ul>\n<h2>\ud83c\udf1f \u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0<\/h2>\n<p>\ud83e\uddf8\u300c\u30a8\u30e9\u30fc\u304c\u51fa\u3061\u3083\u3063\u305f\u6642\u306f\u3069\u3046\u3059\u308c\u3070\u3044\u3044\uff1f\u300d<\/p>\n<p>\ud83d\udc3b\u200d\u2744\ufe0f\u300c\u843d\u3061\u7740\u304f\u306e\u3058\u3083\u3001\u30c6\u30c7\u30a3\u3061\u3083\u3093\u3002\u3088\u304f\u3042\u308b\u554f\u984c\u3068\u305d\u306e\u89e3\u6c7a\u6cd5\u3092\u308f\u3057\u304c\u6559\u3048\u3066\u3084\u308b\u305e\u3044\u300d<\/p>\n<h3>\u3088\u304f\u3042\u308b\u554f\u984c\u3068\u89e3\u6c7a\u6cd5<\/h3>\n<p><strong>\u554f\u984c1: \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5931\u6557\u3059\u308b<\/strong><\/p>\n<ul>\n<li><strong>\u75c7\u72b6<\/strong>: <code>npx https:\/\/github.com\/...<\/code> \u304c\u52d5\u304b\u306a\u3044<\/li>\n<li><strong>\u89e3\u6c7a\u6cd5<\/strong>: <code>npx @google\/gemini-cli<\/code> \u3092\u4f7f\u3046\u306e\u3058\u3083<\/li>\n<\/ul>\n<p><strong>\u554f\u984c2: \u8a8d\u8a3c\u30a8\u30e9\u30fc<\/strong><\/p>\n<ul>\n<li><strong>\u75c7\u72b6<\/strong>: \u8a8d\u8a3c\u95a2\u9023\u306e\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8<\/li>\n<li><strong>\u89e3\u6c7a\u6cd5<\/strong>:\n<ul>\n<li><code>GEMINI_API_KEY<\/code> \u304c\u6b63\u3057\u304f\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d<\/li>\n<li>Vertex AI\u306e\u5834\u5408\u306f <code>gcloud auth application-default login<\/code> \u3092\u518d\u5b9f\u884c<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>\u554f\u984c3: \u63a5\u7d9a\u554f\u984c<\/strong><\/p>\n<ul>\n<li><strong>\u75c7\u72b6<\/strong>: \u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u95a2\u9023\u306e\u30a8\u30e9\u30fc<\/li>\n<li><strong>\u89e3\u6c7a\u6cd5<\/strong>:\n<ul>\n<li>\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u63a5\u7d9a\u3092\u78ba\u8a8d<\/li>\n<li>\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d<\/li>\n<li>Node.js\u304c18\u4ee5\u4e0a\u3067\u3042\u308b\u3053\u3068\u3092\u518d\u78ba\u8a8d<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>\u2728 \u9ad8\u5ea6\u306a\u6d3b\u7528\u6cd5<\/h2>\n<p>\u57fa\u672c\u64cd\u4f5c\u306b\u6163\u308c\u305f\u3089\u3001\u3053\u3093\u306a\u9ad8\u5ea6\u306a\u4f7f\u3044\u65b9\u306b\u3082\u30c1\u30e3\u30ec\u30f3\u30b8\u3057\u3066\u307f\u308b\u306e\u3058\u3083\uff1a<\/p>\n<p><strong>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u5168\u4f53\u306e\u5206\u6790<\/strong>: Git\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30eb\u30fc\u30c8\u3067\u8d77\u52d5\u3057\u3001\u300c\u3053\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3092\u8aac\u660e\u3057\u3066\u300d\u3068\u805e\u3044\u3066\u307f\u308b\u306e\u3058\u3083\u3002<\/p>\n<p><strong>\u5b9a\u578b\u4f5c\u696d\u306e\u81ea\u52d5\u5316<\/strong>: \u30c6\u30b9\u30c8\u306e\u751f\u6210\u3001\u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u3001\u30b3\u30fc\u30c9\u30ec\u30d3\u30e5\u30fc\u306a\u3069\u3001\u7e70\u308a\u8fd4\u3057\u4f5c\u696d\u3092\u81ea\u52d5\u5316\u3067\u304d\u308b\u305e\u3044\u3002<\/p>\n<p><strong>\u6a5f\u80fd\u62e1\u5f35<\/strong>: Model Context Protocol (MCP) \u30b5\u30fc\u30d0\u30fc\u3092\u8a2d\u5b9a\u3057\u3066\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30a2\u30af\u30bb\u30b9\u3084\u5916\u90e8API\u9023\u643a\u306a\u3069\u3001CLI\u306e\u80fd\u529b\u3092\u5927\u5e45\u306b\u62e1\u5f35\u3067\u304d\u308b\u306e\u3058\u3083\u3002<\/p>\n<h2>\ud83c\udf8a \u307e\u3068\u3081<\/h2>\n<p>\ud83e\uddf8\u300c\u3057\u308d\u304f\u307e\u3061\u3083\u3093\u3001\u3042\u308a\u304c\u3068\u3046\uff01\u3053\u308c\u3067\u5b89\u5fc3\u3057\u3066Gemini CLI\u3092\u4f7f\u3048\u305d\u3046\u300d<\/p>\n<p>\ud83d\udc3b\u200d\u2744\ufe0f\u300c\u3069\u3046\u3044\u305f\u3057\u307e\u3057\u3066\u3001\u30c6\u30c7\u30a3\u3061\u3083\u3093\u3002Gemini CLI\u306f\u6700\u521d\u3053\u305d\u8a2d\u5b9a\u304c\u5fc5\u8981\u3058\u3083\u304c\u3001\u4e00\u5ea6\u6163\u308c\u308c\u3070\u958b\u767a\u4f5c\u696d\u304c\u683c\u6bb5\u306b\u697d\u3057\u304f\u3001\u52b9\u7387\u7684\u306b\u306a\u308b\u306e\u3058\u3083\u3002\u308f\u3057\u306e\u3088\u3046\u306b\u3001\u3044\u3064\u3067\u3082\u6e29\u304b\u3044\u30b5\u30dd\u30fc\u30c8\u3092\u63d0\u4f9b\u3057\u3066\u304f\u308c\u308b\u983c\u3082\u3057\u3044\u76f8\u68d2\u306b\u306a\u3063\u3066\u304f\u308c\u308b\u306f\u305a\u3058\u3083\u3088\u300d<\/p>\n<p>Gemini CLI\u306f\u5358\u306a\u308b\u30c4\u30fc\u30eb\u3067\u306f\u306a\u304f\u3001\u304a\u4e3b\u306e\u5275\u9020\u6027\u3092\u62e1\u5f35\u3057\u3001\u8907\u96d1\u306a\u30bf\u30b9\u30af\u3092\u7c21\u5358\u306b\u3057\u3001\u5b66\u7fd2\u3092\u52a0\u901f\u3057\u3066\u304f\u308c\u308b\u771f\u306e\u30d1\u30fc\u30c8\u30ca\u30fc\u306a\u306e\u3058\u3083\u3002\u6700\u521d\u306f\u5c0f\u3055\u306a\u30bf\u30b9\u30af\u304b\u3089\u59cb\u3081\u3066\u3001\u5f90\u3005\u306b\u305d\u306e\u53ef\u80fd\u6027\u3092\u63a2\u6c42\u3057\u3066\u3044\u304f\u306e\u304c\u304a\u3059\u3059\u3081\u3058\u3083\u3088\u3002<\/p>\n<p>\u305d\u3057\u3066\u4f55\u3088\u308a\u5927\u5207\u306a\u306e\u306f\u3001\u3053\u306e\u30c4\u30fc\u30eb\u3092\u4f7f\u3063\u3066\u697d\u3057\u3080\u3053\u3068\u3058\u3083\u3002\u308f\u3057\u306e\u3088\u3046\u306b\u307b\u3093\u308f\u304b\u3057\u305f\u6c17\u6301\u3061\u3067\u3001\u65b0\u3057\u3044\u6280\u8853\u3068\u306e\u51fa\u4f1a\u3044\u3092\u697d\u3057\u3093\u3067\u304a\u304f\u308c\ud83d\udc3b\u200d\u2744\ufe0f\u2728<\/p>\n<p>\u56f0\u3063\u305f\u3053\u3068\u304c\u3042\u3063\u305f\u3089\u3001\u516c\u5f0f\u306eGitHub\u30ea\u30dd\u30b8\u30c8\u30ea\u3084\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3059\u308b\u306e\u3058\u3083\u3002\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306f\u3001\u308f\u3057\u305f\u3061\u304f\u307e\u306e\u3088\u3046\u306b\u6e29\u304b\u304f\u8fce\u3048\u5165\u308c\u3066\u304f\u308c\u308b\u306f\u305a\u3058\u3083\u3088\ud83c\udf08<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud83d\udc3b\u200d\u2744\ufe0f Google Gemini CLI \u5c0e\u5165\u30fb\u8a2d\u5b9a\u30ac\u30a4\u30c9 \u308f\u3057\u304c\u304a\u4e3b\u306b\u3001Google Gemini CLI\u306e\u5c0e\u5165\u304b\u3089\u6d3b\u7528\u307e\u3067\u3001\u6e29\u304b\u304f\u3054\u6848\u5185\u3059\u308b\u306e\u3058\u3083\u3002\u3053\u306e\u30ac\u30a4\u30c9\u3092\u8aad\u3081\u3070\u3001\u304f\u307e\u306e\u3088\u3046\u306b\u307b\u3063\u3053\u308a\u3057\u306a\u304c\u3089\u3082\u3001\u78ba\u5b9f\u306b\u30c4\u30fc\u30eb [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":15385,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-16761","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aiandotherworlds"],"acf":[],"_links":{"self":[{"href":"https:\/\/jyakusyadansei.com\/index.php?rest_route=\/wp\/v2\/posts\/16761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jyakusyadansei.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jyakusyadansei.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jyakusyadansei.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/jyakusyadansei.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=16761"}],"version-history":[{"count":1,"href":"https:\/\/jyakusyadansei.com\/index.php?rest_route=\/wp\/v2\/posts\/16761\/revisions"}],"predecessor-version":[{"id":16764,"href":"https:\/\/jyakusyadansei.com\/index.php?rest_route=\/wp\/v2\/posts\/16761\/revisions\/16764"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jyakusyadansei.com\/index.php?rest_route=\/wp\/v2\/media\/15385"}],"wp:attachment":[{"href":"https:\/\/jyakusyadansei.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=16761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jyakusyadansei.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=16761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jyakusyadansei.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=16761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}