Source: https://aiagentbar.com/zh-TW/cli/
Language: zh-TW

# AI Agent bar 本機命令列工具（CLI）

了解隨 Mac 應用程式內建的可選本機命令列工具路徑、Shell 別名設定與隱私原則。

AI Agent bar · 更新日期 2026年11月19日

在 Mac 上安裝 **AI Agent bar** 後，應用程式套件內同時附帶一個輕量級本機命令列執行檔，方便在終端機快速查看或整合至腳本流程。

## 執行檔路徑

將 `AIagentbar.app` 安裝至 `/Applications` 後，CLI 執行檔位於：

```
/Applications/AIagentbar.app/Contents/MacOS/aiagentbar
```

## 設定 Shell 別名（選用）

若想在終端機直接輸入 `aiagentbar`，可於 `~/.zshrc` 加入以下別名：

```
alias aiagentbar="/Applications/AIagentbar.app/Contents/MacOS/aiagentbar"
```

## 本機執行與隱私

與選單列主程式相同，CLI 工具完全於你的 Mac 本機執行：僅檢查本機 Hook 狀態，絕不讀取 AI 對話內容或上傳任何本機檔案。若需進行視覺化一鍵\*\*強制解除安裝（Force Uninstall）\*\*與即時異動通知，請直接開啟選單列視窗。

## 延伸閱讀

*   [如何在 Mac 上移除 OpenAI Codex 中的 Hook](<https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-codex/>)
*   [如何在 Mac 上移除 Claude Code 中的 Hook](<https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-claude/>)
*   [如何在 Mac 上移除 Cursor 中的 Hook](<https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-cursor/>)
*   [如何在 Mac 上移除 Gemini CLI 中的 Hook](<https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-gemini-cli/>)
*   [如何在 Mac 上移除 Windsurf 中的 Hook](<https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-windsurf/>)
*   [如何在 Mac 上移除 GitHub Copilot CLI 中的 Hook](<https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-copilot/>)
*   [如何在 Mac 上檢視並移除 Google Antigravity 中的 Hook](<https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-antigravity/>)
*   [如何在 Mac 上移除 Devin 中的 Hook](<https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-devin/>)
*   [如何在 Mac 上移除 AI 開發工具中的 Hook（完整指南）](<https://aiagentbar.com/zh-TW/guides/how-to-uninstall-hooks-in-ai-agents/>)
*   [AI Agent bar 運作原理](<https://aiagentbar.com/zh-TW/how-it-works/>)
*   [在 Mac 上安裝與啟用 AI Agent bar](<https://aiagentbar.com/zh-TW/install/>)
*   [版本發佈與雜湊驗證](<https://aiagentbar.com/zh-TW/releases/>)
*   [關於 AI Agent bar](<https://aiagentbar.com/zh-TW/about/>)
