memaxdocs
CLI Reference

CLI Reference

Complete reference for the Memax CLI. Every command, subcommand, flag, and option.

The Memax CLI (memax-cli) is the primary interface for power users. It's designed to feel like git — composable commands, Unix-friendly (pipes, redirection), fast startup, minimal output.

npm install -g memax-cli

Command overview

Core commands

CommandDescription
pushPush knowledge to your hub
recallSemantic search for relevant memories
searchStructured search with filters
syncSync a directory with your hub

Hub management

CommandDescription
hub createCreate a new hub
hub listList accessible hubs
hub inviteInvite a member
hub switchSwitch active hub

Agent tools

CommandDescription
agentsManage agent configs and sessions
hookInstall/manage agent hooks
mcpStart/manage MCP server

Utility

CommandDescription
loginAuthenticate with Memax
logoutClear stored credentials
whoamiShow current user and hub
configGet/set configuration values
listList memories with filters
showDisplay a specific memory
deleteDelete a memory

Global flags

memax [command] [flags]
FlagDescription
--api-keyAPI key (overrides OAuth)
--hubTarget hub ID
--format jsonOutput as JSON
--no-colorDisable colored output
--debugEnable debug logging
--versionShow version
--helpShow help

Unix philosophy

The CLI is designed for composability:

# Pipe recall output to clipboard
memax recall "auth design" | pbcopy

# Use in shell scripts
if memax recall "deploy checklist" | grep -q "migration"; then
  echo "Don't forget to run migrations"
fi

# Combine with other tools
memax list --format json | jq '.[] | select(.category == "decisions")'

JSON output (--format json) is stable and suitable for scripting. Human-readable output may change between versions.