Skip to content

Add a minimal CLI for memori: init, --version, and health commands (Self-assigned by Anand0295) #139

@Anand0295

Description

@Anand0295

Note: This is a self-assigned issue. I plan to work on this feature and will submit a pull request.


Problem

Currently, the memori CLI doesn't exist or isn't discoverable, making it difficult to verify installation, initialize a project, or quickly diagnose system health.

Motivation

  • Enable users to confirm memori is installed via a simple --version command.
  • Provide a clear entry point (memori init) to scaffold basic config and folders.
  • Offer a diagnostic tool (memori health) to check core dependencies like Redis, Ollama, or other configured services.

Implementation Plan

  1. Add or refactor the CLI entry point (e.g., memori/__main__.py or memori/cli.py):

    • Parse commands: init, --version, health.
  2. Implement memori init:

    • Create a starter config file (e.g., memori.toml or .memori.yml).
    • Set up basic directory structure if needed.
  3. Implement memori --version:

    • Read version from pyproject.toml or __version__.py and print.
  4. Implement memori health:

    • Check connectivity to required services (Redis, Ollama, etc.).
    • Print a status summary (OK/FAIL) for each.

Details

A minimal CLI example:

memori --version       # prints version
memori init            # creates starter config
memori health          # checks dependencies

This would make installation verification and onboarding much smoother.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions