Fix misleading PATH claim: CLI installs into backend venv, not system PATH

This commit is contained in:
Himanshu Dongre 2026-04-13 10:42:51 +05:30
parent ac4d1e0a66
commit aa58892fca
2 changed files with 16 additions and 3 deletions

View file

@ -27,8 +27,15 @@ make dev
make dev-frontend
```
`make setup` installs everything: the backend, the CLI (`smriti` + `smriti-mcp` on
your PATH), and the frontend. Open `http://localhost:5173` for the chat UI.
`make setup` installs the backend, the CLI (`smriti` + `smriti-mcp`), and the
frontend. The CLI is installed into the backend venv at `backend/.venv/bin/`.
Activate the venv to use it from your shell:
```bash
source backend/.venv/bin/activate
```
Open `http://localhost:5173` for the chat UI.
---

View file

@ -187,7 +187,13 @@ docker compose up -d postgres # start the database
make setup # backend venv + deps + migrations + CLI + frontend
```
`make setup` installs everything: the backend, the CLI (`smriti` + `smriti-mcp` on your PATH), and the frontend.
`make setup` installs the backend, the CLI (`smriti` + `smriti-mcp`), and the frontend. The CLI binaries are installed into the backend venv at `backend/.venv/bin/`. To use them from your shell, activate the venv:
```bash
source backend/.venv/bin/activate
```
Or reference them by full path (e.g. `backend/.venv/bin/smriti state ...`). The SessionStart hook in `.claude/settings.json` already uses the full path so it works without activation.
### 2. Start the backend and frontend