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.
Non-interactive auth. Takes precedence over stored OAuth credentials.
MEMAX_API_URL
Point the CLI at a non-default backend. Overrides the api_url in ~/.memax/config.json.
MEMAX_HUB, MEMAX_NO_COLOR, and MEMAX_DEBUG are not read
by the CLI today. To change the default hub, use memax hub switch
(affects read scoping), pass --hub <slug> per call, or set
hub: <slug> in a repo-local .memax.yml (affects memax push).
Per-command flags like --hub <slug> and --format json|text
override the defaults for the call they're passed to.
# Pipe recall to the clipboardmemax recall "auth design" --format text | pbcopy# Query from stdincat question.txt | memax recall# Use in shell scriptsif memax recall "deploy checklist" --format text | grep -q "migration"; then echo "Don't forget to run migrations"fi
memax exits 0 on success, non-zero on error, and writes human output to
stdout. Machine-readable output uses --format json.