# CLI Command Reference All commands run via `./run ` (passes through to `lm` CLI). --- ## Daily Overview | Command | Description | |---------|-------------| | `today` | Today overview (schedule + tasks + habits) | | `today next-action` | Suggest next action based on priorities | ## Tasks | Command | Description | |---------|-------------| | `tasks list` | List tasks (filters: `-s`, `-p`, `-d`, `--status`, `--domain`) | | `tasks get ` | Show task detail | | `tasks create` | Create a task (options: `--title`, `--priority`, `--domain`, etc.) | | `tasks update ` | Update a task | | `tasks complete ` | Mark task completed | | `tasks delete ` | Delete a task | | `tasks recurring` | List recurring task templates | | `tasks instances ` | List instances of a recurring task | ## Goals | Command | Description | |---------|-------------| | `goals list` | List goals | | `goals tree` | Show goal hierarchy tree | | `goals get ` | Show goal detail | | `goals create` | Create a goal | | `goals update ` | Update a goal | | `goals delete ` | Delete a goal | ## Habits | Command | Description | |---------|-------------| | `habits list` | List habits | | `habits due` | Show habits due today | | `habits get ` | Show habit detail | | `habits create` | Create a habit | | `habits update ` | Update a habit | | `habits check-in ` | Log a habit check-in | | `habits stats ` | Show habit statistics | ## Schedule | Command | Description | |---------|-------------| | `schedule blocks [--date YYYY-MM-DD]` | List time blocks for a date | | `schedule plan [--date YYYY-MM-DD]` | Show daily plan | | `schedule add-block` | Create a time block (`-t`, `--date`, `--start`, `--end`, `--type`, `--notes`) | | `schedule update-block ` | Update a time block (`--status`, `--end`, `--title`, `--type`, `--notes`) | | `schedule set-intention` | Set morning intention (`--text`, `--date`) | | `schedule reflect` | Set evening reflection (`--text`, `--mood`, `--date`) | | `schedule log [--date]` | Show daily log entries | | `schedule log-add` | Add a daily log entry | | `schedule log-delete ` | Delete a daily log entry | **Block types**: `work`, `personal`, `health`, `break`, `transit`, `available` **Block statuses**: `planned`, `in_progress`, `completed`, `skipped`, `rescheduled` ## Medications > **Command name is `meds`** (not `medications`) | Command | Description | |---------|-------------| | `meds list` | List medication schedules | | `meds due` | Show medications due now | | `meds get ` | Show medication detail | | `meds create` | Create a medication schedule | | `meds update ` | Update a medication schedule | | `meds deactivate ` | Deactivate a medication | | `meds log ` | Log a dose (`--taken-at`, `--notes`, `--skipped`, `--skip-reason`) | | `meds logs ` | Show dose history | ## Labs | Command | Description | |---------|-------------| | `labs list` | List lab results (`--start`, `--end`, `--panel`, `--page`, `--limit`) | | `labs get ` | Show full lab result with all markers | | `labs trends ` | Trend for one marker (`--months `, e.g. `labs trends Hemoglobin`) | | `labs anemia` | Anemia marker trends — Hgb, Hct, Ferritin, Iron, MCV, RBC, TIBC (`--months `) | | `labs import` | Import FHIR R4 bundle (`--file `, `--project `) — idempotent | | `labs epic-status` | Show Epic MyChart connection status | | `labs epic-connect` | Print OAuth URL — open in browser to authenticate | | `labs epic-sync --project ` | Pull latest labs from Epic FHIR API | | `labs epic-disconnect` | Clear Epic tokens and disconnect | **File import flow:** 1. MyChart → Profile → Download My Health Data → FHIR R4 format → unzip 2. `./run labs import --file ~/Downloads/fhir-bundle.json --project ` 3. Re-running with same file skips already-imported panels (dedup by FHIR DiagnosticReport ID) **Live sync flow (Epic OAuth2):** 1. Register app at fhir.epic.com — set `EPIC_CLIENT_ID` + `EPIC_REDIRECT_URI` in `.env` 2. `./run labs epic-connect` → open URL in browser → authenticate with MyChart 3. `./run labs epic-status` → confirm connected 4. `./run labs epic-sync --project ` → import all panels 5. `./run labs epic-disconnect` to revoke local tokens ## Health | Command | Description | |---------|-------------| | `health measurements` | List health measurements | | `health log-measurement` | Log a measurement | | `health medical` | List medical records | | `health log-medical` | Log a medical event | ## Finance | Command | Description | |---------|-------------| | `finance summary` | Financial summary for current month | | `finance list` | List transactions | | `finance log` | Log a transaction | | `finance recurring list` | List recurring transactions | | `finance recurring add` | Add recurring transaction | | `finance recurring mark-paid` | Mark recurring as paid | | `finance trend` | Show financial trends | | `finance budget list` | List budgets | | `finance budget set` | Set a budget | ## Income | Command | Description | |---------|-------------| | `income list` | List income entries | | `income log` | Log income | | `income summary` | Income summary | | `income billable list` | List billable hours | | `income billable log` | Log billable hours | ## Projects | Command | Description | |---------|-------------| | `projects list` | List projects | | `projects get ` | Show project detail | | `projects create` | Create a project | | `projects update ` | Update a project | | `projects sprints` | List sprints | | `projects sprint ` | Show sprint detail | | `projects create-sprint` | Create a sprint | | `projects update-sprint ` | Update a sprint | | `projects board ` | Show sprint board | | `projects content` | List project content | | `projects create-content` | Create project content | ## Domains | Command | Description | |---------|-------------| | `domains list` | List domains | | `domains create` | Create a domain | | `domains update ` | Update a domain | | `domains delete ` | Delete a domain | ## Contacts | Command | Description | |---------|-------------| | `contacts list` | List contacts | | `contacts get ` | Show contact detail | | `contacts create` | Create a contact | | `contacts update ` | Update a contact | | `contacts delete ` | Delete a contact | ## Phone | Command | Description | |---------|-------------| | `phone list` | List phone numbers | | `phone search ` | Search phone numbers | | `phone add ` | Add a phone number | ## Chat (AI Assistant) | Command | Description | |---------|-------------| | `chat` | Interactive chat session | | `chat send` | Send a one-shot message | | `chat list` | List conversations | | `chat history` | Show conversation history | ## Reminders | Command | Description | |---------|-------------| | `reminders list` | List reminders | | `reminders upcoming` | Show upcoming reminders | | `reminders get ` | Show reminder detail | | `reminders create` | Create a reminder | | `reminders update ` | Update a reminder | | `reminders dismiss ` | Dismiss a reminder | | `reminders preview ` | Preview a reminder | | `reminders fire ` | Fire a reminder immediately | ## Checklists | Command | Description | |---------|-------------| | `checklists list` | List checklists | | `checklists get ` | Show checklist detail | | `checklists create` | Create a checklist | | `checklists update ` | Update a checklist | | `checklists delete ` | Delete a checklist | | `checklists add-item ` | Add item to checklist | | `checklists toggle ` | Toggle checklist item | ## Content | Command | Description | |---------|-------------| | `content list` | List content items | | `content add` | Add content | | `content batches` | List content batches | | `content batch` | Show batch detail | | `content outfits` | List outfits | | `content outfit` | Show outfit detail | ## iMessage Bridge | Command | Description | |---------|-------------| | `imessage status` | Show bridge config, phone, last poll, and rate limits | | `imessage self [--since ] [-l ]` | Show recent self-messages (default: last hour) | | `imessage send ` | Send a message to self via the iMessage send queue | | `imessage test ` | Inject text directly into the AI pipeline and print the reply (no iMessage delivery) | ## Settings | Command | Description | |---------|-------------| | `settings list` | List all settings | | `settings get ` | Get a setting value | | `settings set ` | Set a setting value | ## Auth (Encryption Lock) | Command | Description | |---------|-------------| | `auth status` | Show encryption lock status | | `auth set-pin` | Set or change encryption PIN | | `auth remove-pin` | Remove encryption PIN | | `auth unlock` | Unlock encrypted data | | `auth lock` | Lock encrypted data | ## Services | Command | Description | |---------|-------------| | `services status` | Show service cluster status | | `services gpu` | Show GPU status | ## Analytics | Command | Description | |---------|-------------| | `analytics overview` | Analytics overview | | `analytics trends` | Show trends | | `analytics domains` | Domain analytics | ## Check-In | Command | Description | |---------|-------------| | `checkin log [platform]` | Log a check-in | | `checkin stats` | Check-in statistics | | `checkin recent` | Recent check-ins | | `checkin reminder-status [platform]` | Reminder status | ## Call Log | Command | Description | |---------|-------------| | `call log ` | Log a call | | `call pending` | Show pending calls | | `call complete ` | Complete a call | | `call list` | List calls | ## Timer | Command | Description | |---------|-------------| | `timer [message]` | Set a timer (e.g., `timer 5m "check beans"`) | ## Curriculum | Command | Description | |---------|-------------| | `curriculum list` | List all curricula | | `curriculum get [slug]` | Show curriculum details (defaults to first active) | | `curriculum progress [slug]` | Show level, XP, streak, skills completed | | `curriculum skills [slug]` | List skills (`--pillar`, `--tier`, `--status`) | | `curriculum start-skill [slug]` | Start working on a skill | | `curriculum complete-skill [slug]` | Mark a skill completed | | `curriculum challenges [slug]` | List challenges (`--status`, `--pillar`) | | `curriculum start-challenge [slug]` | Start a challenge | | `curriculum role-models [slug]` | List role models (`--type`, `--domain`, `--page`) | | `curriculum random [slug]` | Get a random role model for inspiration | | `curriculum motivate [slug]` | Get motivational message (`--context`, `--state`) | | `curriculum food-today` | Today's food alignment score | | `curriculum food-weekly` | Weekly food alignment summary | ## Training (ML) | Command | Description | |---------|-------------| | `training fine-tune` | Start fine-tuning | | `training export` | Export training data | | `training list-steps` | List training steps | | `training eval` | Run evaluation | | `training gpu` | GPU status for training | ## Database | Command | Description | |---------|-------------| | `db sync-to-prod` | Sync dev database to production | ## Global Options All commands support: - `--json` — Output as JSON (for scripting/piping) - `--api-url ` — Override API URL (default: `http://localhost:3700`)