Getting Started with Bee CLI
Bee 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.
Two Ways to Work with Bee
You can work with Bee in two ways:
- CLI: Use
beecommands 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. - API: Start a local HTTP API with
bee proxyand call Bee over HTTP from your app or service. See API documentation.
This guide continues with the CLI workflow.
Prerequisites
To use the Bee CLI, you must have the Bee iOS app installed and Developer Mode unlocked by tapping app Version 5 times. See the Developer Mode guide.
Installation
npm
npm install -g @beeai/cliVerify the installation:
bee versionOutput Modes
Data commands render markdown by default. Add --json when you need machine-readable output.
markdown
bee meAuthentication
Login to your Bee account
Run the login command:
bee loginVerify your connection
Check that you’re authenticated:
bee statusTest the connection
Ping the Bee servers:
bee pingYour First Commands
Once authenticated, try these commands to explore your data:
markdown
# Get your user profile
bee me
# See your daily brief (calendar events, emails)
bee today
# View recent conversations from the last 10 hours
bee now
# List your facts
bee facts list
# List your todos
bee todos list
# Search your data (fast default mode)
bee search --query "project roadmap"
# Semantic search (slower neural mode)
bee search --query "What do you know about me?" --neuralSyncing Your Data
The most powerful feature of Bee CLI is the ability to sync your data to local markdown files:
bee syncThis creates a bee-sync/ directory with all your data organized in markdown format. See the Full Sync documentation for more details.
Logging Out
To clear your credentials:
bee logoutNext Steps
- Learn about all available CLI commands
- Learn how to use Search (default and neural modes)
- Set up automatic Full Sync for your data
- Use Realtime Sync for real-time events
- Run a local API server