# mfs — CLI for Multi-source File-like Search
`mfs` is the CLI client for **MFS**: a unified file-like search interface
over codebases, docs, databases and SaaS workspaces. It exposes everything
through familiar shell verbs (`ls`, `cat`, `tree`, `head`, `tail`, `grep`)
plus `mfs search` for hybrid semantic + literal retrieval.
This crate is the binary. The matching server (Python, in the same monorepo)
runs the connectors, ingest pipeline, embedding and retrieval. See the main
project README for the server setup:
**https://github.com/zilliztech/mfs**
## Install
One-line installer (Linux / macOS, x86_64 / arm64):
```bash
curl --proto '=https' --tlsv1.2 -LsSf \
Or:
```bash
cargo install mfs-cli
```
## Quickstart
Assumes the server is running on `127.0.0.1:13619` (the CLI's default
endpoint). See the main repo for how to start it.
```bash
mfs status # server up? connectors registered?
mfs add ./my-repo # register a directory, indexes in the background
mfs status file://my-repo # poll until 'available'
mfs search "rate limit handler" --connector-uri file://my-repo --top-k 5
mfs cat file://my-repo/src/throttle.go --range 42:78
```
## Pointing at a non-default server
```bash
export MFS_API_URL=http://my-server:13619
mfs status
```
## Status
This is the `v0.4.x` beta line. APIs may shift before `v0.4.0` stable.
Track the main repo for changes:
https://github.com/zilliztech/mfs/releases
## License
Apache-2.0.