Skip to content

Create the CLI interface #1

@matheusfrancisco

Description

@matheusfrancisco

Create mem-cli Crate

Description

Create a new CLI interface for mem as a dedicated crate at crates/mem-cli/.

Implementation

Create a new crate at crates/mem-cli/ with the following commands:


mem start

Start the API server.

  • Default: runs in the foreground
  • --daemon — run as a background process
  • --launchd — register and run via launchd (macOS only)

mem stop

Stop the API server.

  • --daemon — stop the background process
  • --launchd — unregister and stop the launchd service (macOS only)

mem logs

Tail or display the API server logs.


mem save

Capture and save a link.

mem save --url=<url> --description=<description>

mem search

Search via the terminal with pagination support.

mem search "b-tree" --offset=10 --limit=100
  • --offset — number of results to skip (default: 0)
  • --limit — maximum number of results to return (default: 100)

Notes

  • The --daemon and --launchd flags are mutually exclusive on start and stop
  • --launchd is macOS-specific and should be gated accordingly

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions