{"slug": "getting-started-with-bee-cli", "title": "Getting Started with Bee CLI", "summary": "Bee released Bee CLI, a command-line interface installed via `npm install -g @beeai/cli` that lets users export their Bee conversations, facts, todos and other data to local markdown files. The CLI renders markdown by default and supports `--json` for machine-readable output, and requires the Bee iOS app with Developer Mode unlocked by tapping the app Version 5 times. Bee positions the CLI as the preferred option for AI agents and offers an MCP connection for tools including Claude, Claude Code and Codex to access Bee context.", "body_md": "# Getting Started with Bee CLI\n\nBee CLI is the command-line interface for interacting with your Bee data. It allows you to export your conversations, facts, todos, and more to local markdown files.\n\n## Two Ways to Work with Bee\n\nYou can work with Bee in two ways:\n\n1. **CLI** : Use`bee` commands directly in your terminal. This is usually the best option for AI agents because it provides markdown output by default, supports JSON when needed, and works well with local automation.\n2. **API** : Call the Bee developer API over HTTPS from your app or service, through the public endpoint, a local`bee proxy` , or raw TLS. See[API documentation](https://docs.bee.computer/docs/api) .\n\nPrefer to wire Bee directly into an AI assistant? Connect it over [MCP](https://docs.bee.computer/docs/mcp) to give tools like Claude, Claude Code, or Codex live access to your Bee context.\n\nThis guide continues with the CLI workflow.\n\n## Prerequisites\n\nTo use the Bee CLI, you must have the **Bee iOS app** installed and Developer Mode unlocked\nby tapping app **Version** 5 times. See the [Developer Mode guide](https://docs.bee.computer/docs/developer-mode).\n\n## Installation\n\n### npm\n\n```\nnpm install -g @beeai/cli\n```\n\nVerify the installation:\n\n```\nbee version\n```\n\n## Output Modes\n\nData commands render markdown by default. Add `--json` when you need machine-readable output.\n\n### markdown\n\n```\nbee me\n```\n\n## Authentication\n\n### Login to your Bee account\n\nRun the login command:\n\n```\nbee login\n```\n\n### Verify your connection\n\nCheck that you’re authenticated:\n\n```\nbee status\n```\n\n### Test the connection\n\nPing the Bee servers:\n\n```\nbee ping\n```\n\n## Your First Commands\n\nOnce authenticated, try these commands to explore your data:\n\n### markdown\n\n```\n# Get your user profile\nbee me\n \n# See your daily brief (calendar events, emails)\nbee today\n \n# View recent conversations from the last 10 hours\nbee now\n \n# List your facts\nbee facts list\n \n# List your todos\nbee todos list\n \n# Search your data (fast default mode)\nbee search --query \"project roadmap\"\n \n# Semantic search (slower neural mode)\nbee search --query \"What do you know about me?\" --neural\n```\n\n## Syncing Your Data\n\nThe most powerful feature of Bee CLI is the ability to sync your data to local markdown files:\n\n```\nbee sync\n```\n\nThis creates a `bee-sync/` directory with all your data organized in markdown format. See the [Full Sync documentation](https://docs.bee.computer/docs/sync) for more details.\n\n## Logging Out\n\nTo clear your credentials:\n\n```\nbee logout\n```\n\n## Next Steps\n\n- Learn about all available [CLI commands](https://docs.bee.computer/docs/cli)\n- Learn how to use [Search](https://docs.bee.computer/docs/search) (default and neural modes)\n- Set up automatic [Full Sync](https://docs.bee.computer/docs/sync) for your data\n- Use [Realtime Sync](https://docs.bee.computer/docs/realtime) for real-time events\n- Run a local [API](https://docs.bee.computer/docs/api) server\n- Connect your AI assistant with [MCP](https://docs.bee.computer/docs/mcp)", "url": "https://wpnews.pro/news/getting-started-with-bee-cli", "canonical_source": "https://docs.bee.computer/docs", "published_at": "2026-11-23 15:52:47+00:00", "updated_at": "2026-11-23 16:16:43.239151+00:00", "lang": "en", "topics": ["ai-tools", "ai-agents", "agent-protocols", "developer-tools"], "entities": ["Bee", "Bee CLI", "@beeai/cli", "Claude", "Claude Code", "Codex", "MCP"], "also_reported_by": [], "takeaway": "Bee CLI installs with `npm install -g @beeai/cli`, outputs markdown by default with `--json` for machine-readable data, and `bee sync` writes all Bee data into a local `bee-sync/` directory of markdown files.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/getting-started-with-bee-cli", "markdown": "https://wpnews.pro/news/getting-started-with-bee-cli.md", "text": "https://wpnews.pro/news/getting-started-with-bee-cli.txt", "jsonld": "https://wpnews.pro/news/getting-started-with-bee-cli.jsonld"}}