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
Create
mem-cliCrateDescription
Create a new CLI interface for
memas a dedicated crate atcrates/mem-cli/.Implementation
Create a new crate at
crates/mem-cli/with the following commands:mem startStart the API server.
--daemon— run as a background process--launchd— register and run via launchd (macOS only)mem stopStop the API server.
--daemon— stop the background process--launchd— unregister and stop the launchd service (macOS only)mem logsTail or display the API server logs.
mem saveCapture and save a link.
mem searchSearch via the terminal with pagination support.
--offset— number of results to skip (default:0)--limit— maximum number of results to return (default:100)Notes
--daemonand--launchdflags are mutually exclusive onstartandstop--launchdis macOS-specific and should be gated accordingly