| name | mxbai-cli |
| description | Use the mxbai CLI to manage stores, upload files, search documents, ask questions, and sync directories from the terminal. Use when performing Mixedbread operations via command line, setting up CI/CD pipelines with store sync, or managing API keys. |
mxbai CLI
The mxbai CLI manages stores, uploads files, performs semantic search, and syncs directories with Mixedbread from the terminal.
Docs: https://www.mixedbread.com/cli.md
Agent-readable docs: https://www.mixedbread.com/docs/llms.txt
Latest docs search: https://www.mixedbread.com/question?q=cli§ion=cli
Installation
npm install -g @mixedbread/cli
npm install --save-dev @mixedbread/cli
Requires Node.js >= 20.0. Verify with mxbai --version.
Authentication
Resolved in priority order:
- Flag:
--api-key mxb_xxxxx or --saved-key <name>
- Environment variable:
export MXBAI_API_KEY=mxb_xxxxx
- Config file:
mxbai config set api_key mxb_xxxxx
Get your API key at https://platform.mixedbread.com/platform?next=api-keys
Quick Start
mxbai store create "my-docs" --description "Product documentation"
mxbai store upload
mxbai store search
mxbai store