{"id":13804,"date":"2024-11-22T20:26:14","date_gmt":"2024-11-22T12:26:14","guid":{"rendered":"https:\/\/www.aisharenet.com\/?p=13804"},"modified":"2024-11-22T20:26:14","modified_gmt":"2024-11-22T12:26:14","slug":"weiruanxuanbu-ai-shel","status":"publish","type":"post","link":"https:\/\/www.kdjingpai.com\/pt\/weiruanxuanbu-ai-shel\/","title":{"rendered":"\u5fae\u8f6f\u5ba3\u5e03 AI Shell \u5f00\u59cb\u516c\u6d4b\uff0c\u518d\u4e5f\u4e0d\u6015\u6572\u9519\u547d\u4ee4\u4e86"},"content":{"rendered":"<p>\u6211\u4eec\u5f88\u9ad8\u5174\u5ba3\u5e03\u00a0<strong>AI Shell<\/strong>\u00a0\u7684\u516c\u6d4b\u7248\u672c\uff01AI Shell \u4e3a\u60a8\u7684 Shell \u589e\u5f3a\u4e86 AI \u529f\u80fd\uff0c\u4f7f\u4e0e\u547d\u4ee4\u884c\u7684\u4ea4\u4e92\u66f4\u52a0\u4fbf\u6377\u3002AI Shell \u521b\u5efa\u4e86\u4e00\u4e2a\u53ef\u4ea4\u4e92\u7684 Shell\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u4e0e\u5404\u79cd\u5927\u8bed\u8a00\u6a21\u578b\u4e92\u52a8\uff0c\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e2a\u6846\u67b6\uff0c\u8ba9\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u6784\u5efa\u81ea\u5b9a\u4e49\u7cfb\u7edf\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u5bf9\u8bdd\u65b9\u5f0f\u4e0e AI \u4ee3\u7406\u8fdb\u884c\u4ea4\u4e92\u3002<\/p>\n<p>AI Shell \u9879\u76ee\u5305\u62ec\uff1a<\/p>\n<ul>\n<li>\u547d\u4ee4\u884c Shell (<code>aish<\/code>) \u754c\u9762<\/li>\n<li>\u521b\u5efa AI \u4ee3\u7406\u548c\u5176\u4ed6\u8f85\u52a9\u529f\u80fd\u63d0\u4f9b\u8005\u7684\u6846\u67b6<\/li>\n<li>\u7528\u4e8e\u4e0e PowerShell \u6df1\u5ea6\u96c6\u6210\u7684 PowerShell \u6a21\u5757<\/li>\n<li>\u5185\u7f6e AI \u4ee3\u7406\uff0c\u8ba9\u60a8\u7acb\u5373\u83b7\u5f97\u8f85\u52a9\u652f\u6301<\/li>\n<\/ul>\n<p>\u6bcf\u4e2a AI \u52a9\u624b\u88ab\u79f0\u4e3a\u4e00\u4e2a\u4ee3\u7406\u3002AI Shell \u7684\u521d\u59cb\u7248\u672c\u5305\u62ec\u4e24\u4e2a\u4ee3\u7406\uff1a<\/p>\n<ol>\n<li><strong>Azure OpenAI \u4ee3\u7406<\/strong>\uff1a\u63d0\u4f9b\u901a\u7528\u8f85\u52a9\u529f\u80fd\uff0c<a href=\"https:\/\/azure.microsoft.com\/products\/ai-services\/openai-service\">Azure OpenAI<\/a>\u00a0\u4ee3\u7406\u53ef\u4ee5\u4f7f\u7528 Azure OpenAI \u63d0\u4f9b\u7684\u4efb\u4f55 AI \u6a21\u578b\u6765\u5904\u7406\u5e7f\u6cdb\u7684\u67e5\u8be2\u3001\u81ea\u7136\u8bed\u8a00\u89e3\u91ca\u6216\u4ee3\u7801\u751f\u6210\u3002\u5982\u679c\u60a8\u9700\u8981\u66f4\u591a\u9690\u79c1\u3001\u5bf9\u6a21\u578b\u8bbe\u7f6e\u7684\u7ba1\u7406\uff0c\u6216\u4f7f\u7528\u7ecf\u8fc7\u81ea\u6709\u6570\u636e\u8bad\u7ec3\u7684\u6a21\u578b\uff0c\u53ef\u4ee5\u8fde\u63a5\u5230\u60a8\u7684 Azure OpenAI \u90e8\u7f72\u3002\u6b64\u5916\uff0c\u60a8\u4e5f\u53ef\u4ee5\u5229\u7528 OpenAI \u7684\u6a21\u578b\u3002<\/li>\n<li><strong>Azure \u4e2d\u7684 Copilot<\/strong>\uff1a\u6b64\u4ee3\u7406\u5c06\u00a0<a href=\"https:\/\/learn.microsoft.com\/azure\/copilot\/overview\">Azure \u4e2d\u7684 Copilot<\/a>\u00a0\u7684\u5f3a\u5927\u529f\u80fd\u76f4\u63a5\u5e26\u5230\u60a8\u7684 CLI\u3002\u5b83\u4e13\u6ce8\u4e8e\u63d0\u4f9b\u4ee5\u4e91\u4e3a\u4e2d\u5fc3\u7684\u8f85\u52a9\u529f\u80fd\uff0c\u652f\u6301 Azure CLI \u548c Azure PowerShell \u547d\u4ee4\uff0c\u5e2e\u52a9\u60a8\u81ea\u52a8\u5316 Azure \u76f8\u5173\u4efb\u52a1\u3002\u8981\u5f00\u59cb\u4f7f\u7528 Azure \u4e2d\u7684 <a href=\"https:\/\/www.kdjingpai.com\/microsoft-copilo\/\">Copilot<\/a> \u4ee3\u7406\uff0c\u60a8\u9700\u8981\u901a\u8fc7 Azure CLI \u4f7f\u7528\u5177\u6709 Azure Copilot \u8bbf\u95ee\u6743\u9650\u7684\u8d26\u6237\u767b\u5f55 Azure\u3002<\/li>\n<\/ol>\n<p>Azure OpenAI \u4ee3\u7406\u9700\u8981\u989d\u5916\u914d\u7f6e\u4ee5\u8fde\u63a5\u5230\u60a8\u7684 Azure OpenAI \u5b9e\u4f8b\u3002\u8bf7\u6309\u7167\u542f\u52a8\u4ee3\u7406\u65f6\u63d0\u4f9b\u7684\u8bf4\u660e\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<p>\u8003\u8651\u5230\u60a8\u53ef\u80fd\u6709\u4e0d\u540c\u7684 CLI \u547d\u4ee4\u9700\u6c42\uff0cAI Shell \u63d0\u4f9b\u4e86\u4e00\u4e2a\u6846\u67b6\uff0c\u4f9b\u60a8\u521b\u5efa\u81ea\u5df1\u7684\u4ee3\u7406\u3002\u6709\u5173\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u00a0<a href=\"https:\/\/learn.microsoft.com\/\/powershell\/utility-modules\/aishell\/developer\/create-ollama-agent\">\u521b\u5efa\u4ee3\u7406<\/a>\u3002<\/p>\n<p>&nbsp;<\/p>\n<h2>\u4f7f\u7528\u548c\u5b89\u88c5 AI Shell<\/h2>\n<p>\u6211\u4eec\u77e5\u9053\u6bcf\u4f4d CLI \u7528\u6237\u90fd\u6709\u81ea\u5df1\u7684\u504f\u597d\uff0c\u56e0\u6b64 AI Shell \u63d0\u4f9b\u4e24\u79cd\u7075\u6d3b\u6a21\u5f0f\u4ee5\u9002\u5e94\u60a8\u7684\u5de5\u4f5c\u6d41\u7a0b\uff1a<\/p>\n<h3><strong>\u72ec\u7acb\u53ef\u6267\u884c\u6587\u4ef6<\/strong><\/h3>\n<p>\u60a8\u53ef\u4ee5\u5c06 AI Shell \u4f5c\u4e3a\u72ec\u7acb\u7684\u53ef\u6267\u884c\u6587\u4ef6\u4f7f\u7528\uff0c\u4f7f\u5176\u80fd\u591f\u72ec\u7acb\u4e8e\u4efb\u4f55 Shell \u8fd0\u884c\u3002\u8fd9\u79cd\u8bbe\u7f6e\u975e\u5e38\u9002\u5408\u5e0c\u671b\u83b7\u5f97\u65e0\u4f9d\u8d56\u3001\u7b80\u5316\u4f53\u9a8c\u7684\u7528\u6237\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/11\/8464e34c55c98b8.gif\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>\u4e0e PowerShell 7 \u7684\u5e76\u884c\u96c6\u6210<\/h3>\n<p>\u8fd9\u662f\u63a8\u8350\u7684\u4f7f\u7528 AI Shell \u7684\u65b9\u5f0f\uff0c\u56e0\u4e3a\u5b83\u652f\u6301\u4e0d\u4e2d\u65ad\u7684\u5de5\u4f5c\u6d41\u3002<strong>AIShell<\/strong>\u00a0\u6a21\u5757\u5c06\u00a0<code>aish<\/code>\u00a0\u5de5\u5177\u8fde\u63a5\u5230\u60a8\u7684 PowerShell 7 \u4f1a\u8bdd\uff0c\u63d0\u4f9b\u6df1\u5ea6\u96c6\u6210\u7684\u7528\u6237\u4f53\u9a8c\u3002AI Shell \u5728 PowerShell 7 \u4f1a\u8bdd\u65c1\u8fb9\u7684\u4fa7\u7a97\u4e2d\u6253\u5f00\uff0c\u4f7f\u7a97\u683c\u4e4b\u95f4\u53ef\u4ee5\u65e0\u7f1d\u4ea4\u6d41\uff0c\u804a\u5929\u7ed3\u679c\u53ef\u4ee5\u8f7b\u677e\u4f20\u9012\u5230 PowerShell \u4f1a\u8bdd\u4e2d\u6267\u884c\uff0c\u540c\u65f6 AI \u4ee3\u7406\u53ef\u4ee5\u7528\u6765\u89e3\u51b3 PowerShell \u9519\u8bef\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/11\/4eec240303399c1.gif\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<h4>\u5b89\u88c5\u548c\u5feb\u901f\u5f00\u59cb<\/h4>\n<p>\u8fd0\u884c AI Shell \u9700\u8981\u6ee1\u8db3\u4e00\u4e9b\u7cfb\u7edf\u8981\u6c42\u3002<\/p>\n<p>AI Shell (<code>aish<\/code>) \u548c\u00a0<strong>AIShell<\/strong>\u00a0\u6a21\u5757\u662f\u5355\u72ec\u4e0b\u8f7d\u7684\u3002\u4e3a\u4e86\u65b9\u4fbf\uff0c\u6211\u4eec\u63d0\u4f9b\u4e86\u4e00\u4e2a\u811a\u672c\u6765\u5e2e\u52a9\u60a8\u4e0b\u8f7d\u5e76\u5b89\u88c5\u5b83\u4eec\u3002<\/p>\n<h5>Windows<\/h5>\n<p>\u5728 Windows \u4e0a\u8fd0\u884c AI Shell \u9700\u8981\u4e00\u4e9b\u524d\u7f6e\u6761\u4ef6\u3002<\/p>\n<ul>\n<li>Windows 10 \u6216\u66f4\u9ad8\u7248\u672c<\/li>\n<li>PowerShell 7.4.6 \u6216\u66f4\u9ad8\u7248\u672c<\/li>\n<li>Windows Terminal<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u5b89\u88c5\u811a\u672c\u5c06\uff1a<\/p>\n<ul>\n<li>\u5c06\u00a0<code>aish.exe<\/code>\u00a0\u5b89\u88c5\u5230\u00a0<code>$env:LOCALAPPDATA\\Programs\\AIShell<\/code>\u00a0\u5e76\u5c06\u5176\u6dfb\u52a0\u5230\u60a8\u7684 PATH \u4e2d<\/li>\n<li>\u5c06\u00a0<strong>AIShell<\/strong>\u00a0\u6a21\u5757\u5b89\u88c5\u5230\u60a8\u7684\u6a21\u5757\u8def\u5f84\u4f4d\u7f6e<\/li>\n<\/ul>\n<h5>macOS<\/h5>\n<p>\u5728 macOS \u4e0a\u8fd0\u884c AI Shell \u9700\u8981\u4e00\u4e9b\u524d\u7f6e\u6761\u4ef6\u3002<\/p>\n<ul>\n<li>macOS v13 Ventura \u6216\u66f4\u9ad8\u7248\u672c<\/li>\n<li>PowerShell 7.4.6 \u6216\u66f4\u9ad8\u7248\u672c<\/li>\n<li>iTerm2 \u7ec8\u7aef\u5e94\u7528<\/li>\n<\/ul>\n<p>\u5728 macOS \u4e0a\uff0c\u6b64\u811a\u672c\u5c06\uff1a<\/p>\n<ul>\n<li>\u5c06\u00a0<code>aish<\/code>\u00a0\u53ef\u6267\u884c\u6587\u4ef6\u5b89\u88c5\u5230\u00a0<code>\/usr\/local\/AIShell<\/code>\uff0c\u5e76\u5728\u00a0<code>\/usr\/local\/bin\/aish<\/code>\u00a0\u521b\u5efa\u4e00\u4e2a\u7b26\u53f7\u94fe\u63a5<\/li>\n<li>\u7531\u4e8e\u67d0\u4e9b\u9650\u5236\uff0c<strong>AIShell<\/strong>\u00a0\u6a21\u5757\u4e0d\u4f1a\u88ab\u5b89\u88c5<\/li>\n<\/ul>\n<p>\u6b64\u811a\u672c\u4ec5\u9002\u7528\u4e8e Windows \u548c macOS \u7cfb\u7edf\u3002Linux \u7528\u6237\u9700\u8981\u9075\u5faa\u624b\u52a8\u5b89\u88c5\u8bf4\u660e\u3002<\/p>\n<p>\u8981\u5b89\u88c5 AI Shell\uff0c\u8bf7\u5728 PowerShell \u4f1a\u8bdd\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>Invoke-Expression \"&amp; { $(Invoke-RestMethod 'https:\/\/aka.ms\/install-aishell.ps1') }\"\r\n<\/code><\/pre>\n<p>\u6709\u5173\u624b\u52a8\u5b89\u88c5\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u8bf7\u53c2\u9605\u00a0<a href=\"https:\/\/learn.microsoft.com\/powershell\/utility-modules\/aishell\/install-aishell?view=ps-modules&amp;tabs=windows#install-ai-shell-1\">\u624b\u52a8\u5b89\u88c5 AI Shell<\/a>\u3002<\/p>\n<p>\u8fd0\u884c\u5b89\u88c5\u811a\u672c\u540e\uff0c\u60a8\u53ef\u4ee5\u8fd0\u884c\u00a0<code>Start-AIShell<\/code>\u00a0\u5f00\u59cb\u4f7f\u7528 AI Shell\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" title=\"\u5fae\u8f6f\u5ba3\u5e03 AI Shell \u5f00\u59cb\u516c\u6d4b-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/11\/2690b42c51398d4.jpg\" alt=\"\u5fae\u8f6f\u5ba3\u5e03 AI Shell \u5f00\u59cb\u516c\u6d4b-1\" width=\"956\" height=\"511\" \/><\/p>\n<p>AI Shell \u4ee5\u5e76\u884c\u4f53\u9a8c\u542f\u52a8\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528\u00a0<code>@&lt;\u4ee3\u7406\u540d\u79f0&gt;<\/code>\u00a0\u547d\u4ee4\u5728\u4ee3\u7406\u4e4b\u95f4\u5207\u6362\u3002\u4f8b\u5982\uff0c\u8981\u5207\u6362\u5230 Azure OpenAI \u4ee3\u7406\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u00a0<code>@openai-gpt<\/code>\u00a0\u547d\u4ee4\u3002\u6b64\u5916\uff0c\u60a8\u4e5f\u53ef\u4ee5\u4f7f\u7528\u00a0<code>@&lt;\u4ee3\u7406\u540d\u79f0&gt; &lt;\u95ee\u9898&gt;<\/code>\u00a0\u7acb\u5373\u5411\u4ee3\u7406\u53d1\u9001\u95ee\u9898\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" title=\"\u5fae\u8f6f\u5ba3\u5e03 AI Shell \u5f00\u59cb\u516c\u6d4b-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/11\/ebaa93430e7dae7.jpg\" alt=\"\u5fae\u8f6f\u5ba3\u5e03 AI Shell \u5f00\u59cb\u516c\u6d4b-1\" width=\"979\" height=\"520\" \/><\/p>\n<h3>\u5728 PowerShell 7 \u4f1a\u8bdd\u4e2d\u63d2\u5165\u4ee3\u7801<\/h3>\n<p>\u590d\u5236\u548c\u7c98\u8d34\u5927\u91cf\u4ee3\u7801\u53ef\u80fd\u4f1a\u8ba9\u4eba\u70e6\u8e81\u3002AI Shell \u901a\u8fc7\u00a0<code>\/code post<\/code>\u00a0\u547d\u4ee4\u4f7f\u5f97\u76f4\u63a5\u5c06 AI \u751f\u6210\u7684\u4ee3\u7801\u63d2\u5165\u5230 PowerShell 7 \u4f1a\u8bdd\u53d8\u5f97\u7b80\u5355\u3002\u5728 AI Shell \u4e2d\u8fd0\u884c\u00a0<code>\/code post<\/code>\u00a0\u6216\u4f7f\u7528\u5feb\u6377\u952e Ctrl+d, Ctrl+d\uff0c\u5c06\u4ee3\u7801\u590d\u5236\u5230 PowerShell \u4f1a\u8bdd\u4e2d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" title=\"\u5fae\u8f6f\u5ba3\u5e03 AI Shell \u5f00\u59cb\u516c\u6d4b-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/11\/ebaa93430e7dae7-1.jpg\" alt=\"\u5fae\u8f6f\u5ba3\u5e03 AI Shell \u5f00\u59cb\u516c\u6d4b-1\" width=\"1033\" height=\"549\" \/><\/p>\n<p>\u5982\u679c\u60a8\u719f\u6089 PowerShell 7\uff0c\u60a8\u53ef\u80fd\u4e5f\u77e5\u9053\u00a0<a href=\"https:\/\/devblogs.microsoft.com\/powershell\/announcing-psreadline-2-1-with-predictive-intellisense\/\">Predictive Intellisense<\/a>\u00a0\u529f\u80fd\u3002\u5f53\u60a8\u5728 AI Shell \u54cd\u5e94\u4e2d\u83b7\u5f97\u591a\u6b65\u9aa4\u547d\u4ee4\u65f6\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u6bcf\u4e2a\u540e\u7eed\u6b65\u9aa4\u52a0\u8f7d\u5230 Predictive Intellisense \u7f13\u5b58\u4e2d\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" title=\"\u5fae\u8f6f\u5ba3\u5e03 AI Shell \u5f00\u59cb\u516c\u6d4b-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/11\/a9566ca536467cb.jpg\" alt=\"\u5fae\u8f6f\u5ba3\u5e03 AI Shell \u5f00\u59cb\u516c\u6d4b-1\" width=\"1007\" height=\"535\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>\u66f4\u5feb\u5730\u89e3\u51b3\u9519\u8bef<\/h3>\n<p>\u5982\u679c\u60a8\u5728\u5de5\u4f5c\u7ec8\u7aef\u4e2d\u9047\u5230\u9519\u8bef\uff0c\u53ef\u4ee5\u4f7f\u7528\u00a0<code>Resolve-Error<\/code>\u00a0cmdlet \u5c06\u8be5\u9519\u8bef\u53d1\u9001\u5230\u6253\u5f00\u7684 AI Shell \u7a97\u53e3\u8fdb\u884c\u89e3\u51b3\u3002\u6b64\u547d\u4ee4\u8bf7\u6c42 AI \u6a21\u578b\u5e2e\u52a9\u60a8\u89e3\u51b3\u9519\u8bef\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/11\/acc85fe54ff3f17.gif\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>\u4ece PowerShell 7 \u8c03\u7528 AIShell<\/h3>\n<p>\u6211\u4eec\u5e0c\u671b\u652f\u6301\u7684\u4e00\u4e2a\u5173\u952e\u573a\u666f\u662f\u5c06\u4e00\u4e2a\u547d\u4ee4\u7684\u8f93\u51fa\u901a\u8fc7\u7ba1\u9053\u4f20\u9012\u5230 AI Shell\uff0c\u4ee5\u83b7\u53d6\u66f4\u591a\u4fe1\u606f\u6216\u5bf9\u7ed9\u5b9a\u6570\u636e\u63d0\u95ee\u3002\u4f7f\u7528\u00a0<code>Invoke-AIShell<\/code>\u00a0\u547d\u4ee4\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u5b8c\u6210\u6b64\u64cd\u4f5c\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"\" title=\"\u5fae\u8f6f\u5ba3\u5e03 AI Shell \u5f00\u59cb\u516c\u6d4b-1\" src=\"https:\/\/www.kdjingpai.com\/wp-content\/uploads\/2024\/11\/d3a396af2448c34.jpg\" alt=\"\u5fae\u8f6f\u5ba3\u5e03 AI Shell \u5f00\u59cb\u516c\u6d4b-1\" width=\"1001\" height=\"532\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><code>Invoke-AIShell<\/code>\u00a0\u53ef\u4ee5\u63a5\u6536\u6765\u81ea\u7ba1\u9053\u7684\u8f93\u5165\uff0c\u4e5f\u53ef\u4ee5\u7528\u6765\u76f4\u63a5\u8c03\u7528 AI Shell \u4e2d\u9009\u62e9\u7684 AI \u4ee3\u7406\uff0c\u800c\u65e0\u9700\u6765\u56de\u5207\u6362\u3002<\/p>\n<h3>\u4f7f\u7528 AI Shell \u7684\u4e00\u4e9b\u989d\u5916\u63d0\u793a<\/h3>\n<p>AI Shell \u8fd8\u6709\u5176\u4ed6\u804a\u5929\u547d\u4ee4\u548c\u5feb\u6377\u952e\u4f7f\u5176\u4f7f\u7528\u66f4\u52a0\u4fbf\u6377\u3002\u6709\u5173\u5b8c\u6574\u7684\u804a\u5929\u547d\u4ee4\u5217\u8868\uff0c\u8bf7\u53c2\u9605\u00a0<a href=\"https:\/\/learn.microsoft.com\/powershell\/utility-modules\/aishell\/how-to\/aishell-reference\">AI Shell \u53c2\u8003\u6587\u6863<\/a>\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u5feb\u6377\u952e\u7ed1\u5b9a<\/th>\n<th>\u547d\u4ee4<\/th>\n<th>\u529f\u80fd<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Ctrl+d, Ctrl+c<\/td>\n<td><code>\/code copy<\/code><\/td>\n<td>\u5c06\u00a0<em>\u6240\u6709<\/em>\u00a0\u751f\u6210\u7684\u4ee3\u7801\u7247\u6bb5\u590d\u5236\u5230\u526a\u8d34\u677f<\/td>\n<\/tr>\n<tr>\n<td>Ctrl+<\/td>\n<td><code>\/code copy <\/code><\/td>\n<td>\u5c06\u7b2c\u00a0<em>n<\/em>\u00a0\u4e2a\u751f\u6210\u7684\u4ee3\u7801\u7247\u6bb5\u590d\u5236\u5230\u526a\u8d34\u677f<\/td>\n<\/tr>\n<tr>\n<td>Ctrl+d, Ctrl+d<\/td>\n<td><code>\/code post<\/code><\/td>\n<td>\u5c06\u00a0<em>\u6240\u6709<\/em>\u00a0\u751f\u6210\u7684\u4ee3\u7801\u7247\u6bb5\u53d1\u5e03\u5230\u8fde\u63a5\u7684\u5e94\u7528\u7a0b\u5e8f<\/td>\n<\/tr>\n<tr>\n<td>Ctrl+d,<\/td>\n<td><code>\/code post <\/code><\/td>\n<td>\u5c06\u7b2c\u00a0<em>n<\/em>\u00a0\u4e2a\u751f\u6210\u7684\u4ee3\u7801\u7247\u6bb5\u53d1\u5e03\u5230\u8fde\u63a5\u7684\u5e94\u7528\u7a0b\u5e8f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6b64\u5916\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u952e\u76d8\u5feb\u6377\u952e\u66f4\u8f7b\u677e\u5730\u5728\u7a97\u683c\u4e4b\u95f4\u5207\u6362\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>\u5feb\u6377\u952e\u7ed1\u5b9a<\/th>\n<th>\u529f\u80fd<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Alt+RightArrow<\/td>\n<td>\u5c06\u5149\u6807\u79fb\u81f3\u53f3\u4fa7 AI Shell \u7a97\u683c<\/td>\n<\/tr>\n<tr>\n<td>Alt+LeftArrow<\/td>\n<td>\u5c06\u5149\u6807\u79fb\u81f3\u5de6\u4fa7 PowerShell \u7a97\u683c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u4e3a\u4ec0\u4e48\u8981\u5c1d\u8bd5 AI Shell\uff1f<\/h2>\n<p>AI Shell \u662f\u4e3a\u90a3\u4e9b\u5e0c\u671b\u4ece\u547d\u4ee4\u884c\u83b7\u53d6\u667a\u80fd\u548c\u9002\u5e94\u6027\u7684\u4eba\u800c\u8bbe\u8ba1\u7684\u3002\u901a\u8fc7\u591a\u4ee3\u7406\u652f\u6301\uff0cAI Shell \u81f4\u529b\u4e8e\u6210\u4e3a\u4efb\u4f55 CLI \u5de5\u5177\u7684\u52a9\u624b\u3002\u60a8\u5c06\u53d7\u76ca\u4e8e\u9ad8\u7ea7 AI \u529f\u80fd\u3001\u66f4\u6df1\u7684 PowerShell \u4f1a\u8bdd\u96c6\u6210\u4ee5\u53ca\u53ef\u6269\u5c55\u6a21\u578b\uff0c\u4ee5\u83b7\u5f97\u6240\u9700\u7684\u5e2e\u52a9\u3002<\/p>\n<h2>\u884c\u52a8\u53f7\u53ec\uff01<\/h2>\n<p>\u6b64\u516c\u5171\u9884\u89c8\u53ea\u662f\u4e00\u4e2a\u5f00\u59cb\u3002\u6211\u4eec\u5f88\u4e50\u610f\u542c\u53d6\u60a8\u7684\u53cd\u9988\u548c\u89c1\u89e3\uff0c\u4ee5\u4f18\u5316 AI Shell\uff0c\u66f4\u597d\u5730\u670d\u52a1\u4e8e CLI \u548c PowerShell \u793e\u533a\u3002\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u7acb\u5373\u5728 PowerShell \u4e2d\u4e0b\u8f7d\uff1a<\/p>\n<p><code>Invoke-Expression \"&amp; { $(Invoke-RestMethod 'https:\/\/aka.ms\/install-aishell.ps1') }\"<\/code><\/p>\n<p>\u52a1\u5fc5\u63a2\u7d22 Azure \u548c Azure OpenAI \u4ee3\u7406\u4e2d Copilot \u7684\u529f\u80fd\uff0c\u5c06\u547d\u4ee4\u884c\u751f\u4ea7\u529b\u63d0\u5347\u5230\u4e00\u4e2a\u65b0\u6c34\u5e73\uff01\u6b22\u8fce\u60a8\u5bf9\u5f53\u524d\u5de5\u5177\u63d0\u4f9b\u53cd\u9988\uff0c\u5e76\u5728\u00a0<a href=\"https:\/\/aka.ms\/AIShell-Feedback\">aka.ms\/AIShell-Feedback<\/a>\u00a0\u6ce8\u518c\u4ee5\u63d0\u524d\u83b7\u53d6\u65b0\u529f\u80fd\u7684\u8bbf\u95ee\u6743\u9650\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u4eec\u5f88\u9ad8\u5174\u5ba3\u5e03\u00a0AI Shell\u00a0\u7684\u516c\u6d4b\u7248\u672c\uff01AI Shell \u4e3a\u60a8\u7684 Shell \u589e\u5f3a\u4e86 AI \u529f\u80fd\uff0c\u4f7f\u4e0e\u547d\u4ee4\u884c\u7684\u4ea4\u4e92\u66f4\u52a0\u4fbf\u6377\u3002AI Shell \u521b\u5efa\u4e86\u4e00\u4e2a\u53ef\u4ea4\u4e92\u7684 Shell\uff0c\u4e0d\u4ec5\u53ef\u4ee5\u4e0e\u5404\u79cd\u5927\u8bed\u8a00\u6a21\u578b\u4e92\u52a8\uff0c\u8fd8\u63d0\u4f9b\u4e86\u4e00\u4e2a\u6846\u67b6\uff0c\u8ba9\u60a8\u53ef\u4ee5\u6839\u636e&#8230;<\/p>\n","protected":false},"author":1,"featured_media":61282,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,46],"tags":[],"class_list":["post-13804","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tool","category-news"],"_links":{"self":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts\/13804","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/comments?post=13804"}],"version-history":[{"count":0,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/posts\/13804\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/media\/61282"}],"wp:attachment":[{"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/media?parent=13804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/categories?post=13804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdjingpai.com\/pt\/wp-json\/wp\/v2\/tags?post=13804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}