{"id":29046,"date":"2025-06-05T04:25:30","date_gmt":"2025-06-04T19:25:30","guid":{"rendered":"https:\/\/www.skyarch.net\/blog\/?p=29046"},"modified":"2025-06-05T04:25:30","modified_gmt":"2025-06-04T19:25:30","slug":"windows%e3%81%aeec2%e3%82%a4%e3%83%b3%e3%82%b9%e3%82%bf%e3%83%b3%e3%82%b9%e4%b8%8a%e3%81%a7amazon-q-cli%e3%82%92%e4%bd%bf%e3%81%84%e3%81%9f%e3%81%84%ef%bc%81","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/windows%e3%81%aeec2%e3%82%a4%e3%83%b3%e3%82%b9%e3%82%bf%e3%83%b3%e3%82%b9%e4%b8%8a%e3%81%a7amazon-q-cli%e3%82%92%e4%bd%bf%e3%81%84%e3%81%9f%e3%81%84%ef%bc%81\/","title":{"rendered":"Windows\u306eEC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4e0a\u3067Amazon Q CLI\u3092\u4f7f\u3044\u305f\u3044\uff01"},"content":{"rendered":"<h2>\n\u306f\u3058\u3081\u306b<br \/>\n<\/h2>\n<p>\u3068\u308a\u3042\u3048\u305a\u304a\u8a66\u3057\u3067Amazon Q CLI\u3092\u4f7f\u3063\u3066\u307f\u305f\u3044\u3001\u3067\u3082\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u306b\u5165\u308c\u308b\u306e\u306f\u8af8\u4e8b\u60c5\u306b\u3088\u308a\u3067\u304d\u306a\u3044\u306e\u3067\u3001EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4e0a\u306e\u74b0\u5883\u3067\u8efd\u304f\u89e6\u308a\u305f\u3044\u3068\u3044\u3046\u65b9\u5411\u3051\u306e\u8a18\u4e8b\u3067\u3059\u3002<\/p>\n<ul>\n<li>Linux: GUI\u304c\u6b32\u3057\u3044\u5834\u5408\u306f\u8ffd\u52a0\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981<\/li>\n<li>Mac: Dedicated Host\u5fc5\u9808<\/li>\n<li>Windows: WSL2\u306f\u30d9\u30a2\u30e1\u30bf\u30eb\u5fc5\u9808<\/li>\n<\/ul>\n<p>\u3067\u3059\u304cWSL1\u306a\u3089\u901a\u5e38\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067OK\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4eca\u56de\u306fWindows\u306bWSL1\u3092\u5165\u308c\u308b\u65b9\u6cd5\u3092\u9078\u629e\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>\n\u624b\u9806<br \/>\n<\/h2>\n<p>Windows Server 2022\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u8d77\u52d5\u3057\u3001\u63a5\u7d9a\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u300cWindows_Server-2022-Japanese-Full-Base-2025.05.15\u300d\u3068\u3044\u3046AMI\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002<\/p>\n<h3>\nWSL\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<br \/>\n<\/h3>\n<p><a href=\"https:\/\/dev.classmethod.jp\/articles\/how-to-use-wsl1-on-windows-server-2022\/\" title=\"\u3053\u3061\u3089\u306e\u8a18\u4e8b\">\u3053\u3061\u3089\u306e\u8a18\u4e8b<\/a>\u3092\u53c2\u8003\u306b\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>Powershell\u3092\u7ba1\u7406\u8005\u6a29\u9650\u3067\u958b\u304d\u3001WSL\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n<code>wsl --install<\/code><br \/>\nOS\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n<code>Restart-Computer<\/code><br \/>\nPowershell\u3092\u7ba1\u7406\u8005\u6a29\u9650\u3067\u958b\u304d\u3001WSL1\u3092\u4f7f\u3046\u3088\u3046\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n<code>wsl --set-default-version 1<\/code><br \/>\n\u7d9a\u3051\u3066Ubuntu\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n<code>wsl --install -d Ubuntu<\/code><\/p>\n<pre>\nPS C:\\Windows\\system32&gt; wsl --install -d Ubuntu\n\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3044\u307e\u3059: Ubuntu\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u307e\u3059: Ubuntu\n\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u304c\u6b63\u5e38\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u307e\u3057\u305f\u3002'wsl.exe -d Ubuntu' \u3092\u4f7f\u7528\u3057\u3066\u8d77\u52d5\u3067\u304d\u307e\u3059\nUbuntu \u3092\u8d77\u52d5\u3057\u3066\u3044\u307e\u3059...\nProvisioning the new WSL instance Ubuntu\nThis might take a while...\nCreate a default Unix user account: \u30e6\u30fc\u30b6\u30fc\u540d\n<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3089Ubuntu\u3092\u958b\u304d\u3001\u30e6\u30fc\u30b6\u30fc\u540d\/\u30d1\u30b9\u30ef\u30fc\u30c9\u306e\u8a2d\u5b9a\u3092\u3059\u308c\u3070\u5229\u7528\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\nAmazon Q CLI\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<br \/>\n<\/h3>\n<p>Ubuntu\u306b\u3066\u5b9f\u65bd\u3057\u307e\u3059\u3002<\/p>\n<p>unzip\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3059\u308b\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n<code>sudo apt install unzip<\/code><br \/>\nQ CLI\u306ezip\u30d5\u30a1\u30a4\u30eb\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<br \/>\n<code>curl --proto &#039;=https&#039; --tlsv1.2 -sSf &quot;https:\/\/desktop-release.q.us-east-1.amazonaws.com\/latest\/q-x86_64-linux.zip&quot; -o &quot;q.zip&quot;<\/code><br \/>\n\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305fzip\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd\u3057\u307e\u3059\u3002<br \/>\n<code>unzip q.zip<\/code><br \/>\nQ CLI\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n<code>.\/q\/install.sh<\/code><br \/>\n\u9078\u629e\u80a2\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u9078\u3073\u307e\u3059\u3002<\/p>\n<ul>\n<li>\u300cDo you want q to modify your shell config (you will have to manually do this otherwise)?\u300d\u306f\u300cYes\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/li>\n<li>\u300cSelect login method\u300d\u306f\u300cUse for Free with Builder ID\u300d\u3092\u9078\u629e\u3057\u307e\u3059\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306bURL\u304c\u51fa\u529b\u3055\u308c\u308b\u306e\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u3067URL\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<pre>Open this URL: https:\/\/view.awsapps.com\/start\/#\/device?user_code=XXXX-XXXX<\/pre>\n<p>AWS Builder ID\u3092\u6301\u3063\u3066\u3044\u306a\u3044\u5834\u5408\u306fID\u3092\u4f5c\u6210\u3057\u3001\u6301\u3063\u3066\u3044\u308b\u5834\u5408\u306f\u30b5\u30a4\u30f3\u30a4\u30f3\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/06\/b11bab861e84095599b84badf11a0645.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/06\/b11bab861e84095599b84badf11a0645.png\" alt=\"\" \/><\/a><br \/>\n\u300c\u78ba\u8a8d\u3057\u3066\u7d9a\u884c\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/06\/865aadb702ee5a1eaf7d329b86310058.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/06\/865aadb702ee5a1eaf7d329b86310058.png\" alt=\"\" \/><\/a><br \/>\n\u300c\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/06\/92c6f9342fdaff3c3711285dc89a6f1c.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/06\/92c6f9342fdaff3c3711285dc89a6f1c.png\" alt=\"\" \/><\/a><br \/>\n\u3053\u306e\u3088\u3046\u306a\u753b\u9762\u306b\u9077\u79fb\u3059\u308c\u3070OK\u3067\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/06\/6847380b61d50e3fe2f5bb07ecdd5717.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/06\/6847380b61d50e3fe2f5bb07ecdd5717.png\" alt=\"\" \/><\/a><br \/>\nUbuntu\u3067\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u529b\u3055\u308c\u3001\u5236\u5fa1\u304c\u623b\u308a\u307e\u3059\u3002<\/p>\n<pre>\nDevice authorized\nLogged in successfully\n<\/pre>\n<p>\u30d1\u30b9\u3092\u901a\u305b\u3070q\u30b3\u30de\u30f3\u30c9\u304c\u4f7f\u7528\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h3>\n(\u304a\u307e\u3051)VS Code\u3001Amazon Q IDE\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<br \/>\n<\/h3>\n<p>Visual Studio Code\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u306f<a href=\"https:\/\/code.visualstudio.com\/Download\" title=\"\u3053\u3061\u3089\">\u3053\u3061\u3089<\/a>\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u53ef\u80fd\u3067\u3059\u3002\u57fa\u672c\u7684\u306b\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3067\u554f\u984c\u306a\u304f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>Ubuntu\u3092\u958b\u304d\u3001VS Code\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<br \/>\n<code>code .<\/code><\/p>\n<p>\u5de6\u5074\u306e\u30e1\u30cb\u30e5\u30fc\u304b\u3089Extensions\u3092\u9078\u3073\u307e\u3059\u3002\u300cAmazon Q\u300d\u3067\u691c\u7d22\u3057\u3001\u300cInstall\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/06\/27abb26b09a764b9c05ebdca3867f33b.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/06\/27abb26b09a764b9c05ebdca3867f33b.png\" alt=\"\" \/><\/a><br \/>\n\u5de6\u5074\u306e\u30e1\u30cb\u30e5\u30fc\u304b\u3089Amazon Q\u3092\u9078\u3073\u307e\u3059\u3002\u300cUse for Free\u300d\u3092\u9078\u629e\u3057\u3001\u300cContinue\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/06\/a4b728958160cbb49d69e6234c908820.png\"><img decoding=\"async\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2025\/06\/a4b728958160cbb49d69e6234c908820.png\" alt=\"\" \/><\/a><br \/>\n\u30d6\u30e9\u30a6\u30b6\u3067URL\u3092\u958b\u304d\u3001Q CLI\u306e\u3068\u304d\u3068\u540c\u69d8\u306b\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308c\u3070\u4f7f\u7528\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\n\u304a\u308f\u308a\u306b<br \/>\n<\/h2>\n<p>\u4eca\u56de\u3001\u521d\u3081\u3066Amazon Q CLI\/IDE\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u751f\u6210\u3084\u74b0\u5883\u306e\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u306a\u3069\u3001\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u5f37\u529b\u306a\u6a5f\u80fd\u3092\u4f53\u611f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<br \/>\n\u4e00\u65b9\u3067\u3001AI\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306e\u5229\u7528\u306b\u306f\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30ea\u30b9\u30af\u3082\u5b58\u5728\u3057\u307e\u3059\u3002\u305d\u306e\u5bfe\u7b56\u306e\u4e00\u3064\u3068\u3057\u3066\u3001\u5c02\u7528\u306e\u958b\u767a\u74b0\u5883\u3092\u7528\u610f\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002\u672c\u7a3f\u304c\u53c2\u8003\u306b\u306a\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/p>\n<h2>\n\u53c2\u8003\u30ea\u30f3\u30af<br \/>\n<\/h2>\n<p>Amazon EC2 Mac instances: <a href=\"https:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/ec2-mac-instances.html\">https:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/ec2-mac-instances.html<\/a><br \/>\nInstall Windows Subsystem for Linux on your EC2 Windows instance: <a href=\"https:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/install-wsl-on-ec2-windows-instance.html\">https:\/\/docs.aws.amazon.com\/AWSEC2\/latest\/UserGuide\/install-wsl-on-ec2-windows-instance.html<\/a><br \/>\nEC2\u306eWindows Server 2022\u3067WSL 2\u3092\u4f7f\u3046\u306e\u306f\u4e00\u7b4b\u7e04\u3067\u306f\u3044\u304b\u306a\u3044\u306e\u3067WSL 1\u3067\u6211\u6162\u3057\u3066\u307f\u305f: <a href=\"https:\/\/dev.classmethod.jp\/articles\/how-to-use-wsl1-on-windows-server-2022\/\">https:\/\/dev.classmethod.jp\/articles\/how-to-use-wsl1-on-windows-server-2022\/<\/a><br \/>\nInstalling with a zip file: <a href=\"https:\/\/docs.aws.amazon.com\/amazonq\/latest\/qdeveloper-ug\/command-line-installing-ssh-setup-autocomplete.html\">https:\/\/docs.aws.amazon.com\/amazonq\/latest\/qdeveloper-ug\/command-line-installing-ssh-setup-autocomplete.html<\/a><br \/>\nSecurity considerations and best practices: <a href=\"https:\/\/docs.aws.amazon.com\/amazonq\/latest\/qdeveloper-ug\/command-line-chat-security.html\">https:\/\/docs.aws.amazon.com\/amazonq\/latest\/qdeveloper-ug\/command-line-chat-security.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u3068\u308a\u3042\u3048\u305a\u304a\u8a66\u3057\u3067Amazon Q CLI\u3092\u4f7f\u3063\u3066\u307f\u305f\u3044\u3001\u3067\u3082\u30ed\u30fc\u30ab\u30eb\u74b0\u5883\u306b\u5165\u308c\u308b\u306e\u306f\u8af8\u4e8b\u60c5\u306b\u3088\u308a\u3067\u304d\u306a\u3044\u306e\u3067\u3001EC2\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4e0a\u306e\u74b0\u5883\u3067\u8efd\u304f\u89e6\u308a\u305f\u3044\u3068\u3044\u3046\u65b9\u5411\u3051\u306e\u8a18\u4e8b\u3067\u3059\u3002 Linux: GUI\u304c\u6b32\u3057\u3044\u5834\u5408&#8230;<\/p>\n","protected":false},"author":229,"featured_media":29074,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/www.skyarch.net\/blog\/?p=29046","footnotes":""},"categories":[1268],"tags":[],"class_list":{"0":"post-29046","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-amazon-q","8":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/29046","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/229"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=29046"}],"version-history":[{"count":23,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/29046\/revisions"}],"predecessor-version":[{"id":29078,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/29046\/revisions\/29078"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/29074"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=29046"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=29046"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=29046"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}